How to Access or Map iSCSI LUN Volume on Linux Client

How to Access or Map an iSCSI LUN Volume on Linux Client

This post will show you with How to Access or Map iSCSI LUN Volume on Linux Server.

iSCSI Initiator are at the client end utility which we use to authenticated with iSCSI target servers to access the LUNs shared from target server. We can deploy any kind of Operating systems in those locally mounted Disks, just a single package need to be install to get authenticate with target server.

Before that we should have iSCSI Lun or Volume to be provided from iSCSI Storage target.

Lets assume that we had configured already iSCSI Target Server, if not please go through our other document to install and configure iSCSI Target server.

So we require iscsi-initiator-utils packages to be installed on the client where we are going to access or mount the iSCSI lun or Volume from iSCSI storage server to the client.

If you are interested in learning, Request you to go through the below recommended tutorial.

How to Access or Map iSCSI LUN Volume on Linux Client.

Step 1 : Install iscsi-initiator-utils package

[root @selva ~]# yum install iscsi-initiator-utils

Step 2 : Start the iscsi service

[root @selva ~]# /etc/init.d/iscsi start

Step 3 : Discover target, replace with your iSCSI Target server IP Address

[root @selva ~]# iscsiadm -m discovery -t sendtargets -p 192.168.2.1

You will see the output of IQN number. Select the iqn number which one you need to access or mount.

[root @selva ~]# iscsiadm -m node -T iqn.2014-07.com.learnitguide:tgt1 -p 192.168.2.1 -l

Step 4 : # Run dmesg, fdisk -l or log messages to get the device name for the new device. (e.g. /dev/sdb).

[root @selva ~]# dmesg
[root @selva ~]# tail /var/log/messages
[root @selva ~]# fdisk -l

If you are able to see the new disk device, then you are done with the scanning the new lun device. Just go for creating new partition and mount the volume as per the requirement.

Related Content on Linux might be useful to you to improve your Linux Skills.

Keep practicing and have fun. Leave your comments if any.

Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.