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
# cat /etc/iet/initiators.allow
##### iSCSI initiator configuration
# yum install iscsi-initiator-utils
# cat /etc/iscsi/iscsid.conf
# iscsiadm -m discovery -t sendtargets -p 192.168.101.23
# /etc/init.d/iscsi restart
# fdisk -l
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
# /etc/init.d/iscsitarget start... iqn.2013-01.net.chaosophia:storage.sdb 192.168.101.74
##### iSCSI initiator configuration
# yum install iscsi-initiator-utils
# cat /etc/iscsi/iscsid.conf
# /etc/init.d/iscsi start... node.session.auth.username = target node.session.auth.password = trrrtak discovery.sendtargets.auth.username = target discovery.sendtargets.auth.password = trrrtak
# iscsiadm -m discovery -t sendtargets -p 192.168.101.23
# /etc/init.d/iscsi restart
# fdisk -l