From nobody@FreeBSD.org  Sun Dec 27 12:29:03 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6F1801065670
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 27 Dec 2009 12:29:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 5E87D8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 27 Dec 2009 12:29:03 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBRCT2pi018940
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 27 Dec 2009 12:29:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nBRCT2pq018929;
	Sun, 27 Dec 2009 12:29:02 GMT
	(envelope-from nobody)
Message-Id: <200912271229.nBRCT2pq018929@www.freebsd.org>
Date: Sun, 27 Dec 2009 12:29:02 GMT
From: Martin Laabs <info@martinlaabs.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: BSD labels are got deleted spontaneously
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         142068
>Category:       kern
>Synopsis:       [ufs] BSD labels are got deleted spontaneously
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 27 12:30:02 UTC 2009
>Closed-Date:    
>Last-Modified:  Sun Dec 27 14:58:01 UTC 2009
>Originator:     Martin Laabs
>Release:        FreeBSD 8.0-STABLE
>Organization:
>Environment:
FreeBSD pc.martinlaabs.de 8.0-STABLE FreeBSD 8.0-STABLE #1: Wed Dec 16 13:58:33 CET 2009     martin@pc.martinlaabs.de:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
After upgrade to 8.0 all disklabels (partitions) of one partition were
lost. Fortunately I found a saved bsdlabel output file so I was able to
recover the disklabels. This was 4 weeks ago and I that time I thought
it was my fault.

However - yesterday I began porting beagle (desktop search program) to
freebsd and run it some hours. During that time it created heavy (reading)
disk load because it began to index my home directory. After clean
shutdown of the computer/filesystem yesterday afternoon the disklabels
on the partition where my home directory is located were lost again this
morning.

After restoring the disklabels all worked as before and fsck did not
find any inconsistencies within the partitions.

I did a dd if=/dev/ad4s4.before of=ad4s4 count=200 before restoring the
original disklabels. You can find this file at
http://martinlaabs.de/tmp/ad4s4.before

The corresponding restored file is available at
http://martinlaabs.de/tmp/ad4s4.after

The disklabel of the partition is 
su:~$ bsdlabel /dev/ad4s4
# /dev/ad4s4:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 683180190        0    unused        0     0         # "raw" part, don't edit
  d: 104857600        0    4.2BSD        0     0     0 
  e: 62914560 104857600    4.2BSD        0     0     0 
  f: 515408030 167772160    4.2BSD        0     0     0 

Partitions ad4s4f, ad4s4e and ad4s4d are gbde encrypted.

You can find a dmesg dump at http://martinlaabs.de/tmp/dmesg.txt

Please remember also kern/138967 that occurred on the same system. There
might be a relation between them.

Greetings,
 Martin Laabs
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Dec 27 14:56:06 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

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