Install Open-iSCSI initiator
apt-get install open-iscsi
node.startup = automatic
node.session.auth.username = MY-ISCSI-USER
node.session.auth.password = MY-ISCSI-PASSWORD
discovery.sendtargets.auth.username = MY-ISCSI-USER
discovery.sendtargets.auth.password = MY-ISCSI-PASSWORD
iscsiadm -m discovery -t sendtargets -p 172.31.1.150
iscsiadm –mode node –targetname iqn.1992-04.com.emc:cx.fcnma082600013.a0 –portal 172.31.1.150 –login
Note: remember login to your iSCSi server (SAN) then allow your server connection
Make sure you auto connect to iSCSi server target when server start up
vi /etc/iscsi/nodes/iqn.1992-04.com.emc:cx.fcnma082600013.b1/172.31.2.151,3260,3/default
node.startup = automatic
Restart service
/etc/init.d/open-iscsi restart
Format and mount the iSCSi volume
fdisk /dev/sde
mkfs.ext4 /dev/sde1
mkdir /backupdata
mount /dev/sde1 /backupdata
/dev/sde1 /backupdata ext4 defaults 0 0