Re: iSCSI initiator: iscontrol cannot be stopped or killed

From: Xin LI <delphij_at_delphij.net>
Date: Mon, 28 Nov 2011 15:14:21 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 11/23/11 16:26, Mark Martinec wrote:
> 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.0-rc2, amd64, also tried with 9.0-PRERELEASE (csup
> tag=RELENG_9 as of today).  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.

Try procstat -kk <pid> to find the calling stack, as a start?  This
could be very useful when tracking down problems.

Also the 'D' flag from ps(1) output in most times are not quite useful
and ps -o wchan would tell you what exactly it was waiting for, just FYI.

Cheers,
- -- 
Xin LI <delphij_at_delphij.net>	https://www.delphij.net/
FreeBSD - The Power to Serve!		Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iQEcBAEBCAAGBQJO1BXMAAoJEATO+BI/yjfBd2AIAJW1xHR93fN5eROUz9rs1YiX
8ANhcPTLmScN04YJb65ytm/BYUVKAtUN/rct2seZPosHO+REvYJhF7Tz5DKRRHJX
h+LG65S3HNBR9GBLdadw5BusbvU+T18oTvrxnqPtB1vcn5pEvQk0xtw3M3R/PrIu
V45mACO0f51auQl8oHfTUKzY48k06eDszyQhlrGCbY1FTydUU2e8AqJKd6GEIx31
f6kd0WGTpcIam6WdONpTR08d2HoPp/zK0gUADW+S2NiKfzDCy/PvJL+02lK2YlEy
M6dvnk62X6Tfkv1SV947WZT57UMDZkXbVNgwjvxwT5tSKUUbeGGvm241ZnLN2HI=
=IZ2x
-----END PGP SIGNATURE-----
Received on Mon Nov 28 2011 - 22:14:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC