From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 21 14:50:08 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4432F16A421 for ; Thu, 21 Jun 2007 14:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 119CA13C465 for ; Thu, 21 Jun 2007 14:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5LEo7BG008380 for ; Thu, 21 Jun 2007 14:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5LEo7uF008379; Thu, 21 Jun 2007 14:50:07 GMT (envelope-from gnats) Resent-Date: Thu, 21 Jun 2007 14:50:07 GMT Resent-Message-Id: <200706211450.l5LEo7uF008379@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vivek Khera Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 44C7A16A46B for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/113912: siltent failure setting glabel on boot partition X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vivek Khera List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 14:50:08 -0000 >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: