From owner-freebsd-geom@FreeBSD.ORG Wed Aug 2 22:11:47 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 5393216A4DA for ; Wed, 2 Aug 2006 22:11:47 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E90943D69 for ; Wed, 2 Aug 2006 22:11:39 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 415465138A; Thu, 3 Aug 2006 00:11:38 +0200 (CEST) Received: from localhost (dlk147.neoplus.adsl.tpnet.pl [83.24.40.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 57AB650EA7; Thu, 3 Aug 2006 00:11:31 +0200 (CEST) Date: Thu, 3 Aug 2006 00:10:54 +0200 From: Pawel Jakub Dawidek To: "Rick C. Petty" Message-ID: <20060802221054.GB36506@garage.freebsd.pl> References: <44D06650.1030803@quip.cz> <20060802183001.GA14279@megan.kiwi-computer.com> <44D10D1D.9040700@quip.cz> <20060802210709.GA15310@megan.kiwi-computer.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xXmbgvnjoT4axfJE" Content-Disposition: inline In-Reply-To: <20060802210709.GA15310@megan.kiwi-computer.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-geom@freebsd.org Subject: Re: gmirror Cannot add disk ad5 to gm0 (error=22) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 22:11:47 -0000 --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--