From owner-freebsd-geom@FreeBSD.ORG Thu Feb 2 02:29:17 2006 Return-Path: X-Original-To: geom@freebsd.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C07416A420 for ; Thu, 2 Feb 2006 02:29:17 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90F0543D45 for ; Thu, 2 Feb 2006 02:29:16 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id C2FC650A7F; Thu, 2 Feb 2006 03:29:14 +0100 (CET) Received: from localhost (dlu224.neoplus.adsl.tpnet.pl [83.24.50.224]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 0F86A50A3E; Thu, 2 Feb 2006 03:29:08 +0100 (CET) Date: Thu, 2 Feb 2006 03:29:01 +0100 From: Pawel Jakub Dawidek To: "Gustavo A. Baratto" Message-ID: <20060202022901.GB7770@garage.freebsd.pl> References: <013c01c622cb$43256ef0$6450fb40@guinness> <43D97268.2030700@fer.hr> <01a601c622eb$f5d62970$6450fb40@guinness> <20060127085517.GA789@garage.freebsd.pl> <43E137A9.9060701@superb.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline In-Reply-To: <43E137A9.9060701@superb.net> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: geom@freebsd.org Subject: Re: gmirror + ggate X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2006 02:29:17 -0000 --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--