LIO target hangs

41 views
Skip to first unread message

Bart Van Assche

unread,
Feb 18, 2008, 2:35:46 AM2/18/08
to Nicholas A. Bellinger, Linux-iSCSI.org Target Dev
Hello Nicholas,

When I run the following test on the initiator system, the target
system hangs after a few seconds. I tried this five times, and every
time the target system froze due to the test I performed. Can you
reproduce this ? Note: the test below works fine with the other iSCSI
target implementations I tried.

Test performed:

dd if=/dev/zero of=/dev/sde oflag=direct bs=2048

Setup (iSCSI over gigabit Ethernet):

[ target ]

initiator=iqn.1993-08.org.debian:01:b5698b924985
/bin/bash -c 'source /etc/init.d/target stop'
/bin/bash -c 'source /etc/init.d/target start'
target-ctl addtpg tpgt=1
target-ctl settpgattrib tpgt=1 authentication=0
target-ctl addnptotpg tpgt=1 ip=$(ip -family inet addr show dev eth0 \
| sed -n 's:.*inet \([0-9.]*\).*:\1:p') port=3260
target-ctl addnptotpg tpgt=1 ip=$(ip -family inet addr show dev ib0 \
| sed -n 's:.*inet \([0-9.]*\).*:\1:p') port=3260
target-ctl addhbatotarget hba_id=0 hba_type=5 rd_host_id=0
target-ctl createvirtdev hba_id=0 rd_device_id=0 rd_pages=$((2**31/4096))
target-ctl addluntodev tpgt=1 iscsi_lun=0 hba_id=0 rd_device_id=0
target-ctl addnodetotpg tpgt=1 queue_depth=32 initiatorname=${initiator}
target-ctl addnodetolun tpgt=1 iscsi_lun=0 mapped_lun=0 lun_access=1
initiatorname=${initiator}
target-ctl enabletpg tpgt=1

[ initiator ]

iscsi_target_ip=10.100.100.10
targetname=iqn.2003-01.org.linux-iscsi.INF010.x86_64:sn.856bce71e53c
iscsiadm -m node -T iscsiadm -m node -T ${targetname} -p
${iscsi_target_ip} --logout
rm -rf /etc/iscsi/nodes /etc/iscsi/send_targets
iscsiadm -m discovery -t sendtargets -p ${iscsi_target_ip}
iscsiadm --mode node --targetname ${targetname} \
--portal ${iscsi_target_ip}:3260 --op update -n
"node.conn[0].iscsi.HeaderDigest" -v None
iscsiadm -m node -T iscsiadm -m node -T ${targetname} -p
${iscsi_target_ip} --login


Bart Van Assche.

Reply all
Reply to author
Forward
0 new messages