Jonas, You don't have to restart it. /etc/init.d/iscsi will start iscsid + log into any nodes that you've discovered. The only thing you would have to do to add new disks would be to do the following:
1) iscsiadm -m discovery -t st -p <your_portal_ip_here> I usually do that plus pipe that through grep to find the disk you're looking for without sifting through a list (if you have lots of volumes). That command will add the discovered volumes to your local iscsi database (for me its /var/lib/iscsi, but I don't know where open-iscsi puts it by default). 2) iscsiadm -m node -T <iqn_here> -l That logs into your volumes and creates the /dev/sdX devices 3) From here, you can tweak your dm-multipath or just use the /dev/sdX devices Joe Hoot (c) 716-759-HOOT [email protected] GPG KEY: 7145F633 On Jan 20, 2011, at 10: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. > > So, is there any best practice regarding using iscsi disks with > virtualization? Or do I have to make up my mind immediately and create > all iscsi disks beforehand and not ever do any changes? > > /Jonas > > -- > 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. > -- 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.
