Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2006 03:29:01 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        "Gustavo A. Baratto" <gbaratto@superb.net>
Cc:        geom@freebsd.org
Subject:   Re: gmirror + ggate
Message-ID:  <20060202022901.GB7770@garage.freebsd.pl>
In-Reply-To: <43E137A9.9060701@superb.net>
References:  <013c01c622cb$43256ef0$6450fb40@guinness> <43D97268.2030700@fer.hr> <01a601c622eb$f5d62970$6450fb40@guinness> <20060127085517.GA789@garage.freebsd.pl> <43E137A9.9060701@superb.net>

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

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

On Wed, Feb 01, 2006 at 02:35:21PM -0800, Gustavo A. Baratto wrote:
+> Hey all...
+>=20
+> ggate doesnt seem to have a start script like other geom classes.
+>=20
+> What's the best way to mount a gmirrored ggated device at start up?
+>=20
+> Before gmirror was running in this server, I just created a simple scrip=
t in /usr/local/etc/rc.d to mount the ggate devices:
+> ---------
+> #!/bin/sh
+>=20
+> /sbin/ggatec create -R 262144 -S 262144 -o rw 10.10.10.3 /dev/da0s1g
+> /sbin/ggatec create -R 262144 -S 262144 -o rw 10.10.10.4 /dev/da0s1g
+>=20
+> /sbin/mount /dev/ggate0 /mount_point_0
+> /sbin/mount /dev/ggate1 /mount_point_1
+> ---------
+>=20
+> Now... If at boot time I want to startup these two ggate devices gmirror=
ed, what's the best approach?
+>=20
+> I was thinking I could add 'geom_mirror_load=3D"YES"' in loader.conf, th=
en then run 'gmirror configure -h gm0'

So just has to create ggate provider (with ggatec), gmirror(8) will
handle the rest automatically.

+> Is that the recommended approach? If yes, do I still need to run the scr=
ipt above to plumb the ggate devices, or -h does that for us?

You don't need -h and you don't need to use gmirror in your script at
all.

There is currently no rc.d/ scripts for ggate, but you can check out
freebsd-geom@ archives, I think someone post such scripts some time ago,
but I haven't had time to look into it yet.

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

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

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

iD8DBQFD4W5tForvXbEpPzQRAgc6AKDOq+jn1dEl7gFlVoZivpt0rHdjXACdH7Fv
/ksfe0xK+6fJ8DlJ7zNvx2M=
=C22M
-----END PGP SIGNATURE-----

--PmA2V3Z32TCmWXqI--



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