Trying to setup a few CentOS nodes to connect to a Dell MD3600i array, I'm running into the issue that the MD3600i shows 4 different portals (with different IP addresses). When I launch the initiator on host side well, it connects to every IP address it has seen during the discovery phase; resulting in duplicates.
How can I 'force' the initiator to discard every other IP addresses and let me choose only one IP address portal to connect to?
Have you considered running Multipath? In a situation such as this Multipath would still allow for all of the connections to the device, however in the event one goes down the other can take over. Alternatively you can configure Multipath to use all links to the storage to increase bandwidth to your storage device. Either way Multipath can be used to make all of the devices seen appear as one device when they all represent the same storage LUN.
The documentation for RHEL 5 can be found here:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/DM_Multipath/index.html
RHEL 6: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/DM_Multipath/index.html
Often a single storage array is serving data to several different networks where each initiator connecting to it has its interfaces only in a subset of the networks.
Multipath would "merge" four reachable targets for
deparmtent 1
host into one device-mapper node. However it would not save from waiting for unreachablevlan2
andvlan4
targets to timeout during boot.iSCSI discovery returns all the target IP-addresses both reachable and non-reachable ones. SuSE-based distributions have a YaST iSCSI Initiator setup applet to configure which discovered targets should be connected automatically and which should not. For RedHat-based distributions one has to do it by hand changing the startup mode in the target descriptions stored under
/var/lib/iscsi/nodes/
fromautomatic
tomanual
.I am using a script to browse the files and update the startup mode line: