Tips for mounting iSCSI LUN in RedHat Linux.
OS: RHEL 5
Storage: DataOnTAP 7.3.2
rpm -ivh iscsi-initiator-utils-x.x.x.xxx-x.xx.xxx.xxxx.rpm
# intall the iSCSI initiator
/etc/iscsi/initiatorname.iscsi
# iqn
/etc/iscsi/iscsi.conf
# configuration
/var/lib/iscsi/nodes
# discovered nodes information
/etc/init.d/iscsi start
# start iSCSI
# equivalent to “service iscsi start”
iscsiadm -m discovery -t sendtargets -p {target_IP[:port]}
# Discover iSCSI target
iscsiadm -m node -o delete
# clear all target nodes
iscciadm -m node -o delete -p {target_IP[:port]}
# delete a particular node
# Logout
parted /dev/sdc
# partition /dev/sdc
mklabel gpt
# Make the LUN as GPT disk device
mkpart primary 0 -1
# Make a partition to use all space
quit