From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 5 18:58:00 2011 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FB09106566B for ; Mon, 5 Dec 2011 18:58:00 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) by mx1.freebsd.org (Postfix) with ESMTP id DECD18FC22 for ; Mon, 5 Dec 2011 18:57:59 +0000 (UTC) Received: from amavis-proxy-ori.ijs.si (localhost [IPv6:::1]) by mail.ijs.si (Postfix) with ESMTP id 3SxwMW24bXzGMf7 for ; Mon, 5 Dec 2011 19:57:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= message-id:content-transfer-encoding:content-type:content-type :mime-version:user-agent:date:date:subject:subject:organization :from:from:received:received:received:vbr-info; s=jakla2; t= 1323111477; x=1325703478; bh=756TLXtS1zOEgE8/QMpLidsS9ABM4Ek0woY FDUhN0kY=; b=InCUYglVOZFZU3s8K51WMJWPE0ynvkAo54w9sVziRnsNcMVeqh6 gpxSss/bOH75wPXRz8LjSVRXIHjiAcmNbLPUM8UU99KZl6A4CthKMvxK9MA6m9lo 37KdbFF7/BYICcGUEV7ww0Rh36xT4oGLN8k6Ikg6SKkHEGLtZl92jkfA= VBR-Info: md=ijs.si; mc=all; mv=dwl.spamhaus.org; X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([127.0.0.1]) by amavis-proxy-ori.ijs.si (mail.ijs.si [127.0.0.1]) (amavisd-new, port 10012) with ESMTP id sWjXcrdGwJ-M for ; Mon, 5 Dec 2011 19:57:57 +0100 (CET) Received: from rozamunda.ijs.si (unknown [IPv6:2001:1470:ff80:0:225:90ff:fe11:b090]) by mail.ijs.si (Postfix) with ESMTP for ; Mon, 5 Dec 2011 19:57:57 +0100 (CET) Received: from neli.ijs.si (neli.ijs.si [193.2.4.95]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rozamunda.ijs.si (Postfix) with ESMTPSA id EB0B9211670 for ; Mon, 5 Dec 2011 19:57:57 +0100 (CET) From: Mark Martinec Organization: J. Stefan Institute To: freebsd-scsi@freebsd.org Date: Mon, 5 Dec 2011 19:57:57 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.0-PRERELEASE; KDE/4.7.3; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201112051957.57677.Mark.Martinec+freebsd@ijs.si> Subject: iSCSI initiator: iscontrol cannot be stopped or killed X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 18:58:00 -0000 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