From owner-freebsd-scsi Tue Nov 13 8:34:45 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from smtpzilla3.xs4all.nl (smtpzilla3.xs4all.nl [194.109.127.139]) by hub.freebsd.org (Postfix) with ESMTP id 6B9B537B405 for ; Tue, 13 Nov 2001 08:34:41 -0800 (PST) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtpzilla3.xs4all.nl (8.12.0/8.12.0) with ESMTP id fADGYXPf019764; Tue, 13 Nov 2001 17:34:34 +0100 (CET) Received: (from wkb@localhost) by freebie.xs4all.nl (8.11.6/8.11.6) id fADGYX836849; Tue, 13 Nov 2001 17:34:33 +0100 (CET) (envelope-from wkb) Date: Tue, 13 Nov 2001 17:34:33 +0100 From: Wilko Bulte To: Mark Costlow Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Dynamic SCSI device names Message-ID: <20011113173433.A36835@freebie.xs4all.nl> References: <200111131555.IAA23559@shimi.swcp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111131555.IAA23559@shimi.swcp.com>; from cheeks@swcp.com on Tue, Nov 13, 2001 at 08:55:48AM -0700 X-OS: FreeBSD 4.4-STABLE X-PGP: finger wilko@freebsd.org 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: Check the LINT kernel config file. You can wire down SCSI IDs to specific devices (da0, sa1 etc) to your own liking. Wilko > > 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? > > Thanks, > > Mark > -- > Mark Costlow | Southwest Cyberport | Fax: +1-505-232-7975 > cheeks@swcp.com | Web: www.swcp.com | Voice: +1-505-232-7992 > > "Education is never a waste" - Viscount du Valmont > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-scsi" in the body of the message ---end of quoted text--- -- | / o / /_ _ email: wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, The Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message