You are on page 1of 2

Accessing ISCSI shares from Linux Accessing ISCSI shares from a Linux server/workstation will require the iscsid

service. This iscsid service will invoke the iscsi initiator service that will handshake with the iscsi targets. To install this service in your redhat server/workstation, install the following package: iscsi-initiator-utils For the above package, use the following: yum install iscsi-initiator-utils Post installation of the above package, start the iscsid service: # service iscsid start After this, to view the iscsi targets (including ISCSI Qualified Name (IQN)) in a ISCSI target server use the following the command (here the ISCSI target server is # iscsiadm -m discovery -t sendtargets -p,1,1
In the above, 2 iscsi targets got detected. Now our job is to login into our desired iscsi target device which will present the ISCSI share as a scsi device. To login: ----------iscsiadm -m node -T -p --login Logging in to [iface: default, target:, portal:,3260] Login to [iface: default, target:, portal:,3260]: successful To logout: -----------iscsiadm -m node -T -p --logout Logging out of session [sid: 3, target:, portal:,3260] Logout of [sid: 3, target:, portal:,3260]: successful When you login to a ISCSI target device do the following to detect the ISCSI target as the additional listed scsi hard disk: -------------------------------------------------------------------------------------------------------------------------------------------------------------# fdisk -l Disk /dev/sda: 26.8 GB, 26843545600 bytes 255 heads, 63 sectors/track, 3263 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot /dev/sda1 * eFORCE Start 1 End Blocks Id System 13 104391 83 Linux Page 1 of 2



3263 26105625 8e Linux LVM

Disk /dev/sdb: 42.0 GB, 42043703296 bytes 255 heads, 63 sectors/track, 5111 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot /dev/sdb1 Start 1 End Blocks Id System 5112 41055232 7 HPFS/NTFS

Now you can go ahead and mount this new hard disk to any mount point in your linux system, as desired

Annexure: In your linux system, check if your kernel has ntfs support. If not, then download and install kernel-module-ntfs package from After that add ntfs module using the command: # modprobe ntfs # lsmod | grep ntfs ntfs 189588 0


Page 2 of 2