Here is the entire procedure in running iSCSI: I actually wanted to attach the file but could not so I am copying it over here.
I guess this would definitely help if others are looking to run iSCSI:
Link to download IET iSCSI Target:
Installed FC5 release; 2.6.16-1.2096_Fc5smp kernel
Downloaded MicroSoft Initiator also:
How to use MS iSCSI initiator isfound at MS iSCSI ini user guide in same download page and went through it.
Procedure to implement iSCSI:
* Write down the IP address of this target. In my case, my box IP is
* By using "yum" updated the kernel to
latest one available, " 2.6.16-1.2096_FC5 " and can be checked with command "uname -a"
* FC5 has built in open-iscsi INITIATOR software. Check if you have it installed
already. run "rpm -q iscsi-initiator-utils"
if u see 'package iscsi-initiator-utils is not installed', then you do
not have this package, you can install it via
"yum install iscsi-initiator-utils"
run "rpm -q iscsi-initiator-utils" again,
and I saw msg like 'iscsi-initiator-utils-22.214.171.1246-0.1'.
Also make sure that you do yum for these both on initiator and target:
yum -y install kernel-smp-devel
yum install openssl-devel
and you can check kernels installed using
rpm -qa | grep kernel
* start iscsi initiator service. by run command
you should be able to see
'iscsiadm: no records found!rvice: [ OK ]
[ OK ]'
by running that script, the script will load the needed kernel modules
for you, and start the iscsid service. you can then optionally run
"/etc/init.d/iscsi status" to check if iscsi initiator service is
running, the desired message should be 'iSCSI initiator is running.'
then go to cd /sbin which has iscsiadm,iscsid etc.
Initiator name is found by typin command cd/sbin ./iscsi-iname
Note: Do not enter this command multiple times because it gives new name everytime u do it.
* run "iscsiadm -m node" and get 'iscsiadm: no records found!'. this is
a fresh FC5 installation, so iscsi initiator does not have any target
record in it.
* run iscsiadm command with right options to discovery the target. the
command i used is
"./iscsiadm -m discovery -tst -p 126.96.36.199:3260"
where "-m" specify the mode or action we want to do. here we want to do a target
discovery, so it is "-m discovery". "-st" is to execute "sendtarget"
command to ask target to return all iscsi target names available on that
target. "-p" is to specify your target ip. my target ip address is 1,1,1,1.
this is the return msg i got
[28:d97ba5] 188.8.131.52:3260,1 iqn.2006-01.iscsi1.rdmadomain:storage.root
this told us that the iscsi initiator database now has a record, with
key d97ba5. so later we can use this key to identify the target in
related operations. also the target ip is 184.108.40.206. port is 3260.
ignore the 1 here, the target name is
iqn.2006-01.iscsi1.rdmadomain:storage.root. this should match the
target name u see in MS iSCSI initiator if you tried that or in linux iscsi initiator.
* we already discovery the target. so now it is time to connect. run
"./iscsiadm -m node --record d97ba5 --login"
this d97ba5 is the record key we got in
This command simply return and display no more message. i can find out more by running
"dmesg", it return me this
'scsi0 : iSCSI Initiator over TCP/IP, v.0.3
Vendor: IET Model: VIRTUAL-DISK Rev: 0
Type: Direct-Access ANSI SCSI revision: 04
0:0:0:0: Attached scsi generic sg0 type 0
SCSI device sdb: 134217728 512-byte hdwr sectors (68719 MB)
sdb: Write Protect is off
sdb: Mode Sense: 77 00 00 08
SCSI device sda: drive cache: write through
SCSI device sda: 134217728 512-byte hdwr sectors (68719 MB)
sdb: Write Protect is off
sdb: Mode Sense: 77 00 00 08
SCSI device sdb: drive cache: write through
sdb: unknown partition table
sd 0:0:0:0: Attached scsi disk sdb'
this told me that there is a new scsi device found by system. it is a
"direct access" type scsi device, or simply, a scsi disk type device.
the device attached to system as SDB. it has 68719MB capacity. The write
protection is off so this mean we can write to disk as well. 'unknown
partition table' told us that this is like a brand new disk without any
partition information on it"
!!! when u try this, if you already have scsi disk(s) in your system,
you might see sdb, or sdd, or any sdX in the message. be sure to
remember this name.
* so till now, we already run the open-iscsi, connect to target system,
and get an iSCSI disk. this iscsi disk will behave like a normal SCSI
disk in our system.
* for most users, we need to partition it, make a file system on it, and
then mount it somewhere before actually use it.
!!! before you do fdisk and mkfs on that SDB, you need to replace it
with the name you get. if you happen to have a real physical SCSI disk
in your system already and you still use sda here, you can ruin your
* linux use "fdisk" to partition a new disk. this only need to be done
once for most users. "man fdisk" or "info fdisk" to get more information
about how to use fdisk.
* assume u already create partitions like /dev/sdb1, /dev/sdb2,... in
last step. u need to make a file system on it. still "man mkfs" or "info
mkfs" will give you enough information on create a file system. the
simplest way is to run
which will use a default file
system (it is ext2 in most of the time)
* now choose a place to mount it. "man mount" and "info mount" will give
you enough information on how to do mount. a typical command will look
like "mount /dev/sdb1 /mnt".
*Check fdisk -l which shows wat all devices are connected and df -h which gives wat all devices are mounted.
In Target Side create a new file:
vi /etc/ietd.conf and then type
Lun 0 Path=/dev/sdb,Type=fileio
Note: Make sure there are no spaces.
Make sure you see the target device on target machine:
cat /proc/net/iet/volume and i got output like:
lun:0 state:0 iotype:fileio path:/dev/sdb
On Initiator Side if running in Linux then create:
vi /etc/iscsi.conf and type
Note: that is target's ip address
when installing Target iSCSI give kernel path as
1) Start target and initiator
2)do not mount anything on target and make sure u see target scsi devices on the initiator using fdisk -l command
then if u want to copy anything into target scsi device from initiator then mount it on initiator.
copy it and unmount it on initiator.
3)to see the copied file go to target machine and mount it and u should be able to see the files copied.
When using microsoft iscsi initiator make sure that u start the service from :
start->programs->administrative tools->services-> and choose and double click Microsoft iSCSI Initiator service in it and choose Automatic option in Startup type shown in general window.
Once u do that open MS iSCSI and go to deiscovery tab and add the target device ip,port. i.e, 220.127.116.11 and 3260
then go to targets tab on the top and click on LogOn which shows connected at status on window and if u want to logoff that go to details and then choose and click logoff .
Then right click "My Computer" and click "manage" and choose "Storage" and then " Disk Management" and you should be able to see the target device.