ISCSI server ( SAN ) port : 3260

ISCSI server ( SAN ) port : 3260

nternet small computer systme interface. The protocal allow clients [ initiator ] to send SCSI command to SCSI storage devices [ target ] on remote servers. It is storage area network protocol.
Disk partition is exported as LUN via fibre optic channel or iscsi channel.

for iscsi , LAN card required Gpxi support

4GB space of machine ( target ) shared with (initiator )

configure the ISCSI server :

1> create partition to share
#cfdisk /dev/sda

2> #partx -a /dev/sda

3> install iscsi package
# yum install scsi-target-utils

4> vim /etc/tgt/target.conf
<target >   —— [ iqn_name(iqn.date_of_creation.any_name):target_name ]
backing-store /dev/sda16
initiator-address –client IP



5># service tgtd restart

6># chkconfig tgtd on

# tgt-admin -s => show shared partition LUN

client side settings.

1># yum install iscsi-initiator-utils

2># iscsiadm -m discovery -t st -p  => -m (mode), -t(Type), st(send target), -p (portal)
copy the IQN generated by this.

3># iscsiadm -m node -T -p -l  =====> l(login)

[ logs generated in #dmesg ]

Recheck using #fdisk -l

note : during this process new paration is attached as secondary HDD eg sdb

create partition on LUN

1> #cfdisk /dev/sdb

2> #partx -a /dev/sdb

3> #mkfs.ext4 /dev/sdb6

4> #mkdir /iscsi

5> #mount /dev/sdb6 /iscis

6> #vim /etc/fstab

/dev/sdb6 /iscsi ext4 defaults,_netdev 0 0

—> netdev ( call booting time network drive )


7> #mount -a

Recheck #df -hT


EXtra :

1> database path or configuration directory
# cd /var/lib/iscsi

2> show target block in configuration file
#tgt-admin –dump

3>initiator name
#vi /etc/iscsi/initiatorname.iscsi

4> Disconnect partition.
#iscsiadm -m node -T -p -u ==> u{logout}

5> Delete partition from client machine.
#iscsiadm -m node -T  -p -o delete

#iscsiadm -m node -T -p
result iscsiadm: No records found.

6> You can install OS on this partition if your LAN card support such technologies.


Posted in servers

Leave a Reply