Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jan 2007 22:43:39 -0300
From:      "Fernan Aguero" <fernan.aguero@gmail.com>
To:        "R. B. Riddick" <arne_woerner@yahoo.com>
Cc:        geom@freebsd.org
Subject:   Re: clear metadata using dd?
Message-ID:  <520894aa0701081743y49420d19u543e46edf7d61e79@mail.gmail.com>
In-Reply-To: <20070108231751.78304.qmail@web30310.mail.mud.yahoo.com>
References:  <520894aa0701081445i43d76098m418ce695d2133e53@mail.gmail.com> <20070108231751.78304.qmail@web30310.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/8/07, R. B. Riddick <arne_woerner@yahoo.com> wrote:
> --- Fernan Aguero <fernan.aguero@gmail.com> wrote:
> > I imagine I have to use something like
> > dd if=/dev/zero of=/dev/ad4s3? bs=512 count=1
> >
> > but adding either skip=? or seek=? to taste.
> >
> > gama# fdisk -s /dev/ad4
> > /dev/ad4: 310101 cyl 16 hd 63 sec
> > Part        Start        Size Type Flags
> >    1:          63    16771041 0xa5 0x00
> >    2:    16771923   146795229 0xa5 0x80
> >    3:   146795292   188742708 0xa5 0x00
> >
> What about "dd if=/dev/zero of=/dev/ad4s3 oseek=188742707"?

gama# dd if=/dev/zero of=/dev/ad4s3 oseek=188742707
dd: /dev/ad4s3: Operation not permitted
gama# whoami
root

> What does "gmirror status" say?

gama# gmirror status
      Name    Status  Components
mirror/gm0  COMPLETE  ad4s2
                                     ad6s2


As I said, I had (past time) a mirror on ad4s3/ad6s3, but I decided to
resize s2 and s3,
so I removed ad6s3 from the mirror, reformatted ad6 (dd bs=512
count=79 only) and
moved all data in ad4s3 to it, but this time I put the active 'a'
partition in the s2 slice.

After doing this I rebooted mounting the root fs from ad6s2a and then
I removed ad4s3 from
the mirror and did the same reformatting with ad4.

> I would remove the gmirror-s with "gmirror remove <device> <disk/slice>" (its
> easier than dd)...

IIRC this is what I did.

-- 
Fernan Aguero



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