From owner-freebsd-geom@FreeBSD.ORG Sun Apr 24 09:41:50 2005 Return-Path: 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 5595A16A4CE for ; Sun, 24 Apr 2005 09:41:50 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id B082143D5C for ; Sun, 24 Apr 2005 09:41:49 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 2F0C0ACAEE; Sun, 24 Apr 2005 11:41:48 +0200 (CEST) Date: Sun, 24 Apr 2005 11:41:48 +0200 From: Pawel Jakub Dawidek To: Paul Mather Message-ID: <20050424094148.GZ837@darkness.comp.waw.pl> References: <1114308801.71938.2.camel@zappa.Chelsea-Ct.Org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IrYWVTOpV5r4MFme" Content-Disposition: inline In-Reply-To: <1114308801.71938.2.camel@zappa.Chelsea-Ct.Org> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: Is there a "disconnected" state for geom_mirror providers? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 09:41:50 -0000 --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--