Date: Sat, 5 Nov 2005 14:57:07 -0800 From: "Gayn Winters" <gayn.winters@bristolsystems.com> To: "'Dave'" <dmehler26@woh.rr.com>, <freebsd-questions@freebsd.org> Subject: RE: gmirror clearing configuration Message-ID: <012001c5e25c$42a7d0d0$c901a8c0@workdog> In-Reply-To: <000301c5e197$c7d3b960$0900a8c0@satellite>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Dave > Sent: Friday, November 04, 2005 3:31 PM > To: freebsd-questions@freebsd.org > Subject: gmirror clearing configuration > > > Hello, > I'm trying to set up raid1 on fbsd 5.4-RELEASE no patches > yet installed > just a vanilla release box. I've messed up somewhere, the > primary drive is > smaller than the secondary drive and i'm using Ralf's second > procedure. My > problem is i can't clear the metadata from either the first > or second drive > so i can start again, i load gmirror then issue a gmirror > clear and it says > it can't clear the metadata. Any help appreciated. > Thanks. > Dave. > I'm sure others have more gmirror experience than I do, but maybe this will help... The metadata is stored in the last sector of the logical disk. Zap both physical disks with dd if=/dev/zero of=... skip=n-1 count=1 bs=512b where n is the number of sectors. After you do this you'll of course need to rebuild the mirror. Backup and be careful!!! You can also do this with the gmirror utilities by removing one drive from the mirror, then undoing the mirror and the remaining drive (which zeroes the last sector) and then rebuilding. When I tried this once, I had a little trouble with the fact that the removed drive still had the metadata on its last sector. I think I had to zap its last sector prior to adding it back into the mirror. -gayn Bristol Systems Inc. 714/532-6776 www.bristolsystems.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?012001c5e25c$42a7d0d0$c901a8c0>