Date: Thu, 21 Jun 2007 10:29:11 -0400 (EDT) From: Vivek Khera <vivek@khera.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/113912: siltent failure setting glabel on boot partition Message-ID: <20070621142911.52553B80D@yertle.kcilink.com> Resent-Message-ID: <200706211450.l5LEo7uF008379@freefall.freebsd.org>
index | next in thread | raw e-mail
>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@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:help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070621142911.52553B80D>
