iSCSI initiator: iscontrol cannot be stopped or killed

Aafak Mohammad aafak.mohammad at cloudbyte.com
Tue Mar 3 09:15:31 UTC 2015


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", not doing anything. A ktrace does not show any
reaction to a received signal. A restart seems to be necessary
to break the iSCSI session.

Using FreeBSD 9.2

info:
root at trunk-mar3-node2:~ # ps -aux | grep iscontrol
root  3293  0.0  0.1  16340   1884    ??  Ds    2:17PM  0:00.00 iscontrol
-c /etc/iscsi.conf -n sbiiscsiDisk31
root  3365  0.0  0.1  16340   1892    ??  Ds    2:20PM  0:00.00 iscontrol
-v -c /etc/iscsi.conf -n sbiiscsiDisk32
root at trunk-mar3-node2:~ #
root at trunk-mar3-node2:~ # procstat -kka | grep 3293
 3293 100659 iscontrol        -                mi_switch+0x194
sleepq_timedwait+0x42 _sleep+0x1c9 ic_init+0x2e9 i_fullfeature+0x97
iscsi_ioctl+0x66d devfs_ioctl_f+0x7b kern_ioctl+0x106 sys_ioctl+0xfd
amd64_syscall+0x5ea Xfast_syscall+0xf7

root at trunk-mar3-node2:~ # procstat -k -k  3293
  PID    TID COMM             TDNAME           KSTACK
 3293 100659 iscontrol        -                mi_switch+0x194
sleepq_timedwait+0x42 _sleep+0x1c9 ic_init+0x2e9 i_fullfeature+0x97
iscsi_ioctl+0x66d devfs_ioctl_f+0x7b kern_ioctl+0x106 sys_ioctl+0xfd
amd64_syscall+0x5ea Xfast_syscall+0xf7

root at trunk-mar3-node2:~ # procstat -kk grep 3293
procstat: open(grep): No such file or directory
procstat: procstat_open()
  PID    TID COMM             TDNAME           KSTACK
 3293 100659 iscontrol        -                mi_switch+0x194
sleepq_timedwait+0x42 _sleep+0x1c9 ic_init+0x2e9 i_fullfeature+0x97
iscsi_ioctl+0x66d devfs_ioctl_f+0x7b kern_ioctl+0x106 sys_ioctl+0xfd
amd64_syscall+0x5ea Xfast_syscall+0xf7



-- 
Thanks and Regards,
Aafak
[image: cid:image001.png at 01CF7E5A.8A69F530]

Plot No. : 2799 & 2800, Srinidhi Bldg, 3rd Floor,
27th Main, Sector – 1, HSR Layout,
Bangalore – 560102, Call: (91)-80-2258-2804
www.cloudbyte.com


More information about the freebsd-scsi mailing list