How to present a iscsi lun to a linux machine for creating file system

 

On the linux machine :

1)Find out the iscsi name of the host:

cat /etc/iscsi/initiatorname.iscsi

note:in RHEL install "yum install iscsi-initiator-utils" if initiatorname.iscsi not found

2)discover the target storage array using iscsi target IP:

iscsiadm -m discovery -t st -p <target IP>

this output will be having iqn number about the storage target


3)make an iscsi I-T session on the host:

iscsiadm -m node -T <IQN of target>  -p <target IP> --login


4)verify the IT connection session by:

iscsiadm -m session


5)present a LUN from array and export to the host using IQN of the host


6)After LUN presented do a rescan of iscsi device by:

rescan-scsi-bus.sh

7)Create a new file sytstem on the new device and mount

mkfs /dev/sdb 

mkdir /mount1

mount /dev/sdb /mount1



No comments:

Post a Comment

how to unlink a NIC from a esxi vSwitch

  List the vSwitches from ESXI using CLI:          esxcli network vswitch standard list  output example: vSwitch0    Name: vSwitch0    Class...