[KLUG Members] md
Phillip Hofmeister
plhofmei at antiochcomputerconsulting.com
Tue Dec 7 09:27:58 EST 2004
Here's how to do it:
You have drive A (currently has data)
Drive B - currently empty - you want to mirror data to it.
Here's how:
1. Create a new MD array with drive B as a member drive.
2. Configure the array with a second device, /dev/null. In the
configuration file mark this device as failed.
3. Start your MD Array up.
4. Copy the data to it using cp -a
5. Unmount the old partition (drive A) from the file system
6. Mount the MD device to the file system
7. edit the configuration file to show drive A as the mirror drive for
the array.
8. do a mdhotadd/hotremove to remove /dev/null and add Drive A.
9. Drive A will begin to sync with Drive B.
Let me know if I can help you more.
On Mon, 06 Dec 2004 at 03:43:39PM -0500, Bruce Smith wrote:
> Is it possible to add software mirroring to an existing partition,
> without creating a new/empty mirror and copying the unmirrored partition
> to it?
>
> I could swear that I saw Adam do that once at a KLUG meeting (add a
> new partition, create a new raidtab file, and let md mirror over the
> existing data from the unmirrored partition), but the md docs don't
> mention this at all.
>
> - BS
>
>
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
>
--
Phillip Hofmeister
More information about the Members
mailing list