Linux – Mounting an additional iSCSI volume in Centos without restarting the iscsi initiator

iscsilinuxlinux-networkingnetwork-storage

I don't know if I'm missing something but when I'm mounting additional iSCSI volumes to a said server to add additional storage to a server I'm not seeing a way to mount the volume after running a discovery command.

The reasoning I want to be able to do this is that we're running an application that would require downtime everytime we add additional iSCSI volumes to this server.

So the big question is, in CentOS 6.x x64 is there a way using the current iSCSI initiator to add/remove iSCSI luns without cycling the service or is there even a third party commercial iSCSI initator that I could leverage to get this functionality?

Best Answer

In general, there is a --rescan option to iscsiadm from the Open-iSCSI initiator. Typically, it is wrapped into some kind of script framework to make life easier.

With Centos, iscsi-rescan should do exactly that for you. Other systems might have a rediscover or rescan parameter to the iscsi startup script (/etc/init.d/open-iscsi or similar). The invocation does not cycle the service and does not do any disruptions to your currently connected LUNs but simply discovers new ones and logs in. Mounting should be straightforward once the login is successful.

Related Topic