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 10.6.30.19): # iscsiadm -m discovery -t sendtargets -p 10.6.30.19 10.6.30.19:3260,1 iqn.2006-01.com.openfiler:vg1.op-iscsi2 10.6.30.19:3260,1 iqn.2006-01.com.openfiler:vg1.op-iscsi3
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 iqn.2006-01.com.openfiler:vg1.op-iscsi3 -p 10.6.30.19:3260 --login Logging in to [iface: default, target: iqn.2006-01.com.openfiler:vg1.op-iscsi3, portal: 10.6.30.19,3260] Login to [iface: default, target: iqn.2006-01.com.openfiler:vg1.op-iscsi3, portal: 10.6.30.19,3260]: successful To logout: -----------iscsiadm -m node -T iqn.2006-01.com.openfiler:vg1.op-iscsi3 -p 10.6.30.19:3260 --logout Logging out of session [sid: 3, target: iqn.2006-01.com.openfiler:vg1.op-iscsi3, portal: 10.6.30.19,3260] Logout of [sid: 3, target: iqn.2006-01.com.openfiler:vg1.op-iscsi3, portal: 10.6.30.19,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

/dev/sda2

14

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 http://www.linux-ntfs.org/doku.php?id=redhat:start After that add ntfs module using the command: # modprobe ntfs # lsmod | grep ntfs ntfs 189588 0

eFORCE

Page 2 of 2