From owner-freebsd-stable@FreeBSD.ORG Sat Jul 31 20:30:33 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 5200316A4CE for ; Sat, 31 Jul 2004 20:30:33 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA1B143D55 for ; Sat, 31 Jul 2004 20:30:31 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i6VKUM2C075462 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 31 Jul 2004 21:30:22 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i6VKUILM075457; Sat, 31 Jul 2004 21:30:18 +0100 (BST) (envelope-from matthew) Date: Sat, 31 Jul 2004 21:30:18 +0100 From: Matthew Seaman To: Michael Grant Message-ID: <20040731203018.GA75175@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Michael Grant , Pete French , freebsd-stable@freebsd.org References: <20040731200554.GA14912@grant.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: <20040731200554.GA14912@grant.org> User-Agent: Mutt/1.5.6i X-Greylist: Message not sent from an IPv4 address, not delayed by milter-greylist-1.5.3 (smtp.infracaninophile.co.uk [0.0.0.0]); Sat, 31 Jul 2004 21:30:22 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk 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:30:33 -0000 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 31, 2004 at 04:05:54PM -0400, Michael Grant wrote: > On Sat, Jul 31, 2004 at 08:25:58PM +0100, Pete French wrote: > > I have spent the afternoon ttrying to upgrade the > > RAID controller from a 4200 to a 5300. The 5300 uses > > the CISS driver rather than the IDA driver, and this > > lives under CAM too. Thus my RAID drives have changed > > from being idad devices to being da devices. > >=20 > > Unfortunately the RAID controller gets scanned first > > so I now have a da0 and a da1 where I didnt before, and my > > root drive has moved to da2. > I would sure love to see a way to fix a drive to an identifier. This > has to be the one thing that has wasted more of my time than anything > else in freebsd. For example, when I had a drive die on me a couple > months back, when the machine rebooted, the dead drive still in the > system, da2 became da1 and things just did not work well. You can wire down particular devices to a given SCSI bus, target and LUN. Thus in your (4.x) kernel config you can say: device scbus0 at ahc0 device da0 at scbus0 target 0 unit 0 Which means that your Adaptec controller will be treated as the first SCSI bus, and that the drive at target zero on that bus will be called 'da0' Under 4.x you need to create a custom kernel to do that: refer to /usr/src/sys/i386/conf/LINT for the syntax. Under 5.x you have a very similar syntax using sysctl 'hints' -- see /usr/src/sys/conf/NOTES, but the above example would be something like: hint.scbus.0.at=3D"ahc0" hint.da.0.at=3D"scbus0" hint.da.0.target=3D"0" hint.da.0.unit=3D"0" which you should be able to set from the loader. (Nb. Specifying the unit number is optional, and the value defaults to zero if not given explicitly). Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBDAFaiD657aJF7eIRAlicAJ4xUyQmsToDdPfvyAgK/Xe+7xL+UgCePdoO vPoMc3DmB5ZhS2pKrVw5wvM= =kUEQ -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw--