Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2006 09:55:17 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        "Gustavo A. Baratto" <gbaratto@superb.net>
Cc:        geom@freebsd.org, Ivan Voras <ivoras@fer.hr>
Subject:   Re: gmirror + ggate
Message-ID:  <20060127085517.GA789@garage.freebsd.pl>
In-Reply-To: <01a601c622eb$f5d62970$6450fb40@guinness>
References:  <013c01c622cb$43256ef0$6450fb40@guinness> <43D97268.2030700@fer.hr> <01a601c622eb$f5d62970$6450fb40@guinness>

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

[-- Attachment #1 --]
On Thu, Jan 26, 2006 at 06:47:06PM -0800, Gustavo A. Baratto wrote:
+> Thanks for the links Ivan...
+> 
+> They answered some of my questions, but mostly they don't really describe what I wanna do, because they mostly refer to more than one client mounting a gmirrored+ggated 
+> device.  I want just one server to mount a gmirrored device, exported from two different boxes through ggated.
+> 
+> Being more specific:
+> 
+> - Servers X and Y will be file server. They will have big sized identical partitions (for example /dev/da0s1f), that will be exported through ggated, and of course not 
+> mounted on servers X and Y.
+> 
+> - 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
+> 
+> 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
from ggate and just disconnect provider on error != EIO (without marking
it as broken).

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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFD2d/1ForvXbEpPzQRAn0tAKCBDcwqS9VdjSHdz7CJsp5jnmnx2wCdFRJo
jY9qhbtzV0PEg0/P01WR2GI=
=7VuA
-----END PGP SIGNATURE-----

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