From nobody@FreeBSD.org  Sun Mar 21 23:45:05 2010
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 93392106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Mar 2010 23:45:05 +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 82A658FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Mar 2010 23:45:05 +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 o2LNj4jq006831
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Mar 2010 23:45:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o2LNj4Tp006830;
	Sun, 21 Mar 2010 23:45:04 GMT
	(envelope-from nobody)
Message-Id: <201003212345.o2LNj4Tp006830@www.freebsd.org>
Date: Sun, 21 Mar 2010 23:45:04 GMT
From: Rowan Crowe <freebspr@sensation.net.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gconcat randomly "loses" all knowledge of JBOD set
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         144943
>Category:       bin
>Synopsis:       [geom] gconcat(8) randomly "loses" all knowledge of JBOD set
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-geom
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 21 23:50:05 UTC 2010
>Closed-Date:    Mon May 17 21:18:05 UTC 2010
>Last-Modified:  Mon May 17 21:18:05 UTC 2010
>Originator:     Rowan Crowe
>Release:        6.3-RELEASE i386
>Organization:
>Environment:
FreeBSD ******.sensation.net.au 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Aug 20 02:13:07 EST 2008     rowan@******.sensation.net.au:/usr/src/sys/i386/compile/VID62R  i386
>Description:
Hello,

I've recently had a few "events" where gconcat seems to have disowned the drives in a set. For example, I just inserted two drives, powered on, then at boot there's no mention of GCONCAT at all. It's in memory - via loader.conf - but it doesn't recognise the disks as belonging to a gconcat set.

I can restore access to the data if I manually recreate the array, but I'm very concerned that it seems to be deliberately disconnecting drives (and possibly updating their metadata?) for some reason.

# gconcat list
[there is no list output, ie no sets are recognised]
# gconcat create -v permdocs ad3 ad1
Done.
# geli attach /dev/concat/permdocs
Enter passphrase:
# mount -o rw,noatime /dev/concat/permdocs.eli /permdocs
#
.. and from this point everything seems to be fine. fsck_ufs also succeeds with no issues.

There is no output in /var/log/messages.

I have been using gconcat+geli for several months but it's only in the past 2-3 weeks that this has happened. I cannot reconcile this behaviour with any change in software or hardware so it may be coincidence.

I consider this a fairly serious problem because although the data does not appear to be lost this issue can impact on the running of a machine (automated mounts at boot will fail) and may also cause panic by the human trying to fix it!
>How-To-Repeat:
Unknown. I have set kern.geom.concat.debug > 0 to hopefully show some useful debug output next time it happens.
>Fix:
Unknown.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 22 00:43:45 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144943 

From: Alexander Motin <mav@FreeBSD.org>
To: bug-followup@FreeBSD.org, freebspr@sensation.net.au
Cc:  
Subject: Re: bin/144943: [geom] gconcat(8) randomly "loses" all knowledge
 of JBOD set
Date: Mon, 22 Mar 2010 08:09:24 +0200

 `gconcat create... ` creates array on-flight. It doesn't saves any
 meta-data to the components, so reboot will make system to forget
 everything. To make arrays restore after reboot you should use `gconcat
 label ...`.
 
 -- 
 Alexander Motin
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon May 17 21:17:23 UTC 2010 
State-Changed-Why:  
A use of a more appropriate command has been suggested. 

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