Jilles Tjoelker wrote:
> On Thu, Mar 05, 2009 at 10:27:50PM -0800, Peter Steele wrote:
>> I've created a USB boot disk that is used to clone itself onto the
>> systems hard drives, setting up mirrored file systems in the process.
>> The main difficulty I'm having is reimaging a system with an existing
>> OS whose drives are already configured in a mirror. I want of course
>> to destroy the mirror and create a complete new one, but I can't find
>> the right process to accomplish this reliably. I don't want to make
>> any assumptions about what mirrors might exist already and I
>> definitely don't want to do "gmirror load" before I get a chance to
>> destroy any existing mirrors. 
> 
>> What I am doing is to clean the drive using dd. For example, assume my
>> target system has two drives ad1 and ad2. I issue the following
>> commands: 
> 
>> dd if=/dev/zero of=/dev/ad1 bs=512 count=79 
>> dd if=/dev/zero of=/dev/ad2 bs=512 count=79 
> 
> gmirror and various other geom modules store their metadata on the last
> sector(s) of the drive, so you need to wipe that too.

Or simply use the "clean" command, for example "gmirror clean" (also
supported in other GEOM classes).

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to