Installation and configuration of iSCSI initiator

Installation and configuration of iSCSI initiator, Mapping the LUN

iSCSI is a way of connecting storage devices over a network using TCP/IP. It can be used over a local area network (LAN), a wide area network (WAN), or the Internet. iSCSI devices are disks, tapes, CDs, and other storage devices on another networked computer that you can connect to.

First install the iSCSI utilities in Redhat Linux
# yum install iscsi* 

after completion of iscsi utilities, collect iscsi initiator name using below command.
 sample output of the command
# cat /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.1994-05.com.redhat:e5aa9bte281

then take this iqn number and map lun to this iqn using iscsi protocol from storage. after mapping the lun to server run below command to see the mapped LUN's.

# iscsiadm -m discovery -t st -p <Storage IP>
Starting iscsid:                                           [  OK  ]
10.100.201.236:3260,2000 iqn.1992-08.com.netapp:sn.118057100
10.101.127.18:3260,2001 iqn.1992-08.com.netapp:sn.118057100


Run below command to enable the iscsi service in startup

 # chkconfig iscsi on
 # iscsiadm -m node -T iqn.1992-08.com.netapp:sn.118057100 -p 10.100.201.236 -l
Logging in to [iface: default, target: iqn.1992-08.com.netapp:sn.118057100, portal: 10.100.201.236,3260] (multiple)
Login to [iface: default, target: iqn.1992-08.com.netapp:sn.118057100, portal: 10.100.201.236,3260] successful.



to see the mapped disk in your linux server 
#lsblk
Now you can able to see the new disk in your Linux server


Use the newdisk  and make the partitions Done.!!

No comments:

Post a Comment