Monday, August 15, 2011

Configure iSCSI target


Configure iSCSI  Target


1) Create one partition

2) #yum install scsi-target-utils

3) #vim /etc/tgt/targets.conf
      (Add at the last of configuration file)
      <target iqn.2011-07.prashant.server:target0>
       (Provided device as a iSCSI target)
       Backing-store /dev/sda
       (iSCSI Initiator IP address you allow to connect)
       initiator-address 10.0.0.30
       (Authentication info (set anyone you like for "username" "password")
       incominguser username password
      </target>

4)#services tgtd start

5)#chkconfig tgtd on


6)#tgtadm --mode target --op show


iSCSI target is configured

No comments:

Post a Comment