Mount Iscsi Devices (RedHat)

Dec 2, 2016


Install iSCSI initiator utilities:

yum install iscsi-initiator-utils

Find iSCSI targets:

iscsiadm --mode discovery --type sendtargets --portal 10.0.0.10

You maybe need to restart iSCSI and change iSCSI settings:

/etc/init.d/iscsi stop
/etc/init.d/iscsi start
vi /etc/iscsi/initiatorname.iscsi
vi /etc/iscsi/iscsid.conf

You can label the partitions on the iSCSI, easier for automatic mounts after reboots:

e2label /dev/sdc1 /data1
e2label /dev/sdd1 /data2

Mount the iSCSI disk:

mount LABEL=/data1 /data1