Iscsi Initiator Client Setup Linux
Iscsi Initiator Client Setup Linux
3. After installing the package, we need to discover the share from Target server.
The client side commands little hard to remember, so we can use man page to get the
list of commands which required to run.
# man iscsiadm
man iscsiadm
man iscsiadm
4. Press SHIFT+G to Navigate to the Bottom of the man page and scroll little up to
get the login example commands. We need to replace our Target servers IP address in
below command Discover the Target.
192.168.0.200:3260,1 iqn.2014-07.com.tecmint:tgt1
Discover Target
Discover Target
6. To log-in use the below command to attach the LUN to our local System, this will
authenticate with target server and allow us to log-in into LUN.
# fdisk -l /dev/sda
List Disks
List Disks
10. Run fdisk to create a new partition.
# mkfs.ext4 /dev/sda1
Format New Partition
Format New Partition
12. Create a Directory and mount the formatted partition.
# mkdir /mnt/iscsi_share
# mount /dev/sda1 /mnt/iscsi_share/
# ls -l /mnt/iscsi_share/
Mount New Partition
Mount New Partition
13. List the Mount Points.
# df -Th
-T Prints files system types.
-h Prints in human readable format eg : Megabyte or Gigabyte.
List New Partition
List New Partition
14. If we need to permanently mount the Drive use fstab entry.
# vim /etc/fstab
15.Append the following Entry in fstab.
# mount -av
-a all mount point
-v Verbose
Verify fstab Entries
Verify fstab Entries
We have Completed Our client side configuration Successfully. Start to use the
drive as we use our local system disk.