Date: Mon, 5 Dec 2011 19:57:57 +0100 From: Mark Martinec <Mark.Martinec+freebsd@ijs.si> To: freebsd-scsi@freebsd.org Subject: iSCSI initiator: iscontrol cannot be stopped or killed Message-ID: <201112051957.57677.Mark.Martinec%2Bfreebsd@ijs.si>
next in thread | raw e-mail | index | archive | help
Initially reported to freebsd-current, but was suggested to repost here: Problem: the iscontrol process starts normally and establishes a session and brings up a device, but it cannot be stopped. It does not react to a HUP signal, and neither to KILL. The /dev/da0 device is operational and the remote disk remains normally accessible, regardless of how I try to (unsuccessfully) shutdown the iscontrol process. The ps reports the state of the process as "Ds", mwchan "ffp", not doing anything. A ktrace does not show any reaction to a received signal. A machine restart seems to be necessary to break the iSCSI session. Using FreeBSD 9.0-rc2, amd64, also tried with 9.0-PRERELEASE. This used to work normally as documented on the same host with the same iscsi.conf config file before upgrading from 8.2 to 9.0. Anybody else experiencing this problem? Suggestions welcome. Freshly installed from a FreeBSD 9.0-RC2 amd64 ISO image: # uname -a FreeBSD neli-virtual 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC 2011 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 # ps axl | grep isc 0 986 0 0 -16 0 0 16 isc_pr DL ?? 0:00.24 [isc_out 0] 0 987 0 0 -16 0 0 16 sbwait SL ?? 0:00.24 [isc_in 0] 0 988 1 0 20 0 16420 1644 ffp Ds ?? 0:00.09 iscontrol -v -c /etc/iscsi.conf -n xxx # procstat -k -k 988 PID TID COMM TDNAME KSTACK 988 100071 iscontrol - mi_switch+0x174 sleepq_timedwait+0x42 _sleep+0x301 ic_init+0x2f1 iscsi_ioctl+0x525 devfs_ioctl_f+0x7b kern_ioctl+0x115 sys_ioctl+0xfd amd64_syscall+0x450 Xfast_syscall+0xf7 # cat /etc/iscsi.conf xxx { AuthMethod = CHAP ChapIName = markxxx ChapSecret = xxxxx InitiatorName = iqn.2011-05.si.ijs.neli:storage.disk1 TargetName = iqn.1986-03.com.sun:02:f5db11a2-14d7-ceaf-ab13-8bdb51619dda TargetAddress = xxx.xxx.xxx.xxx:3260,1 } # sysctl net.iscsi_initiator net.iscsi_initiator.driver_version: 2.2.4.2 net.iscsi_initiator.isid: DIB00 net.iscsi_initiator.sessions: 1 net.iscsi_initiator.0.targetname: iqn.1986-03.com.sun:02:f5db11a2-14d7-ceaf-ab13-8bdb51619dda net.iscsi_initiator.0.targeaddress: xxx.xxx.xxx.xxx net.iscsi_initiator.0.stats: recv=7295 sent=7281 flags=0x0000059f pdus-alloc=0 pdus-max=7 cws=1024 cmd=1c03 exp=1c03 max=2002 stat=1c08 itt=1c03 net.iscsi_initiator.0.douio: 0 Mark
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112051957.57677.Mark.Martinec%2Bfreebsd>