From nobody@FreeBSD.org  Mon Feb  1 21:43:49 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 AB944106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 Feb 2010 21:43:49 +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 8047D8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 Feb 2010 21:43:49 +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 o11LhnU1055924
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 1 Feb 2010 21:43:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o11Lhn4R055893;
	Mon, 1 Feb 2010 21:43:49 GMT
	(envelope-from nobody)
Message-Id: <201002012143.o11Lhn4R055893@www.freebsd.org>
Date: Mon, 1 Feb 2010 21:43:49 GMT
From: Patrick Mackinlay <patrick@spacesurfer.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gstripe in RELENG_8 (31st Jan 2010) broken
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         143455
>Category:       kern
>Synopsis:       gstripe(8) in RELENG_8 (31st Jan 2010) broken
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-geom
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 01 21:50:00 UTC 2010
>Closed-Date:    
>Last-Modified:  Tue Feb  2 10:20:03 UTC 2010
>Originator:     Patrick Mackinlay
>Release:        RELENG_8 (31st Jan 2010) amd64
>Organization:
>Environment:
FreeBSD patrick.uknet.spacesurfer.com 8.0-STABLE FreeBSD 8.0-STABLE #0: Mon Feb  1 00:58:56 UTC 2010     root@patrick.uknet.spacesurfer.com:/usr/obj/usr/src/sys/PATRICK  amd64

>Description:
My machine is setup so that I have a geli device running on a gstripe device made from 2 gmirror devices. My boot loader is set to load gmirror, gstripe and geli. On boot my rc.local calls a script to mount the encrypted partition. Please see below for details:

gmirror status
                Name    Status  Components
mirror/forstripe01s2  COMPLETE  ad0s2
                                ad1s2
mirror/forstripe23s2  COMPLETE  ad2s2
                                ad3s2

gstripe status
          Name  Status  Components
stripe/forgeli      UP  mirror/forstripe01s2
                        mirror/forstripe23s2

geli status
              Name  Status  Components
stripe/forgeli.eli     N/A  stripe/forgeli

cat /boot/loader.conf 
snd_hda_load="YES"
geom_mirror_load="YES"
geom_stripe_load="YES"
geom_eli_load="YES"
sem_load="YES"
kern.geom.stripe.fast=1
kern.geom.stripe.maxmem=2621440
kern.geom.eli.threads=2

cat /root/setup/cryptstart.sh 
#!/bin/sh
#gmirror load
#gstripe load
#geli load
#gmirror label forstripe01s2 ad0s2 ad1s2
#gmirror label forstripe23s2 ad2s2 ad3s2
gstripe create forgeli /dev/mirror/forstripe01s2 /dev/mirror/forstripe23s2
geli attach /dev/stripe/forgeli
fsck_ufs -C -y /dev/stripe/forgeli.eli
mount /dev/stripe/forgeli.eli /mnt/data

Recently (31st Jan 2010) I rebuilt my kernel and OS from the lastest RELENG_8 cvs tag code base. When I rebooted the geli attach command would fail (Could not read meta data). I eventually narrowed this down to a problem with gstripe by booting from a 8.0 release install. That install would still work even when I changed the kernel to the RELENG_8 kernel I had build previously, not that the newly built gmirror and geli commands also worked, using the newly build gstripe command was the problem.


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Feb 2 00:06:38 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: Patrick Mackinlay <patrick@spacesurfer.com>
To: bug-followup@FreeBSD.org, patrick@spacesurfer.com
Cc:  
Subject: Re: kern/143455: gstripe(8) in RELENG_8 (31st Jan 2010) broken
Date: Tue, 02 Feb 2010 08:03:09 +0000

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig5B8DD535B9C38E9141A5ECC9
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 I am guessing this is related to the commit:
 
 http://svn.freebsd.org/viewvc/base?view=3Drevision&revision=3D202425
 
 If so please add some notes to UPDATING detailing the changes and how
 they will affect an upgrade.
 
 regards,
 Patrick
 
 --=20
 Patrick Mackinlay                              patrick@spacesurfer.com
 http://patrick.spacesurfer.com/                    tel: +44.7050699851
 Yahoo messenger: patrick00_uk                      fax: +44.7050699852
 SpaceSurfer Limited                           http://www.spacereg.com/
 
 
 --------------enig5B8DD535B9C38E9141A5ECC9
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (FreeBSD)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iD8DBQFLZ9xED97IpyzY3RIRAtpTAKCBv7ZraePL0Uz/z/HymRBTffSNWwCdEawS
 hAJCHgdSvxFPlge/sr8lYAM=
 =wYcP
 -----END PGP SIGNATURE-----
 
 --------------enig5B8DD535B9C38E9141A5ECC9--

From: Ivan Voras <ivoras@fer.hr>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/143455: gstripe(8) in RELENG_8 (31st Jan 2010) broken
Date: Tue, 02 Feb 2010 11:08:11 +0100

 The OP in the PR is using "gstripe create" instead of "gstripe label"
 and now probably has mismatched stripe sizes. Manually specifying the
 old size (4096) should fix it.
>Unformatted:
