Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2005 11:41:48 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Paul Mather <paul@gromit.dlib.vt.edu>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: Is there a "disconnected" state for geom_mirror providers?
Message-ID:  <20050424094148.GZ837@darkness.comp.waw.pl>
In-Reply-To: <1114308801.71938.2.camel@zappa.Chelsea-Ct.Org>
References:  <1114308801.71938.2.camel@zappa.Chelsea-Ct.Org>

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

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

On Sat, Apr 23, 2005 at 10:13:21PM -0400, Paul Mather wrote:
+> The provider ad0 did not show up as a "stale" provider of my "raid1"
+> mirror (from which it had disappeared when it was detached due to the
+> "TIMEOUT - WRITE_DMA" failure).  I had to do a "gmirror forget raid1"
+> before a "gmirror insert raid1 ad0" would allow me to re-insert it so I
+> could perform a "gmirror rebuild raid1 ad0" to kick off synchronisation.
+>=20
+> What is the definition of a "broken" component?  What is the difference
+> between a "stale" and a "broken" component?

If gmirror gets an error for READ or WRITE operation, it assumes provider
is broken. This is very important - if it will be marked only as stale,
it will be connected, resynchronization will start, but because there
was an error on provider, it probably will be disconnected again and we
have endless loop.

Stale provider is when it is hot-plug and you remove it; when you use
'deactivate' command to disconnect it; when it doesn't show up on mirror
start, but later.

The rule is simple: when an error was returned on I/O operation, provider
is marked as broken.

+> If I were to detach and remove a hot-plug geom_mirror component and
+> subsequently re-attach it, will the component be considered "stale" or
+> "broken?"

Stale.

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

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

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

iD8DBQFCa2ncForvXbEpPzQRAi5GAKDgw2HiZ1Sh9tNAcRi/PIfR+nQA2wCePTB1
iFNpfEjw+tI3LwzvViJrEf0=
=FeO9
-----END PGP SIGNATURE-----

--IrYWVTOpV5r4MFme--



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