How to Configure ISCSI Drive from SAN on Linux
Configure iSCSI Drive from SAN on Linux
iSCSI stands for internet small computer system interface. iSCSI is a transport layer protocol that uses initiators to send commands to target storage devices on remote sites. The storage targets can be on SAN, NAS, Tape devices and etc.
Here we are using software based iSCSI initiator that is less expansive then Host base adapter that is a hardware device. With the help of iSCSI we can setup centralized storage. iSCSI is use standard Ethernet, it is not require expansive switches and cards that require to run on Fiber Channel Networks.
The Performance of iSCSI is depend upon the technologies for example 10 GbE, Mulitpathing I/O, Jumbo Frames and Data center bridging.
Here we are configuring iSCSI Drive from SAN (Storage Area Network) on Linux (RedHat 7, CentOS 7, Oracle Linux 7 and etc).
First configure the IP address on Linux machine (RedHat 7, CentOS 7, Oracle Linux 7 and etc) of same LAN (Local Area Network) as same network of SAN (Storage Area Network). In this scenario the IP configuration on the Linux machine (RedHat 7, CentOS 7, Oracle Linux 7 and etc) is mention below.
yum install iscsi-initiator-utils
node.startup = automatic
service iscsid restart
To check the available connections of SAN (Storage Area Network) device on Linux machine (RedHat 7, CentOS 7, Oracle Linux 7 and etc), use iSCSI discovery by type the below mention iscsiadm command.
iscsiadm -m discovery -t st -p 10.0.11.5
iscsiadm -m node --targetname "iqn.1992-04.com.emc:cx.fcnmm093100339.a0" --portal "10.0.0.11.5:3260" -login
mkdir -p /mnt/iscsi/Prod_Temp_Bak
mount /dev/sdb1 /mnt/iscsi/Prod_Temp_Bak/
/dev/sdb1 /mnt/iscsi/Prod_Temp_Bak/ ext3 _netdev 0 0