All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Javier Guerra <javier@guerrag.com>
Cc: Dietmar Maurer <dietmar@proxmox.com>, kvm@vger.kernel.org
Subject: Re: KVM backup and snapshots
Date: Thu, 7 Aug 2008 16:39:35 +0100	[thread overview]
Message-ID: <20080807153935.GP32548@redhat.com> (raw)
In-Reply-To: <90eb1dc70808070757q7c31793bjeb305c8fb662ca6e@mail.gmail.com>

On Thu, Aug 07, 2008 at 09:57:17AM -0500, Javier Guerra wrote:
> On Thu, Aug 7, 2008 at 9:51 AM, Dietmar Maurer <dietmar@proxmox.com> wrote:
> > I thought about using 1 lvm volume, but splitting that into slices
> > somehow, which can then be used as kvm disks - maybe by implementing a
> > very simple filesystem (block mapper). The problem with this approach is
> > that adding/deleting a new disk would mean to grow/shrink an lvm
> > partition, which is slow.
> 
> you could run LVM in the VM.  be careful about block scanning tools on
> Dom0, could mistake the LVM structure inside a LV for the 'outer' one.
>  (reiserfsck has this problem with image files)

This is an example of why you should use nested partition tables and not
export a whole block device to the guest - always partition the block
device on your host into at least one partition, and expose this as the
virtual disk to the guest.  The guest then partitions this and puts the
partition in as the physical volume. No dom0 tool will accidentally
see the guest LVM volumes  now.

In the few occassions when you do need to, you can access this nested
partition table in the dom0 using kpartx.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

      parent reply	other threads:[~2008-08-07 15:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-07 14:23 KVM backup and snapshots Dietmar Maurer
2008-08-07 14:33 ` Javier Guerra
2008-08-07 14:51   ` AW: " Dietmar Maurer
2008-08-07 14:57     ` Javier Guerra
2008-08-07 15:10       ` AW: " Dietmar Maurer
2008-08-07 15:15       ` Soren Hansen
2008-08-07 15:29       ` AW: " Dietmar Maurer
     [not found]         ` <90eb1dc70808070832h35f7691eref332452e029a0f3@mail.gmail.com>
2008-08-07 15:45           ` Dietmar Maurer
2008-08-07 16:04             ` Anthony Liguori
2008-08-07 16:02           ` Dietmar Maurer
2008-08-07 15:39       ` Daniel P. Berrange [this message]

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=20080807153935.GP32548@redhat.com \
    --to=berrange@redhat.com \
    --cc=dietmar@proxmox.com \
    --cc=javier@guerrag.com \
    --cc=kvm@vger.kernel.org \
    /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.