On 01/20/2011 09:15 AM, jbygden wrote:
Hi!
Is there any best practice on how to use iscsi with virtualization?
I have a CentOS 5.5 server running as a KVM host for a couple of
guests. I have iscsi-initiator-utils (iscsi-initiator-
utils-6.2.0.871-0.16.el5) installed on this host.
We have bought an Equallogic PS6000 iscsi array which is not yet fully
utilized.
I thought that I'd create volumes in the PS6000 when I needed them,
populate them to the CentOS KVM host and attach the disks to the
virtual guests as needed.
This is apparently not a good idea - since, as far as I can tell at
least, I have to restart the iscsi subsystem every time I present a
new disk from the PS6000. A "service iscsi restart" effectively
destroys all KVM guests using existing, already logged in iscsi disks
will hang indefinitely wondering where their disks disappeared to.
Are you doing a restart so the iscsi service logs into the new targets?
You have already done the disocvery command to find the new targets right?
To find new targets and log in you just need to do
iscsiadm -m discovery -t st -p ip:port
then for each new target found do
iscsiadm -m node -T your_new_target -l
Or you can even do it in one command:
iscsiadm -m discovery -t st -p ip:port -l
The above is what you would do for targets that do a logical unit/device
per target like Equalllogic. For targets that do multiple logical units
per target and you are just adding a new LU, then you can just rescan
the session
(rescan all sessions)
iscsiadm -m session --rescan
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.