Linux LVM users
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <breeves@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Backuping "special" snapshots
Date: Wed, 03 Oct 2007 10:09:17 +0100	[thread overview]
Message-ID: <47035C3D.2010901@redhat.com> (raw)
In-Reply-To: <4703572F.8020604@es.clara.net>

-----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-----

  reply	other threads:[~2007-10-03  9:11 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 [this message]
2007-10-03  9:20   ` Marc Patino Gómez
2007-10-03 11:23   ` Marc Patino Gómez
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=47035C3D.2010901@redhat.com \
    --to=breeves@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox