From owner-freebsd-bugs@FreeBSD.ORG Tue Mar 3 03:50:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BBE5106566B for ; Tue, 3 Mar 2009 03:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 655F38FC1D for ; Tue, 3 Mar 2009 03:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n233o1CT035465 for ; Tue, 3 Mar 2009 03:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n233o1TS035464; Tue, 3 Mar 2009 03:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 3 Mar 2009 03:50:01 GMT Resent-Message-Id: <200903030350.n233o1TS035464@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, Nick Sayer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68E431065688 for ; Tue, 3 Mar 2009 03:45:15 +0000 (UTC) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com (6to4.kfu.com [IPv6:2002:478d:4001::1]) by mx1.freebsd.org (Postfix) with ESMTP id 27F088FC19 for ; Tue, 3 Mar 2009 03:45:15 +0000 (UTC) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com (localhost [127.0.0.1]) by quack.kfu.com (8.14.3/8.14.3) with ESMTP id n233jCOE001339 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 2 Mar 2009 19:45:14 -0800 (PST) (envelope-from nsayer@quack.kfu.com) Received: (from nsayer@localhost) by quack.kfu.com (8.14.3/8.14.3/Submit) id n233jC9g001338; Mon, 2 Mar 2009 19:45:12 -0800 (PST) (envelope-from nsayer) Message-Id: <200903030345.n233jC9g001338@quack.kfu.com> Date: Mon, 2 Mar 2009 19:45:12 -0800 (PST) From: Nick Sayer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/132273: glabel failing on journaled partition X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nick Sayer List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2009 03:50:01 -0000 >Number: 132273 >Category: kern >Synopsis: glabel failing on journaled partition >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 03 03:50:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Nick Sayer >Release: FreeBSD 7.1-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD quack.kfu.com 7.1-RELEASE-p1 FreeBSD 7.1-RELEASE-p1 #12: Fri Jan 9 12:01:41 PST 2009 root@quack.kfu.com:/usr/obj/usr/src/sys/QUACK i386 disk is GPT partitioned. ad0p5 is the data provider and ad0p7 is a 10G journal partition. The filesystem has a UFS label of "home". I have set the label geom debug sysctl to 2. >Description: The label for ufs/home is not there when the system attempts to mount it. Dmesg says: GEOM_LABEL[2]: Tasting ad0. GEOM_LABEL[1]: MSDOSFS: ad0: FAT12/16 volume not valid. GEOM_LABEL[2]: Tasting ad0p1. GEOM_LABEL[1]: MSDOSFS: ad0p1: no FAT signature found. GEOM_LABEL[2]: Tasting ad0p2. GEOM_LABEL[1]: UFS2 file system detected on ad0p2. GEOM_LABEL[0]: Label for provider ad0p2 is ufs/root. GEOM_LABEL[1]: MSDOSFS: ad0p2: no FAT signature found. GEOM_LABEL[2]: Tasting ad0p3. GEOM_LABEL[1]: UFS2 file system detected on ad0p3. GEOM_LABEL[0]: Label for provider ad0p3 is ufs/var. GEOM_LABEL[1]: MSDOSFS: ad0p3: no FAT signature found. GEOM_LABEL[2]: Tasting ad0p4. GEOM_LABEL[1]: UFS2 file system detected on ad0p4. GEOM_LABEL[0]: Label for provider ad0p4 is ufs/usr. GEOM_LABEL[1]: MSDOSFS: ad0p4: no FAT signature found. GEOM_LABEL[2]: Tasting ad0p5. GEOM_LABEL[1]: UFS2 file system detected on ad0p5. GEOM_LABEL[0]: Label for provider ad0p5 is ufs/home. GEOM_LABEL[1]: MSDOSFS: ad0p5: no FAT signature found. GEOM_JOURNAL: Journal 3505265168: ad0p5 contains data. GEOM_LABEL[2]: Tasting ad0p6. GEOM_LABEL[1]: MSDOSFS: ad0p6: no FAT signature found. GEOM_LABEL[2]: Tasting ad0p7. GEOM_LABEL[1]: MSDOSFS: ad0p7: no FAT signature found. GEOM_JOURNAL: Journal 3505265168: ad0p7 contains journal. GEOM_JOURNAL: Journal ad0p5 clean. GEOM_LABEL[2]: Tasting ufs/root. GEOM_LABEL[2]: Tasting ufs/var. GEOM_LABEL[2]: Tasting ufs/usr. GEOM_LABEL[2]: Tasting ufs/home. GEOM_LABEL[0]: Label ufs/home removed. GEOM_LABEL[2]: Tasting ad0p5.journal. GEOM_LABEL[0]: Label for provider ad0p5.journal is label/home. GEOM_LABEL[1]: UFS2 file system detected on ad0p5.journal. GEOM_LABEL[1]: Label home(ufs/home) already exists (ad0p5.journal). GEOM_LABEL[1]: MSDOSFS: ad0p5.journal: no FAT signature found. GEOM_LABEL[2]: Tasting label/home. Trying to mount root from ufs:/dev/ufs/root Note, in particular, that when geom journal comes along, it removes the label for ufs/home, presumably because it "takes over" ad0p5. When it then presents ad0p5.journal to GEOM_LABEL, label complains that ufs/home already exists (ignore the refernce to label/home - that is my current work-around). >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: