Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Aug 2004 13:49:35 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Sam Lawrance <boris@brooknet.com.au>
Cc:        current@FreeBSD.org
Subject:   Re: geom stripe/concat metadata suggestion
Message-ID:  <20040806114935.GD628@darkness.comp.waw.pl>
In-Reply-To: <1091792300.749.14.camel@dirk.no.domain>
References:  <1091792300.749.14.camel@dirk.no.domain>

next in thread | previous in thread | raw e-mail | index | archive | help

--a2FkP9tdjPU2nyhF
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 06, 2004 at 09:38:21PM +1000, Sam Lawrance wrote:
+> Would it be a good idea to store the device name, or something similar,
+> in the metadata?
+>=20
+> For example, if I have a disk divided like this:
+>=20
+>  |--------------ad0--------------|
+>  |-------------ad0s1-------------|
+>  |----ad0s1g-----|-----ad0s1d----|
+>=20
+> The metadata is written into the last sector, so when the stripe/concat
+> classes are tasting they can't work out whether it belongs to ad0s1d,
+> ad0s1 or ad0.
+>=20
+> I've had problems creating stripes and concats with this configuration.

Yes, this is a problem, but I'm not going to store provider's name in the
metadata, because now, you just copy disk with 'dd' and your stripe still
works.

As a workaround you shouldn't use last sector on ad0s1d. If you don't want
to change partition, you can use gnop(8) for this:

	# gstripe clear ad0s1d
	# gnop create -s `diskinfo ad0s1d | awk '{print $3 - 512}'` ad0s1d
	# gstripe label <name> <first_component> ad0s1d.nop

But in such case it will not be automatically discovered at boot time.

The best solution probably is to not use last disk sector...

Hmm, when such conflict is detected I should probably destroy whole device,
instead of configuring it from first component found.

--=20
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

--a2FkP9tdjPU2nyhF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBE3BPForvXbEpPzQRArvqAJsEjGwL9aAmWJMhyKB31IzYq0KTAgCg0DCf
9M7iPBW68J0wi5GpbLdCQTg=
=xpgH
-----END PGP SIGNATURE-----

--a2FkP9tdjPU2nyhF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040806114935.GD628>