From owner-freebsd-scsi@FreeBSD.ORG Sun May 5 16:39:36 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 706DBCCD for ; Sun, 5 May 2013 16:39:36 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail3.networktest.com (mail3.networktest.com [69.55.234.104]) by mx1.freebsd.org (Postfix) with ESMTP id 5673C330 for ; Sun, 5 May 2013 16:39:36 +0000 (UTC) Received: from localhost (localhost [69.55.234.104]) by mail3.networktest.com (Postfix) with ESMTP id 5BEA72560E4 for ; Sun, 5 May 2013 09:32:24 -0700 (PDT) Received: from mail3.networktest.com ([69.55.234.104]) by localhost (mail3.networktest.com [69.55.234.104]) (maiad, port 10024) with ESMTP id 57481-03-2 for ; Sun, 5 May 2013 09:32:06 -0700 (PDT) Received: from tejay.local (cpe-172-249-28-59.socal.res.rr.com [172.249.28.59]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dnewman@networktest.com) by mail3.networktest.com (Postfix) with ESMTPSA id 2DB392560D7 for ; Sun, 5 May 2013 09:31:46 -0700 (PDT) Message-ID: <51868972.804@networktest.com> Date: Sun, 05 May 2013 09:31:46 -0700 From: David Newman Organization: Network Test Inc. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: running iscontrol at boot time X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 May 2013 16:39:36 -0000 How to configure FreeBSD so that iscontrol runs at boot time, so that an iSCSI initiator will mount a filesystem on an iSCSI target? In this case the FreeBSD system is an iSCSI initiator. The /boot/loader.conf file has 'iscsi_initiator_load="YES"' but iscontrol does not run at boot time. I believe iscontrol needs to run after the kernel module is loaded but before a filesystem in /etc/fstab is mounted. This works fine manually, but a reboot fails because the FreeBSD box doesn't run iscontrol at boot time, and thus can't mount the filesystem on the iSCSI target. Pardon me if this has been asked before, as it seems like a standard problem, but I couldn't find anything in recent archives or in the man pages. The initiator runs a generic FreeBSD 8.3-RELEASE/amd64 kernel. Thanks! dn