mirror, mirror on the wall

mirror, mirror on the wall

iscsi target and initiator

Posted on .

1. The iSCSI target is Debian 6.0.6 2.6.32-5-sparc64-smp - 192.168.101.23
2. The iSCSI initiator is CentOS 5.8 2.6.18-308.24.1.el5PAE - 192.168.101.74

##### iSCSI target configuration

# apt-get install iscsitarget iscsitarget-source
# m-a a-i iscsitarget
# modprobe iscsi_trgt

*Be sure that linux-headers are same version as the running kernel

# cat /etc/iet/ietd.conf
...
IncomingUser    target  trrrtak

Target iqn.2013-01.net.chaosophia:storage.sdb
        IncomingUser    target  trrrtak
        Lun 0 Path=/dev/sdb,Type=fileio

# cat /etc/iet/initiators.allow
...
iqn.2013-01.net.chaosophia:storage.sdb 192.168.101.74
# /etc/init.d/iscsitarget start


##### iSCSI initiator configuration

# yum install iscsi-initiator-utils
# cat /etc/iscsi/iscsid.conf
...
node.session.auth.username = target
node.session.auth.password = trrrtak
discovery.sendtargets.auth.username = target
discovery.sendtargets.auth.password = trrrtak
# /etc/init.d/iscsi start
# iscsiadm -m discovery -t sendtargets -p 192.168.101.23
# /etc/init.d/iscsi restart
# fdisk -l

About

github

Creative Commons

RSS