clear metadata using dd?
gpalmer at freebsd.org
Tue Jan 9 00:25:01 UTC 2007
On Mon, Jan 08, 2007 at 07:45:06PM -0300, Fernan Aguero wrote:
> I'm trying to set up two disks to contain both gmirrored and gstriped
> This is what I'm trying to achieve:
> adxs1, swap
> adxs2, gmirror
> adxs3, gstripe
> I already got the first and second slices set up (swap and gmirror
> the active, root partition), but I cannot seem to be able to set up s3 into
> gstripped device.
> gama# gstripe label -v gs0 /dev/ad4s3 /dev/ad6s3
> Can't store metadata on /dev/ad4s3: Operation not permitted.
> This might be because ad4s3 had been part of a gmirror device before I
> reorganized my disks and moved the mirror to the s2 slice.
> Gayn Winters suggested that:
> "The geom metadata is stored in the last block of the slice. Zero it as
> well and you can have a clean start."
> But now I wonder what is the magic incantation to run dd for targeting the
> (sector?) of ad4s3?
Any reason that "gstripe clear" or "gmirror clear" doesn't work? Thats what
they're meant to do, as far as I know.
More information about the freebsd-geom