kern/113912: siltent failure setting glabel on boot partition
vivek at khera.org
Thu Jun 21 14:50:08 UTC 2007
>Synopsis: siltent failure setting glabel on boot partition
>Arrival-Date: Thu Jun 21 14:50:07 GMT 2007
>Originator: Vivek Khera
>Release: FreeBSD 6.2-RELEASE-p4 amd64
System: FreeBSD yertle.int.kcilink.com 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Wed May 9 16:01:50 EDT 2007 khera at yertle.int.kcilink.com:/usr/obj/usr/src/sys/KCI64SMP amd64
disk controller mpt SAS RAID controller
Sun X4100 M2 system
I am using tunefs -L to label my partitions since I am doing testing on an
external RAID which causes the device names of the boot drive to change from
da0 to da1 or da2. This all works just fine except that the root partition
cannot be labeled from single-user boot. It seems to fail silently.
reboot into single user mode
run "tunefs -L root /dev/da0s1a" (assuming that's your root partition)
edit /etc/fstab to use /dev/ufs/root as the root partition device name
On reboot the loader will not be able to mount the root partition by the
/dev/ufs/root device label name. No errors are produced on the above tunefs,
and in fact the "success" indicators of the label being created are given on
stdout and the syslog.
The tunefs command works just fine for any other partition from single user
Boot from CD into fixit mode and run the above tunefs label command. This
allows the system to boot properly.
Ideally sysinstall would allow one to set the disk label during newfs time.
More information about the freebsd-bugs