Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2005 19:22:54 +0100
From:      Stewart Morgan <stewart@nameless-uk.com>
To:        freebsd-questions@freebsd.org
Subject:   gmirror over ggate
Message-ID:  <430B697E.8040703@nameless-uk.com>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hello,
	I'm running 5.4-RELEASE with geom_{mirror,gate}.ko and the various
geom, gmirror and ggate[cd] userland libs/tools built from a fairly
recent CVSup (8/Aug).

	Having successfully setup gmirror to link a local and remote device
together, I wanted to test what happens when the remote machine "dies",
so I've simulated that by killing the ggated process.  As expected
ggatec notices, as does gmirror and the array is marked degraded.

	I then set about a recovery procedure: I restart ggated on the "dead"
machine then destroy and re-create the ggatec unit -- so that gmirror
picks it up the change, which it does.  However it then barfs with
"Component ggate0 (device test) broken, skipping" and I get the
following with kern.geom.*.debug*=1 :-

- ----8<--------8<--------8<--------8<--------8<--------8<----
g_post_event_x(0xc0534400, 0xc3e98480, 2, -1067996144)
g_mirror_taste(MIRROR, ggate0)
GEOM_MIRROR[2]: Tasting ggate0.
g_detach(0xc4008600)
g_destroy_consumer(0xc4008600)
g_destroy_geom(0xc4095600(mirror:taste))
~     magic: GEOM::MIRROR
~   version: 3
~      name: test
~       mid: 2465257116
~       did: 1740936384
~       all: 2
~     genid: 0
~    syncid: 1
~  priority: 0
~     slice: 4096
~   balance: prefer
~ mediasize: 16688867328
sectorsize: 512
syncoffset: 0
~    mflags: NONE
~    dflags: NONE
hcprovider: ggate0
~  provsize: 16688867840
~  MD5 hash: f4b64bb297186874c4ad915cba692390
GEOM_MIRROR[1]: Adding disk ggate0 to test.
GEOM_MIRROR[2]: Adding disk ggate0.
GEOM_MIRROR[0]: Component ggate0 (device test) broken, skipping.
GEOM_MIRROR[0]: Cannot add disk ggate0 to test (error=22).
- ---->8-------->8-------->8-------->8-------->8-------->8----


	Am I doing something wrong, or is this a bug?


Stewart,

- - -
Stewart Morgan MEng MIEE
Technical Director, Nameless-UK

Phone : +44 870 757 1625    | Address: The Production House
Fax   : +44 870 168 0210    |          147a Saint Michael's Hill
PGP ID: 0xECD5CE64          |          Bristol, BS2 8DB, UK
- - --------------------------x-------------------------------------
PGP Fingerprint: 89DE F8C3 CA14 598C 30DB 504A 3055 DDD7 ECD5 CE64

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDC2l+MFXd1+zVzmQRAhWwAKD+DZZI81RfZcgRoEekuaz6rqchTACg9iJ5
Y03jss/Fxp9Un0UTsY4axrA=
=jHfT
-----END PGP SIGNATURE-----



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