A iSCSI LUN larger than 2TB mounted by RHEL

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

iscsiadm -m node -T {discovered_target_IQN} -p {target_IP} -l
# Login into iSCSI target
iscsiadm -m node -u
# 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

print

quit

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *