CentOS/RedHat 6 iSCSI connections with multipathing

small Howto…

Install multipathing RPMs:
yum install device-mapper
yum install device-mapper-multipath

start multipath service
service multipathd start

configure autostart for multipath service
chkconfig multipathd on

optional: install Netapp host utilities when using a filer
http://mysupport.netapp.com/NOW/download/software/sanhost_linux/6.2/download.shtml
rpm -ivh netapp_linux_host_utilities-6-2.x86_64.rpm

loading the alua driver:
add “rdloaddriver=scsi_dh_alua” to the kernel command in grub file /boot/grub/grub.conf
reboot

discover iSCSI targets (one target IP should be enough, even when multiple exist)
iscsiadm -m discovery -t st -p

login after a successful discovery. you’ll get the iqn from the previous command.
iscsiadm -m node -l -T -p :3260

show iscsi sessions:
iscsiadm -m session [-P 3]

configure/load multipath:
multipath

check the pathes:
multipath -ll

This entry was posted in Linux and tagged , . Bookmark the permalink.