[DRBD-user] Move LVM back DRBD to different volume group?

Robert Dunkley Robert at saq.co.uk
Mon Nov 15 10:47:33 CET 2010

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


Hi,


Has anyone done this? 

I was planning as follows:
drbdadm detach resource
lvm
lvcreate newlv (Same size on different volume group)
dd if=/oldLV of=/newLV
change path in drbd.conf
drbdadm attach resource
lvremove oldLV

There are a couple of things I'm unsure of:
Will the method above copy the DRBD meta data and will DRBD know to
resynch?
How can I ensure the LVM volume is the exact same size? (Or is it best
to just create the new LV 1 MB bigger)


Thanks,


Rob



More information about the drbd-user mailing list