Linux-iSCSI.html
--FOR /etc/sysconfig/network-scripts/ifcfg-<network device
connecting to COMPELLENT> --Change the
following...
NETMASK=255.255.252.0
PREFIX=22
--FOR /var/lib/iscsi/iface/<network device connecting to COMPELLENT> --Change/Add the following...
iface.iscsi_ifacename = <network device connecting to COMPELLENT>
iface.ipaddress = <IP to COMPELLENT>
iface.hwaddress = <MAC Address of network device connecting to COMPELLENT>
Run this : ifconfig ens224 |egrep -w inet |awk '{print " iface.ipaddress = "$2}';ifconfig ens224 |egrep -w ether | awk '{print " iface.hwaddress = "$2}' ### with the correct network device name
--Example for /var/lib/iscsi/ifaces/p7p1
iface.iscsi_ifacename = p7p1
iface.ipaddress = 10.1.2.134
iface.hwaddress = f4:e9:d4:47:4e:b0
--FIND the files in /var/lib/iscsi/nodeiqn.2002-03.com.compellent:5000d3100572ee*/10.1.2.22,3260,0/
cd /var/lib/iscsi ls -1 ifaces |awk '{print "find . -name " $1 " -print"}' | sh
If the files
nodes/iqn.2002-03.com.compellent:5000d3100572ee*/10.1.2.22,3260,0/
are not using the correct iface ...
cd /var/lib/iscsi/nodeiqn.2002-03.com.compellent:5000d3100572ee*/10.1.2.22,3260,0/
mv <iface file name found> <network device connecting to COMPELLENT>
Some commands that might help doing this...
find . -name <iface name> -print |awk '{print "mv " $1 " "$1}'
find . -name <iface name> -print |awk '{print "mv " $1 " "$1}' >/tmp/mvem
vi /tmp/mvem # change the second iface name to the new one to be used
sh /tmp/mvem
find . -name <iface name> -print |awk '{print "vi " $1}' >/tmp/viem
Add the following lines to the complete set of files found in
/var/lib/iscsi/nodeiqn.2002-03.com.compellent:5000d3100572ee*/10.1.2.22,3260,0/
iface.hwaddress = <MAC Address of network device connecting to COMPELLENT> iface.ipaddress = <IP to COMPELLENT> iface.iscsi_ifacename = <network device connecting to COMPELLENT>--Example for /var/lib/iscsi/nodes/iqn.2002-03.com.compellent:5000d3100572ee3b/10.1.2.22,3260,0/ens224
iface.hwaddress = 00:50:56:a2:77:ba iface.ipaddress = 10.1.2.134 iface.iscsi_ifacename = ens224
--FOR /etc/iscsi/iscsid.conf --Change the following...(This might be correct.) node.session.iscsi.FastAbort = Yes ### No to Yes
--CONFIRM ENTRIES in /etc/multipath.conf /sbin/multipath -ll /sbin/pvscan
At this point a reboot should be done to load the correct values changed above.
The alternative to this is to umount all the luns and delete all
the files created by the discovery process and starting over...
Those insructions can be found in Migrate-to-Compellent.html
Once that is done do the compelete process of created an iface file
with the correct name of the network device, discovery and login
session check and mounting of the luns..