Date: Sat, 08 Oct 2005 03:27:49 +0200 From: Benjamin Lutz <benlutz@datacomm.ch> To: FreeBSD-Questions <questions@freebsd.org> Subject: device numbering / glabel Message-ID: <43472095.5000109@datacomm.ch>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3378EB988BACAFA74B75C84D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello, I've run into a little problem with device numbering. My boot device is a SATA RAID5 array, which normally shows up at /dev/da0. Now I've connected an external USB HD, which showed up at /dev/da1. So far so good. The next time I booted, I was surprised to see the USB disk now having /dev/da0, and the RAID array having /dev/da1. The machine dropped me into single user mode because /etc/fstab was now wrong. Now, it's clearly not a good thing to have one's boot device name change depending on whether an USB HD is connected or not. I figured I could use glabel(8) to set a label, and then use that. Setting the label for both RAID array and USB disk worked. For the RAID array, dmesg does say: GEOM_LABEL: Label for provider da0 is label/raid5. However, the label doesn't show up in /dev/label, there's only the label for the USB disk. Any idea how I can solve this? Connecting the USB disk after booting is not an option, since this system's supposed to be headless, and I'd like to be able to remote reboot it. Cheers Benjamin --------------enig3378EB988BACAFA74B75C84D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDRyCZgShs4qbRdeQRAtJDAJ4sOcdGjeFzBsExnV0TekyqZHndngCfa286 T+9Mx9SoDrMs9GTNu89jK9w= =BHrn -----END PGP SIGNATURE----- --------------enig3378EB988BACAFA74B75C84D--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43472095.5000109>