gmirror Cannot add disk ad5 to gm0 (error=22)
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed Aug 2 22:11:47 UTC 2006
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
>
> Hmm, and is ad5 detected? (rhetorical question, because I see that it was)
>
> > Gmirror is not synchronized after reboot:
> >
> > Aug 1 09:14:50 track kernel: GEOM_MIRROR: Device gm0: provider ad5
> > detected.
> > Aug 1 09:14:50 track kernel: GEOM_MIRROR: Component ad5 (device gm0)
> > broken, skipping.
>
> 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
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20060802/ef7b8450/attachment.pgp
More information about the freebsd-geom
mailing list