kern/113912: siltent failure setting glabel on boot partition

Vivek Khera vivek at khera.org
Thu Jun 21 14:50:08 UTC 2007


>Number:         113912
>Category:       kern
>Synopsis:       siltent failure setting glabel on boot partition
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 21 14:50:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Vivek Khera
>Release:        FreeBSD 6.2-RELEASE-p4 amd64
>Organization:
>Environment:
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

	
>Description:
	

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.


>How-To-Repeat:
	

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
reboot.

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
mode.


>Fix:

	

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.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list