From owner-freebsd-current@FreeBSD.ORG Mon Nov 28 23:14:23 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A134E1065670 for ; Mon, 28 Nov 2011 23:14:23 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id 86BD68FC14 for ; Mon, 28 Nov 2011 23:14:23 +0000 (UTC) Received: from delta.delphij.net (c-76-102-50-245.hsd1.ca.comcast.net [76.102.50.245]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 4016C6620; Mon, 28 Nov 2011 15:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1322522063; bh=hfB6lqJS3Niwz5DeB5KCQyJjXHUWQASW7LTkzamkvk4=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=wjQ6ZLh+YoGhXImBl4Gl2a6GMcvd2JuObVzaOiEWIUduyxmxNBj3a5yNzu+wWG5V1 DvEr3xX2BW3P8ueB4iyq1Nb1y9W41nFsKDFIuVVFH+YFHAth49BYmnmUhRU1NBtSFo Hgv7cnSyRxLrbGcbXup6i1+Z4Ym+eUGKWsYC75i0= Message-ID: <4ED415CD.1080005@delphij.net> Date: Mon, 28 Nov 2011 15:14:21 -0800 From: Xin LI Organization: The FreeBSD Project MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <201111240126.21470.Mark.Martinec+freebsd@ijs.si> In-Reply-To: <201111240126.21470.Mark.Martinec+freebsd@ijs.si> OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: iSCSI initiator: iscontrol cannot be stopped or killed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 23:14:23 -0000 -----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 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 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-----