From owner-freebsd-stable@FreeBSD.ORG Sun Aug 1 21:27:48 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 460FD16A4CE for ; Sun, 1 Aug 2004 21:27:48 +0000 (GMT) Received: from anchor-post-37.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC8A343D60 for ; Sun, 1 Aug 2004 21:27:47 +0000 (GMT) (envelope-from mike@urgle.com) Received: from guylian.urgle.com ([80.177.40.54]) by anchor-post-37.mail.demon.net with esmtp (Exim 3.35 #1) id 1BrNru-0007mU-0b; Sun, 01 Aug 2004 21:27:46 +0000 Received: from mike by guylian.urgle.com with local (Exim 4.32; FreeBSD) id 1BrNru-000ELv-Bq; Sun, 01 Aug 2004 21:27:46 +0000 Date: Sun, 1 Aug 2004 22:27:46 +0100 From: Mike Bristow To: Michael Grant Message-ID: <20040801212746.GA54449@urgle.com> References: <20040801084545.T32601@pooker.samsco.org> <20040801153610.GE80016@grant.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040801153610.GE80016@grant.org> User-Agent: Mutt/1.5.6i cc: freebsd-stable@freebsd.org 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: Sun, 01 Aug 2004 21:27:48 -0000 On Sun, Aug 01, 2004 at 11:36:10AM -0400, Michael Grant wrote: > I just want to toss this out as an idea: Would it be possible to put > some identifier somewhere on the drive itself when you partition the > drive such that the drive itself could always come up in the same > place regardless even if it moved to a different controller? Yes. GEOM in FreeBSD 5.x does this (with geom_vol_ffs). Basically, devices with a FFS filesystem with a volume name of "foo" appear in '/dev/vol/foo'. I use this for my Soekris box; I don't know if an image I'm building will appear on /dev/ad0s1 or /dev/ad0s2; so I label the filesystem with a timestamp and stuff /dev/vol/ in /etc/fstab. That way I can dd the image onto either slice. The same principle applies to disk locations. -- You dont have to be illiterate to use the Internet, but it help's.