From owner-freebsd-scsi Tue Nov 13 9: 8:32 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 1BAA037B417 for ; Tue, 13 Nov 2001 09:08:28 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.0/8.11.0) with UUCP id fADH8HW04272; Tue, 13 Nov 2001 18:08:17 +0100 (CET) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id fADH7op1080550; Tue, 13 Nov 2001 18:07:50 +0100 (CET)?g (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id fADH7oI05735; Tue, 13 Nov 2001 18:07:50 +0100 (CET) Received: (from ticso@localhost) by cicely8.cicely.de (8.11.4/8.11.4) id fADH7bm36958; Tue, 13 Nov 2001 18:07:37 +0100 (CET) (envelope-from ticso) Date: Tue, 13 Nov 2001 18:07:35 +0100 From: Bernd Walter To: Mark Costlow Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Dynamic SCSI device names Message-ID: <20011113180735.B36456@cicely8.cicely.de> References: <200111131555.IAA23559@shimi.swcp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200111131555.IAA23559@shimi.swcp.com> User-Agent: Mutt/1.3.23i X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Nov 13, 2001 at 08:55:48AM -0700, Mark Costlow wrote: > > This seems like a newbie question, but I haven't been able to turn up the > answer in the handbook or list archives. > > If I have a FreeBSD 4.4 system with several SCSI devices, the kernel names > them da0, da1, da2, etc. at boot time, regardless of their SCSI IDs. If I > remove one of the drives, say the one labeled da1, and reboot, the kernel > renames them so that da2 becomes da1, da3 becomes da1, etc. > > So if I have a system where I periodically want to attach a drive and remove > it, I have to boot single user to fix fstab when the drive is added or removed > (or conspire to have it be the last drive on the last SCSI bus). I'm also > playing with a system that I want to have a spare boot disk, and I'd like to > have the device numbering nailed down so the spare drive can boot without > having to know how the SCSI chain has changed. > > So is there a kernel option to use static device naming by any chance? Or am > I missing something about why this dynamic naming is a good thing? You can hardwire scsi devices. See the LINT/NOTES file in src/sys/i386/conf for examples. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message