Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2008 20:55:27 -0500
From:      Jason Morgan <jwm-freebsd-questions@sentinelchicken.net>
To:        Jeff Pflueger <jeff@wildernessfringe.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: gmirror challenge
Message-ID:  <20080122015527.GB74899@sentinelchicken.net>
In-Reply-To: <47954872.3050200@wildernessfringe.com>
References:  <47952D9C.8040703@wildernessfringe.com> <20080122010533.GA74899@sentinelchicken.net> <47954872.3050200@wildernessfringe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 21, 2008 at 05:35:46PM -0800, Jeff Pflueger wrote:
> 
> > Hey Jeff,
> >
> > Try:
> >
> > gmirror forget ad6s1
> >
> > >From gmirror(8):
> >
> > remove      Remove the given component(s) from the mirror and clear meta-
> >             data on it.
> >
> > and futher on:
> >
> > One disk failed.  Replace it with a brand new one:
> >
> >            gmirror forget data
> >            gmirror insert data da1
> >
> >
> > I had a drive do something similar --- the system wouldn't crash, but
> > a drive just refused to be rebuilt. I used `forget' and it worked like
> > a charm.
> >
> > ~Jason
> >   
> Thanks for that!
> turns out that if I rebuild a mirror once booted from cd via:
> gmirror label -v -b load gm0s1 /dev/ad4s1
> mount /dev/mirror/gm0s1 /mnt
> 
> then I disconnected ad6 and booted from ad4. Once booted, the disk was
> very busy for a long time and now it seems to be working fine.
> 
> However, ad6...
> when I have booted from CD I can't gmirror clean ad6 without getting the
> message about
> 
> "Can't clear metadata on ad6s1: Invalid argument. Not fully done."
> 
> I suspect that something is either mechanically wrong (less likely) or somehow corrupted on ad6...
> 
> How can I wipe ad6 so that I can now try to insert it into the new mirror?

To completely wipe the drive? Try:

# dd if=/dev/zero of=/dev/ad6 bs=512

That will zero out the *whole* drive, nothing will be left. You will
also need to make sure you do

# gmirror forget ad6

first; otherwise, I think gmirror will expect to find metadata on the
drive. Read the man page carefully to make sure you are taking the
steps in the right order.

Good luck,
~Jason



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