[DRBD-user] Two primaries with LVM2

Florian Haas florian.haas at linbit.com
Tue Aug 19 16:29:45 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


TOTWARE wrote:
> Hello everybody,
> 
> I've configured a DRBD  resourde (8.2.6 on ubuntu 8.04 lts)  as a
> Physical Volume for LVM2. DRBD is configured with "allow two
> primaries" starting the 2nd node as "secondary".  Everything works
> like a charm.
> 
> I want to make on-line, hot backups of running virtual machines (vmware).
> I wonder if I could do the following with any consistency weakness:
> 
> 1st) Do a LVM snapshot on 1st node of one of its LV (where the running VM live)
> 2nd) Promote the 2nd node to be PRIMARY
> 3rd) Activate LV snapshot on 2nd node with "lvchange"
> 4th) Mount the snapshot and perform off-site backups to tape or other disks.
> 5th) Set the things back to 1st node =primary and 2nd node=secondary.

Maybe I am wrong, but if I understand your intentions correctly, you are
totally off track. You don't want to do this. I strongly suggest that
you go back and review the differences between regular LVM and CLVM, and
also review what the DRBD User's Guide says about dual-Primary mode and
when it make sense to use it and when it doesn't.

Sorry.

Cheers,
Florian

-- 
: Florian G. Haas
: LINBIT Information Technologies GmbH
: Vivenotgasse 48, A-1120 Vienna, Austria

When replying, there is no need to CC my personal address. I monitor the
list on a daily basis. Thank you.

DRBD® and LINBIT® are registered trademarks of LINBIT.



More information about the drbd-user mailing list