RE: mirroring


Subject: RE: mirroring
From: Leif Sawyer (lsawyer@gci.com)
Date: Mon Jan 20 2003 - 13:51:28 AKST


> On Fri, 2003-01-17 at 22:02, lee@afabco.com wrote:
> I have a single drive that has been in production a while,
> has production type stuff on it, and now I want to add a
> second (identical) drive and mirror it.
> [...]
> My question is how can I create a mirrored raid from a
> non-raid without having to cpio the whole 150G off
> somewhere, create the mirror (destroying everything)
> and then cpio'ing the 150G back?

create a new raid-device of 2 (unused) physical devices:
(note that my syntax is more conceptual than verbatim)

md0
        drive sdg
        failed-drive sde

format your new md0 drive and mount it. Copy all of
your existing data onto the new md0 array (of 1..)

change your fstab to mount md0 in place of your old drive
and reboot. (just to verify that everything will work
across reboots)

if this works, then you can change the 'failed-drive' paramater
to a regular drive:

md0
        drive sdg
        drive sde

and re-sync your raid array.

Yep, i'm sure that i've missed steps, but it's been awhile since
i've done exactly this for my 80g /usr partition at home..

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Mon Jan 20 2003 - 13:51:40 AKST