Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2005 01:59:10 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        "M. Royce" <mroyce@gmail.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: gmirror forget question - why forget gm0 instead of ad4?
Message-ID:  <20051204004358.GD3698@garage.freebsd.pl>
In-Reply-To: <6.2.5.6.2.20051203155803.05950eb0@baac.net>
References:  <6.2.5.6.2.20051203155803.05950eb0@baac.net>

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

--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--



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