Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 17:32:03 +0200
From:      Gergely CZUCZY <phoemix@harmless.hu>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: volume management
Message-ID:  <20070409153203.GA88082@harmless.hu>
In-Reply-To: <20070409152401.GG76673@garage.freebsd.pl>
References:  <20070408140215.GA54201@harmless.hu> <86k5wmu420.fsf@dwp.des.no> <20070408181916.GA59715@harmless.hu> <86bqhyu225.fsf@dwp.des.no> <461A4D93.3010200@freebsd.org> <20070409143818.GA86722@harmless.hu> <20070409152401.GG76673@garage.freebsd.pl>

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

--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Apr 09, 2007 at 05:24:01PM +0200, Pawel Jakub Dawidek wrote:
> On Mon, Apr 09, 2007 at 04:38:18PM +0200, Gergely CZUCZY wrote:
> > On Mon, Apr 09, 2007 at 09:28:35AM -0500, Eric Anderson wrote:
> > > On 04/08/07 13:57, Dag-Erling Sm??rgrav wrote:
> > > >Gergely CZUCZY <phoemix@harmless.hu> writes:
> > > >>yeap, i know about ZFS, as i assume, it will need around 1.5-2 years
> > > >>from now, when 7.0-RELEASE will be ready.
> > > >No, it's expected this fall.
> > > >>and i'm looking for a solution for a production environment within
> > > >>a year.
> > > >There is no other solution.
> > >=20
> > > How about gconcat?  You could create a mirror, then gconcat another m=
irror, etc, extending the GEOM.=20
> > >  Then run growfs on that extended volume.  Wouldn't that work?
> > why gmirror? gconcat somehow could be used for this,
> > but
> > 1) i see no attach operation for gconcat to add
> > providers on the fly.
> > 2) this would require to always create subpartitions/bsdlabels
> > on the disk, and add a bit more on need.
>=20
> Slow down:) Implementing off-line 'attach' operation is trivial and
> on-line 'attach' operation is also easy, but because you need to unmount
> file system anyway, off-line attach is ok.
>=20
> Let's assume you have currently two disks: da0 and da1.
>=20
> 	# gconcat label foo da0 da1
> 	# newfs /dev/concat/foo
> 	# mount /dev/concat/foo /foo
>=20
> and you want to extend your storage by adding two disks: da2 and da3:
>=20
> 	# umount /foo
> 	# gconcat stop foo
> 	# gconcat label foo da0 da1 da2 da3
> 	# growfs /dev/concat/foo
> 	# mount /dev/concat/foo /foo
>=20
> That's all.
>=20
> You can operate on mirrors too:
>=20
> 	# gmirror label foo0 da0 da1
> 	# gconcat label foo mirror/foo0
> 	# newfs /dev/concat/foo
> 	# mount /dev/concat/foo /foo
>=20
> And extending:
>=20
> 	# gmirror label foo1 da2 da3
> 	# umount /foo
> 	# gconcat stop foo
> 	# gconcat label foo mirror/foo0 mirror/foo1
> 	# growfs /dev/concat/foo
> 	# mount /dev/concat/foo /foo
yes, this was the trivial part, but:

1) to increment them, i need a device(disk/slice/label/etc).
if i increment a lot, i need a lot of devices.
2) these incrementum-devices (the ones i increment by),
have to be made, each of the has to be chopped from the
storage pool.

please also look at the bsdlabel issue i have mentioned.
gconcating is the most easy part of that. recursively
bsdlabeling is what i have mostly referred to as the
real issue. i really don't think this is the way to
do it...

if you are down to the bits: we are running our systems
on 3ware cards. the end of the disk (usually total-20G) is
the storage pool. under linux's LVM2 we use this as a pool
to allocate space for our services. At the startup only
a minimal part of the pool is used, and as a service needs
more space, we enlarge its available space, by little increments.
so, we are not adding new disks, or anything, as you have assumed
in your upper examples. we just give it a bit more space, nothing
special.

new disks are not being added, that's why i had said "storage pool",
to reflect this situation. it wasn't just a term for an abstraction
level :)

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



Bye,

Gergely Czuczy
mailto: gergely.czuczy@harmless.hu

--=20
Weenies test. Geniuses solve problems that arise.

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

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

owGtV79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wka7Xs9+Pfb/pm+OafhffVZDBomibFACyL
tCpgX32cv33XSvnO2Z3U2PlzbJ+y3zAARPuEqa0sUVAk/Xk/xyXdp5OlKo7oIavn
fbz5UYKfd1aylyTdN8LjOnu8SkoQxpsJzePrNAuvN78YkiSm4QMptYKy4eMBInEP
D2Cp43kZpcbQB9aVLk6gwion0+S3Ry9/Z4s/B9ffkq9e+9cPtz4r//Pp339z7S//
fPNvL300u/al+scffvXV1mePP3/w9b/to62/fvrrL75+v/z+V3dXH/0X
=hDYX
-----END PGP SIGNATURE-----

--OgqxwSJOaUobr8KG--



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