From owner-freebsd-questions@FreeBSD.ORG Sat Nov 13 05:28:19 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 611EF16A4CE for ; Sat, 13 Nov 2004 05:28:19 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1419A43D2D for ; Sat, 13 Nov 2004 05:28:19 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id iAD5SIwc080958; Fri, 12 Nov 2004 23:28:18 -0600 (CST) (envelope-from dan) Date: Fri, 12 Nov 2004 23:28:18 -0600 From: Dan Nelson To: Tillman Hodgson Message-ID: <20041113052818.GE37496@dan.emsphone.com> References: <20041113040749.GB33689@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041113040749.GB33689@seekingfire.com> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: FreeBSD-Questions Subject: Re: Setting SCSI bus options before reaching fsck at boot time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2004 05:28:19 -0000 In the last episode (Nov 12), Tillman Hodgson said: > I have a SCSI controller (the external 68-pin high density connector > on a Compaq Proliant 1600) that seems to ignore it's own settings > when I through its bus speed down. This is a problem, as I'm running > into /many/ SCSI bus reset problems with this ancient DEC 7-bay JBOD > tower that I'm playing with. The problems go away when I use > `camcontrol negotiate -R 10 da0` to drop the bus freq to 10MHz from > 20MHz and I'd hope to simply set the controller to that speed. No > love, sigh. FreeBSD comes up at the drives are 20MHz: > > da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled > > I'd like to find a way to have camcontrol (or some other mechanism) > set the SCSI bus speed on this particular SCSI chain early in the > boot process, /before/ it encounters fsck and thus trips over it's > own feet in bus resets. If it matters, the SCSI controller shows in > dmesg as: > > sym1: <875> port 0x3400-0x34ff mem 0xc6efe000-0xc6efefff,0xc6efde00-0xc6efdeff irq 10 at device 9.1 on pci1 > sym1: No NVRAM, ID 7, Fast-20, SE, parity checking > sym1: [GIANT-LOCKED] > > Any pointers? Since camcontrol is in /sbin, you can just add a line to the top of /etc/rc. A cleaner solution would be to write a small /etc/rc.d/ script and add a "BEFORE: fsck" line so it gets run before fsck. -- Dan Nelson dnelson@allantgroup.com