From khera@kcilink.com  Thu Jun 21 14:47:16 2007
Return-Path: <khera@kcilink.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 44C7A16A46B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Jun 2007 14:47:16 +0000 (UTC)
	(envelope-from khera@kcilink.com)
Received: from yertle.kcilink.com (thingy.kcilink.com [74.92.149.59])
	by mx1.freebsd.org (Postfix) with ESMTP id 1FFBE13C45B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Jun 2007 14:47:16 +0000 (UTC)
	(envelope-from khera@kcilink.com)
Received: by yertle.kcilink.com (Postfix, from userid 1002)
	id 52553B80D; Thu, 21 Jun 2007 10:29:11 -0400 (EDT)
Message-Id: <20070621142911.52553B80D@yertle.kcilink.com>
Date: Thu, 21 Jun 2007 10:29:11 -0400 (EDT)
From: Vivek Khera <vivek@khera.org>
Reply-To: Vivek Khera <vivek@khera.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: siltent failure setting glabel on boot partition
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         113912
>Category:       bin
>Synopsis:       tunefs(8): silent 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:  Thu Jun 21 20:14:48 GMT 2007
>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:
