Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2006 00:10:54 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        "Rick C. Petty" <rick-freebsd@kiwi-computer.com>
Cc:        Miroslav Lachman <000.fbsd@quip.cz>, freebsd-geom@freebsd.org
Subject:   Re: gmirror Cannot add disk ad5 to gm0 (error=22)
Message-ID:  <20060802221054.GB36506@garage.freebsd.pl>
In-Reply-To: <20060802210709.GA15310@megan.kiwi-computer.com>
References:  <44D06650.1030803@quip.cz> <20060802183001.GA14279@megan.kiwi-computer.com> <44D10D1D.9040700@quip.cz> <20060802210709.GA15310@megan.kiwi-computer.com>

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

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

On Wed, Aug 02, 2006 at 04:07:09PM -0500, Rick C. Petty wrote:
> On Wed, Aug 02, 2006 at 10:37:49PM +0200, Miroslav Lachman wrote:
> > # gmirror status
> >       Name    Status  Components
> > mirror/gm0  DEGRADED  ad4
>=20
> Hmm, and is ad5 detected?  (rhetorical question, because I see that it wa=
s)
>=20
> > Gmirror is not synchronized after reboot:
> >=20
> > Aug  1 09:14:50 track kernel: GEOM_MIRROR: Device gm0: provider ad5=20
> > detected.
> > Aug  1 09:14:50 track kernel: GEOM_MIRROR: Component ad5 (device gm0)=
=20
> > broken, skipping.
>=20
> Looks like the disk was marked with bad metadata.

In case on an EIO error from the component, gmirror will mark it as
broken (actually will bump genid on the rest of components).
Such component won't be able to connect again, because gmirror belives
it is broken and keeping it in his configuration is a bad idea.

If you don't want components to be disconnected in case of an error, you
need to set sysctl kern.geom.mirror.disconnect_on_failure to 0.

If you are sure the disk is ok and it was bad cable or something like
this, you may connect it again:

	# gmirror forget gm0
	# gmirror insert gm0 ad5

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

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

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

iD8DBQFE0SLuForvXbEpPzQRAvw2AKDlSzf43P4ajXiUdM+qZufP0ywlNwCgo9Wm
nkgM9AOrv8RFH6NGxmLchmo=
=pEyM
-----END PGP SIGNATURE-----

--xXmbgvnjoT4axfJE--



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