xebech wrote:
Hello,
I am a new user of open-iscsi. I use iscsi to create diskless cluster.
I have a problem when I halt my nodes, I can not  disconnect properly
my iscsi session from nodes because they need to access to their root
FS.
Do you know a method to properly halt diskless nodes ?

Hi Antoine,

If you log in to a target in the initrd and mount your root filesystem over a LUN then you need to make sure that iscsid does not log out of that LUN when it is killed on shutdown. You can ensure this by changing the node.startup value in /etc/iscsi/nodes/<iqn>/default. Here's how:

        iscsiadm -m node -T <iqn> -o update -n node.startup -v onboot

Note that the node may not be present in /etc/iscsi/nodes as you logged in from the initrd using iscsistart and not from the root filesystem using iscsiadm. If this is the case then iscsid will not log out when it is killed. However, you shouldn't rely on this since it is possible for "iscsiadm -m discovery" to create the node between booting and shutting down. And if it does it will assign the value "manual" to node.startup by default, causing iscsid to log out on shutdown.

Another problem you may have is that the interface used to access your LUN is brought down by "service network stop". On RHEL you can stop this happening by ensuring that /etc/sysconfig/network-scripts/ifcfg-<interface> does not exist. There is no point having a configuration for this interface in your root filesystem anyway, since your initrd MUST bring up the interface and configure it to access the root disk, and ANY change to its configuration after the root filesystem is mounted could make your system hang.

Regards,

Alex


Thanks a lot.

--
Antoine Castaing


--
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.

Reply via email to