I've got some iSCSI/FC storage, currently using only iSCSI. I have in general no problems with mounting LUNs - under Linux and under Windows.
Unfortunately - when I add LUN for my Linux iSCSI initiator - I receive info in messages:
Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments
and new LUN does not appear in
fdisk -l
If I restart iscsi daemon - I get new LUN but loose connection with mounted old LUNs, moreover - devices letters (dev/sd..) are changing.
On Windows - new LUN is visible at once and can be mounted with no affecting previous ones.
Is there special option in
iscsiadm
(I tried such as "rescan" but with no success)?
If you're adding a new LUN, and your iscsi initiator is already connected, you just have to rescan your iscsi bus for the new LUN:
If you're changing the size / geometry of a LUN, you'll also need to rescan the device:
That works for me. If it does not for you, you can try to rescan the iscsi session:
You should really use UUIDs or WWIDs (when working with multipath) so that you don't have to rely on device names.
Are you trying to make a connection to a new LUN without restarting open-iscsi? If so, you can do
which will find the new LUNs. Then to log into the LUN
Is that what you want to do?
edit: Also, if you are having a problem with drive letters changing on your targets, you should look into using label so you could do something like
and it won't matter if the device path changes.