From nobody@FreeBSD.org  Fri Apr 20 18:59:49 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 9B9D016A404
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Apr 2007 18:59:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 8BCD413C45A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Apr 2007 18:59:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l3KIxn0f078154
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Apr 2007 18:59:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l3KIsmii075637;
	Fri, 20 Apr 2007 18:54:48 GMT
	(envelope-from nobody)
Message-Id: <200704201854.l3KIsmii075637@www.freebsd.org>
Date: Fri, 20 Apr 2007 18:54:48 GMT
From: Peter Schuller<peter.schuller@infidyne.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: glabel - label is seemingly not written to disk immediately
X-Send-Pr-Version: www-3.0

>Number:         111967
>Category:       kern
>Synopsis:       [geli] glabel - label is seemingly not written to disk immediately
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 20 19:00:09 GMT 2007
>Closed-Date:    Fri Feb 24 07:26:28 UTC 2012
>Last-Modified:  Fri Feb 24 07:26:28 UTC 2012
>Originator:     Peter Schuller
>Release:        7-CURRENT; also appears on 6.x
>Organization:
N/A
>Environment:
7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Apr 17 00:54:35 CEST 2007 
>Description:
The following has now happened to me several times:

(1) glabel any device
(2) crash the machine in one way or another
(3) watch the label be gone on reboot

I was experiencing this several times some time ago when playing with
labels and geli on USB drives. I ended up having to label and make sure
I perform a clean shutdown and rebooting, before I could ever trust a
label. A "sync" has no effect at all. The label can disappear even after
extended periods of uptime.

I now had this happen again; I had two SATA drives that I glabel:ed and
used in a ZFS pool. A couple of days later I performed a crash test - hit
reset during heavy I/O. When the machine came up, one of the labels in
the pool was gone. After glabel:ing it again (using the same name) the
ZFS pool became healthy again.

In summary I have now seen this happen on at least 7-CURRENT, 6.1-RELEASE
or 6.2-RELEASE (not sure which one I had at the time), and with both USB
and SATA drives.

The effect can be pretty bad since you can be running for weeks thinking
your data is safe, and then the label is blown away. Usually you may be
able to just re-label, but this may not always be the case - especially
considering the point of labeling is to not have to keep track of which
disk is which.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Sun Nov 27 16:17:47 UTC 2011 
State-Changed-Why:  
Is this still a problem for you? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111967 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Fri Feb 24 07:26:27 UTC 2012 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111967 
>Unformatted:
