[DRBD-user] Extracting Partition from DRBD Logical Volume

Aaron Clausen mightymartianca at gmail.com
Wed Mar 19 22:18:52 CET 2014

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


On Wed, Mar 19, 2014 at 1:26 PM, Simon Ironside <sironside at caffetine.org> wrote:
> On 19/03/14 19:59, Aaron Clausen wrote:
>
>> I would like the ability to grab an LVM image of a guest partition for
>> backup, but want to do so without the metadata (in case I need to
>> restore the guest on a stand-alone server without DRBD). Is there a
>> way via dd or some other tool to extract just the virtual drive and
>> not DRBD's metadata?
>
>
> My solution is not to worry about it. The DRBD metadata is at the end of the
> LV so its presence will do no harm at all should you wish to restore it to a
> server without DRBD and boot your VM directly off the LV.
>
> If it really bothers you, you could limit dd to copy only the size of the
> DRBD partition rather than the whole LVM LV. You can get the size of the
> DRBD partition in bytes using something like:
>
> blockdev --getsize64 <drbd_device>
>
> It will be a little bit smaller than the backing device.

Oh okay! I was under the impression the metadata was BEFORE the
partition. If it's after, then I don't really have anything to worry
about it at all. I can grab an LVM backup and happily fire it up.

Thanks very much!

-- 
Aaron Clausen
mightymartianca at gmail.com



More information about the drbd-user mailing list