[DRBD-user] dd backup of Xen DomU on a DRBD device

Digimer linux at alteeve.com
Tue May 10 17:37:35 CEST 2011

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


On 05/10/2011 11:35 AM, Bart Coninckx wrote:
> Hi,
> 
> I plan to use a dual primary setup for Xen DomUs. The DRBD devices are
> created on top of LVM LVs.
> Before, I used to do this on top of iSCSI devices and for backup I just
> dd-ed the snapshotted LVM device after the DomU was saved (and thus
> temporarely down).
> 
> 
> When I would follow this strategy with this LVM-DRBD dual primary setup,
> I will have more than likely the DRBD metadata in the dd dump
> (complicating restores).
> 
> Is there anything I can do do have a "clean" backup of the Xen DomU when
> it is saved and when the LV underneath the DRBD device is snapshotted?
> 
> thx!

If you use CLVM (clustered LVM), then snapshotting won't work from the
dom0 level. I deal with this by temporarily attaching a small LV to the
domU and using it as the snapshot partition within the domU itself, and
then rsync (or dd) out the data to the backup server.

-- 
Digimer
E-Mail: digimer at alteeve.com
AN!Whitepapers: http://alteeve.com
Node Assassin:  http://nodeassassin.org
"I feel confined, only free to expand myself within boundaries."



More information about the drbd-user mailing list