Adding New ISCSI LUN to Target, How does client iSCSI initiator access new Lun

3,961 views
Skip to first unread message

Rahsaan Page

unread,
Oct 3, 2010, 3:08:31 PM10/3/10
to open-iscsi
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?

Thanks
--Rahsaan

Mike Christie

unread,
Oct 4, 2010, 5:00:36 PM10/4/10
to open-...@googlegroups.com, Rahsaan Page

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.

Rahsaan Page

unread,
Oct 5, 2010, 8:08:47 AM10/5/10
to Mike Christie, open-...@googlegroups.com
Thank You Mike,

This is very appreciated....

Sent from my HTC on the Now Network from Sprint!

govind....@gmail.com

unread,
May 3, 2014, 12:24:29 AM5/3/14
to open-...@googlegroups.com, Mike Christie
thx, it helped me to find the discovered lun

caqu...@gmail.com

unread,
Jul 3, 2014, 10:25:02 AM7/3/14
to open-...@googlegroups.com, rahsaa...@gmail.com
Mike,
This help me to discover the new LUNs, I have one question, I am running a cluster services, I did the rescan from the standby node, I need to run it also on the active nodes, but first I want to know if running the rescan will affect the mounted LUNs and/or the active cluster services?

Thanks,

Michael Christie

unread,
Jul 11, 2014, 12:22:56 PM7/11/14
to open-...@googlegroups.com, rahsaa...@gmail.com
The iscsiadm rescan command will not disrupt mounted LUNs. All it does it discovery new LUNs.

If you did something like remap LUNs then you would have other issues. iscsiadm rescan does not handle that.


--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+...@googlegroups.com.
To post to this group, send email to open-...@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages