On 10/03/2010 02:08 PM, Rahsaan Page wrote:
Hello All,

I have a question, when you add a new lun to iscsi target, if client
iSCSI initiator is already logged in to target, do i have to restart
the client iSCSI initiator for it to see the new lun? how can i make
client iSCSI initiator see new lun with out restarting iSCSI initiator
and losing connection to current Target and Lun's?


If you use a target that sends the iscsi async pdu with REPORT_LUNS_DATA_CHANGED then the new luns should be added automatically for you (deleted luns are not removed though and need to be manually deleted).

If it is not getting automatically added then you need to run either

//rescan all sessions for new luns
iscsiadm -m session --rescan
// rescan specific session
iscsiadm -m session -R $SID --rescan
(see the README for other variants)

This commands only add new luns. If you want something that adds and deletes luns then use the rescan-bus.sh script in the sg utils.

--
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-is...@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to