Operating System - Linux
1752662 Members
5538 Online
108788 Solutions
New Discussion юеВ

when a new LUN is added, how does the initiator know

 
aclhkaclhk
New Member

when a new LUN is added, how does the initiator know

i am a newbie.

the initiator is login and connected to an iscsi target. the target has added a new LUN. the change is not effected in the initiator until relogin the target.

rlogin may affect existing connections.

pls advise if relogin is the only way.
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: when a new LUN is added, how does the initiator know

The rescan-scsi-bus.sh should detect changes.

Have you tried the script?

http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/html/Online_Storage_Reconfiguration_Guide/rescan-scsi-bus.html

http://www.garloff.de/kurt/linux/
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Matti_Kurkela
Honored Contributor

Re: when a new LUN is added, how does the initiator know

The iscsiadm command has a "--rescan" option exactly for this situation.

From the http://www.open-iscsi.org/docs/README document:
----
- Perform a SCSI scan on a session

./iscsiadm -m session -r 1 --rescan

This function also works in node mode. instead of the "-r $sid" argument, you would pass in the node info like targetname and/or portal, and/or interface.

Note: Rescanning does not delete old LUNs. It will only pick up new ones.
----

MK
MK