Wednesday, May 25, 2011

add iscsi target and initiator in CentOS Linux

----------------- Target (Server) ----------------
#> vi /etc/tgt/targets.conf

<target iqn.2011-04.com.storage2.volgroup01.logvol00>
backing-store /dev/VolGroup01/LogVol00
</target>

#> service tgtd restart

; Take care of iptables

-----------Initiator (Client) -------------
#> iscsiadm -m discovery -t st -p 192.168.2.140
#> iscsiadm -m node
#> chkconfig iscsi on
#> service iscsi start


No comments: