Accessing iSCSI targets on Linux

1. Install iscsi-initiator-utils-6.2.0.754-0.0.fc7.x86_64.rpm on Linux box



2. /etc/init.d/iscsid start


3. iscsiadm -m discovery -t sendtargets -p <iSCSI IP>


4. iscsiadm -m node -T <targetname> -p <iSCSI IP> --login test


5. fdisk -l


6. mount /dev/sdb1 (Or that partition) on specific folder. (Here if its raw drive then we need to create Partition & Filesystem before mounting)


7. For removing targets drive first Umount it.


8. iscsiadm -m node -T <targetname> -p <iSCSI IP> --logout test