[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Backuping "special" snapshots



Hi again,

I try kpartx and it's so cool, but I can't make snapshots of /dev/vg00/lv00p1 ... so I can't solve the problem of making backup without stopping the Virtual Machine.

Any advice?

Regards,

Marc


Bryn M. Reeves wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marc Patino Gómez wrote:
Hi  list,

I am searching a way to backup a "special" logical volume. This special
lv doesn't contains a filesystem, it contains a hole image disk of a
running server (MBR,Partition Table, Partitions and filesystems), in
fact it is a VBD (Virtual Block Device) of a HVM Xen Guest.

I want to be able to make the backup without shutting down the Virtual
Machine, but the traditional way :

- make a snapshot
- mount snapshot
- backup the snapshots
- umount snapshot
- remove snapshot

is not suitable for this kind of logical volumes.

I search some information about it, but the only clue is:

fdisk -l -u /dev/vg00/lv00

Hi Marc,

You can use the kpartx tool for this. It was originally written as part
of multipath-tools and it allows you to map the partitions on a
device-mapper device like an LVM2 logical volume.

E.g. you would run:

# kpartx -a /dev/vg00/lv00

And that will scan lv00 for partitions and create new devices in
/dev/mapper named lv00p1, lv00p2, ... that you can then use to access
the content of the partitions.

When you're done, run:

# kpartx -d /dev/vg00/lv00

To remove the temporary kpartx maps.

Regards,
Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHA1w96YSQoMYUY94RAhW3AKC9n8+5tzN/FW38+qIUj0a82vvAMQCg0qYb
bAWnKGAuyZnMoZZz089I2qg=
=+xgZ
-----END PGP SIGNATURE-----

_______________________________________________
linux-lvm mailing list
linux-lvm redhat com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]