I want to create a backup of a LVM volume (Xen DomU's), however a LVM volume can have multiple partitions and those are dynamic (I cannot guarantee LVM #1 has 1 partition and LVM #2 has 3 etcetera).
kpartx to mount a LVM volume, however it will create multiple mappings (1 for each partition + 1 swap) and I want to use
rdiff-backup to backup the volume. But as I don't know how many partitions a volume has I cannot rely on this.
Now my question is: is there any way to let kpartx map all partitions but within the same "file"? For examply only
/dev/mapper/lvm1 instead of
/dev/mapper/lvm5 (1 to 3 are partitions and 5 is swap).
I need this to use
rdiff-backup to backup and restore a complete LVM volume