From owner-freebsd-scsi@FreeBSD.ORG Tue Mar 3 09:15:31 2015 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3CC14E62 for ; Tue, 3 Mar 2015 09:15:31 +0000 (UTC) Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B146AA15 for ; Tue, 3 Mar 2015 09:15:30 +0000 (UTC) Received: by wesw55 with SMTP id w55so38467674wes.4 for ; Tue, 03 Mar 2015 01:15:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=azEZKmZs4PSwDApyppLqkjwbMQl6KoonsKcMaaD8aIw=; b=g1o9rFbwwmqDGG9bRWFo/Vd3rHmt5YV7ZR7vB9xbEd+gDYEHeCrxGWVUsI65pWF5nb OTELu0WGhqZXwOUTLWaec+aVtTeshbVGAkPirEVHMPnuCzk/pv9EajXAQCFBdhRVKOUD Dd9tEKvZdQEzGdYb0IIrUiWizjl7NtGdlVM2TexLrDmx26tTMFHQURdMM/5Bf8fDFDdo AfB/UzGNCMkAVkDKLA/+crcmQviyxteunBPQ7EV45H58MEPzUfm4X7uxN1u5Uk0jPaoK Vn2B+0pKzVj72GCArWSbkhODKUCK/MkZJuQJbpzFE0bBDsRVhmFLhOweisa3nanZWchH clEQ== X-Gm-Message-State: ALoCoQkucImx7a/jFoh9pDd2pHLt86W8kClzCrxxeyhIJNeRzDPScbyUiIX35ZyOz4nRNvdgH/Je MIME-Version: 1.0 X-Received: by 10.194.142.205 with SMTP id ry13mr69172747wjb.73.1425374122979; Tue, 03 Mar 2015 01:15:22 -0800 (PST) Received: by 10.194.37.97 with HTTP; Tue, 3 Mar 2015 01:15:22 -0800 (PST) Date: Tue, 3 Mar 2015 14:45:22 +0530 Message-ID: Subject: iSCSI initiator: iscontrol cannot be stopped or killed From: Aafak Mohammad To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 09:15:31 -0000 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