[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Adding a mirror after-the-fact

On Tue, Aug 14, 2001 at 05:11:59PM -0400, Jason Tackaberry wrote:
> I know this isn't strictly an LVM question, but ...
> Suppose I have a volume group with 1 physical volume, say a 9GB disk.
> Now, after some time, I decide I want to mirror this VG with another 9GB
> disk.  What options do I have?  AFAICS, the only way to do this would be
> to start from scratch?  This is a pretty simple and presumably common
> thing to want to do, so I hope I'm wrong.  :)

Yes, you are (with 2.4 kernels) ;-)

You could either mirror the whole disk using MD *without* persistent superblocks


use MD and mirror all logical volumes.

The later needs an additional VG on the second disk with logical volumes of the
same size of those in the first VG you already have.

Say you have a volume group named "vg". Then you could create a volume group
"vg_mirror" on the other disk, create logical volumes named after the ones
you already have in "vg" and set up an /etc/raidtab file with mirrors for
all the logical volumes.

Pro of first approach is, that you don't need to worry about new logical volumes
which will be mirrored automatically because you mirror the whole underlying

With the second approach, you need to create a mirror logical volume, extend
your raidtab and activate mirrors for every new logical volume.

> Cheers,
> Jason.
> _______________________________________________
> linux-lvm mailing list
> linux-lvm sistina com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html


Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***


Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
Mauelshagen Sistina com                           +49 2626 141200
                                                       FAX 924446

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]