Date: Sun, 1 Aug 2004 22:27:46 +0100 From: Mike Bristow <mike@urgle.com> To: Michael Grant <mg-fbsd3@grant.org> Cc: freebsd-stable@freebsd.org Subject: Re: How does CAM determine the order to number drives ? Message-ID: <20040801212746.GA54449@urgle.com> In-Reply-To: <20040801153610.GE80016@grant.org> References: <E1BrH1Y-000OlQ-H5@dilbert.firstcallgroup.co.uk> <20040801084545.T32601@pooker.samsco.org> <20040801153610.GE80016@grant.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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/<timestamp> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040801212746.GA54449>