From owner-freebsd-geom@FreeBSD.ORG Sun Dec 4 01:00:07 2005 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 6D36E16A41F for ; Sun, 4 Dec 2005 01:00:07 +0000 (GMT) (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 B19C143D86 for ; Sun, 4 Dec 2005 01:00:01 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id EF49E52C3F; Sun, 4 Dec 2005 01:59:59 +0100 (CET) Received: from localhost (djx92.neoplus.adsl.tpnet.pl [83.24.1.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A22D352C7F; Sun, 4 Dec 2005 01:59:53 +0100 (CET) Date: Sun, 4 Dec 2005 01:59:10 +0100 From: Pawel Jakub Dawidek To: "M. Royce" Message-ID: <20051204004358.GD3698@garage.freebsd.pl> References: <6.2.5.6.2.20051203155803.05950eb0@baac.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gMR3gsNFwZpnI/Ts" Content-Disposition: inline In-Reply-To: <6.2.5.6.2.20051203155803.05950eb0@baac.net> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (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: freebsd-geom@freebsd.org Subject: Re: gmirror forget question - why forget gm0 instead of ad4? 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: Sun, 04 Dec 2005 01:00:07 -0000 --gMR3gsNFwZpnI/Ts Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 03, 2005 at 04:00:40PM -0800, M. Royce wrote: +> I want to be sure I understand how to replace a drive if it fails now th= at I have gmirror working. I don't understand the forget command. +>=20 +> I saw this in comments section of Ralf's web page about gmirror: +>=20 +> -------- +> If a drive fails (eg. drive /dev/ad4): +>=20 +> # gmirror forget gm0 +> # shutdown -h +>=20 +> replace the drive with a fresh one +>=20 +> # gmirror insert gm0 /dev/ad4 +>=20 +> And it should start synchronizing if autosynchronization is turned on. +> -------- +>=20 +> Why do you forget gm0? I would think if ad4 failed I'd "forget /dev/ad4". +>=20 +> would really appreciate a brief explanation. If a drive fails or is not detected, gmirror doesn't know if it was ad4, da0, da0s1a or anything else, because it discovers components based on their metadata, not names. By doing 'gmirror forget' you say: "forget about missing components". Without forgetting missing components you can't run specific actions, which need to be notes in metadata of all components. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --gMR3gsNFwZpnI/Ts Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDkj9eForvXbEpPzQRAj9uAKDoJ8LQejvM1zi3H8YS3WrEFaXyrgCcC0Go S48qlqWtusGqng8641DRcMU= =JqrT -----END PGP SIGNATURE----- --gMR3gsNFwZpnI/Ts--