From owner-freebsd-stable@FreeBSD.ORG Sat Jul 31 20:15:34 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F073516A4F1 for ; Sat, 31 Jul 2004 20:15:33 +0000 (GMT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id C339A43D2D for ; Sat, 31 Jul 2004 20:15:31 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.11/8.12.11) with ESMTP id i6VKFUEq093653; Sun, 1 Aug 2004 00:15:30 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Sun, 1 Aug 2004 00:15:30 +0400 (MSD) From: Dmitry Morozovsky To: Michael Grant In-Reply-To: <20040731200554.GA14912@grant.org> Message-ID: <20040801001414.N93307@woozle.rinet.ru> References: <20040731200554.GA14912@grant.org> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org cc: Pete French Subject: Re: How does CAM determine the order to number drives ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2004 20:15:34 -0000 On Sat, 31 Jul 2004, Michael Grant wrote: MG> Yes, I know this situation all to well. In my case, I ended up MG> physically plugging and unplugging drives until they ended up in the MG> right place. MG> MG> I would sure love to see a way to fix a drive to an identifier. This MG> has to be the one thing that has wasted more of my time than anything MG> else in freebsd. For example, when I had a drive die on me a couple MG> months back, when the machine rebooted, the dead drive still in the MG> system, da2 became da1 and things just did not work well. MG> MG> If someone knows of a way to tie physical drives to the nodes in /dev, MG> please let me know. I've heard that this auto drive numbering MG> is a bios "feature" which is impossible to get around. root_disk_unit="2" in /boot/loader.conf ? MG> MG> Michael Grant MG> MG> On Sat, Jul 31, 2004 at 08:25:58PM +0100, Pete French wrote: MG> > Hi, I have a small server which boots from an MG> > Adaptec 2940 controller under CAM, and serves drives MG> > off a Compaq 4200 RAID controller. MG> > MG> > I have spent the afternoon ttrying to upgrade the MG> > RAID controller from a 4200 to a 5300. The 5300 uses MG> > the CISS driver rather than the IDA driver, and this MG> > lives under CAM too. Thus my RAID drives have changed MG> > from being idad devices to being da devices. MG> > MG> > Unfortunately the RAID controller gets scanned first MG> > so I now have a da0 and a da1 where I didnt before, and my MG> > root drive has moved to da2. MG> > MG> > I can't persuade it to boot like this - it refuses to mount MG> > the root from da2. The simplest solution, of course, would MG> > be to somehow force the CAM system to scan the Adaptec MG> > controller first, so that the root device is back in da0 MG> > where it belongs. But I cant find out if there is a way MG> > of dojing this, or indeed how the system determines the order MG> > at all. MG> > MG> > Any suggestions ? MG> > MG> > -pcf. MG> > MG> > PS: System is 4.10-RELEASE, though I suspect this is irrelevent MG> > _______________________________________________ MG> > freebsd-stable@freebsd.org mailing list MG> > http://lists.freebsd.org/mailman/listinfo/freebsd-stable MG> > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" MG> _______________________________________________ MG> freebsd-stable@freebsd.org mailing list MG> http://lists.freebsd.org/mailman/listinfo/freebsd-stable MG> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" MG> Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------