Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jun 2005 09:42:52 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Michael Grant <mg-fbsd3@grant.org>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: gmirror question
Message-ID:  <20050629074252.GH78468@darkness.comp.waw.pl>
In-Reply-To: <20050628162021.GT57111@grant.org>
References:  <20050628162021.GT57111@grant.org>

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

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

On Tue, Jun 28, 2005 at 12:20:21PM -0400, Michael Grant wrote:
+> I have 2 boxes connected together with their scsi busses in a cluster.
+>=20
+> Each box needs to mirror different things.  It seems that when
+> 'gmirror load' is executed, it hunts around and mirrors everything
+> possible.  This, of course, is a disaster for me.
+>=20
+> Is there any way to tell gmirror when it starts which providers to
+> mirror? I don't want gmirror hunting around, I want to tell it exactly
+> which providers to start up.

There is no clean way to achieve this, sorry.
The hack I can recommend goes like this:

Gmirror read the last provider's sector looking for metadata, so if there
will be no metadata there, it will leave provider alone.
You can use gnop(8) to decrease providers size, so original providers will
not be recognized by gmirror class. Let's say you want to mirror da0 and=20
a1 on machine0 and da2 and da3 on machine1:

	machine0# gnop create -s <size_of_da0>-512 da0
	machine0# gnop create -s <size_of_da1>-512 da1
	machine0# gmirror label m0 da0.nop da1.nop

	machine1# gnop create -s <size_of_da2>-512 da2
	machine1# gnop create -s <size_of_da3>-512 da3
	machine1# gmirror label m1 da2.nop da3.nop

Now, da[0-3] providers are not recognized by gmirror class, all you need
to do is to create da[01].nop providers on start on machine0 and da[23].nop
on machine1.

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

--1EKig6ypoSyM7jaD
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFCwlD8ForvXbEpPzQRAltHAJ917GGNzQ/k/N0d43jhSrOcleR1aACg+QTS
SAK/OGV1oaDNu+7WAC+pqRc=
=4YH5
-----END PGP SIGNATURE-----

--1EKig6ypoSyM7jaD--



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