Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Mar 2015 14:45:22 +0530
From:      Aafak Mohammad <aafak.mohammad@cloudbyte.com>
To:        freebsd-scsi@freebsd.org
Subject:   iSCSI initiator: iscontrol cannot be stopped or killed
Message-ID:  <CAC5dOi=bf-x2_UzWUexwKPmKA7_EVngFUD_ZWy9RNji9nfW9xw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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@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@trunk-mar3-node2:~ #
root@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@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@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



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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC5dOi=bf-x2_UzWUexwKPmKA7_EVngFUD_ZWy9RNji9nfW9xw>