From owner-freebsd-geom@FreeBSD.ORG Fri Jan 27 08:55:56 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 2EC1016A420 for ; Fri, 27 Jan 2006 08:55:56 +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 AABAB43D45 for ; Fri, 27 Jan 2006 08:55:51 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 0DF4751181; Fri, 27 Jan 2006 09:55:49 +0100 (CET) Received: from localhost (ana50.internetdsl.tpnet.pl [83.17.82.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 95F8D50A7F; Fri, 27 Jan 2006 09:55:41 +0100 (CET) Date: Fri, 27 Jan 2006 09:55:17 +0100 From: Pawel Jakub Dawidek To: "Gustavo A. Baratto" Message-ID: <20060127085517.GA789@garage.freebsd.pl> References: <013c01c622cb$43256ef0$6450fb40@guinness> <43D97268.2030700@fer.hr> <01a601c622eb$f5d62970$6450fb40@guinness> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <01a601c622eb$f5d62970$6450fb40@guinness> 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=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: geom@freebsd.org, Ivan Voras 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: Fri, 27 Jan 2006 08:55:56 -0000 --liOOAslEiF7prFVr Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 26, 2006 at 06:47:06PM -0800, Gustavo A. Baratto wrote: +> Thanks for the links Ivan... +>=20 +> They answered some of my questions, but mostly they don't really describ= e what I wanna do, because they mostly refer to more than one client mounti= ng a gmirrored+ggated=20 +> device. I want just one server to mount a gmirrored device, exported fr= om two different boxes through ggated. +>=20 +> Being more specific: +>=20 +> - Servers X and Y will be file server. They will have big sized identica= l partitions (for example /dev/da0s1f), that will be exported through ggate= d, and of course not=20 +> mounted on servers X and Y. +>=20 +> - Server A will ggatec the remote /dev/da0s1f devices from both servers = X and Y (/dev/ggate0 and /dev/ggate1). +> Then, server A will create the mirror with the devices ggate0 and ggate1: +> # gmirror label -v -b round-robin data ggate0 +> # gmirror insert data ggate1 +> # mount /dev/mirror/data /mnt +>=20 +> Just server A will mount /dev/mirror/data RW (or even RO). There will be a problem when you lost connection to one of the servers - ggate will return EIO (or ENXIO) on every I/O request, so gmirror will mark this component as broken and will remove it from the mirror so it won't be automatically reconnected when the connection come back. I was wondering how to handle this better. I think we can return ENXIO =66rom ggate and just disconnect provider on error !=3D EIO (without marking it as broken). --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --liOOAslEiF7prFVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD2d/1ForvXbEpPzQRAn0tAKCBDcwqS9VdjSHdz7CJsp5jnmnx2wCdFRJo jY9qhbtzV0PEg0/P01WR2GI= =7VuA -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--