From: "Marc Patino Gómez" <mpatino@es.clara.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Backuping "special" snapshots
Date: Wed, 03 Oct 2007 13:23:06 +0200 [thread overview]
Message-ID: <47037B9A.3040209@es.clara.net> (raw)
In-Reply-To: <47035C3D.2010901@redhat.com>
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/
>
next prev parent reply other threads:[~2007-10-03 11:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-03 8:47 [linux-lvm] Backuping "special" snapshots Marc Patino Gómez
2007-10-03 9:09 ` Bryn M. Reeves
2007-10-03 9:20 ` Marc Patino Gómez
2007-10-03 11:23 ` Marc Patino Gómez [this message]
2007-10-03 11:25 ` Bryn M. Reeves
2007-10-03 11:56 ` Marc Patino Gómez
2007-10-03 15:16 ` Stuart D. Gathman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47037B9A.3040209@es.clara.net \
--to=mpatino@es.clara.net \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.