All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: Javier Guerra <javier@guerrag.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: making snapshots with raw devices? and some general snapshot thoughts
Date: Wed, 25 Feb 2009 15:31:02 +0100	[thread overview]
Message-ID: <49A55626.3020009@wpkg.org> (raw)
In-Reply-To: <90eb1dc70902250610l68ea11a4y6aab86ac4611dc25@mail.gmail.com>

Javier Guerra schrieb:
> On Wed, Feb 25, 2009 at 8:20 AM, Tomasz Chmielewski <mangoo@wpkg.org> wrote:
>> Is it possible to make snapshots when using raw devices (i.e. disk,
>> partition, LVM volume) as guest's disk image?
>>
>> According to documentation[1] (and some tests I made) it is only possible
>> with qcow2 images. Which makes it very inflexible:
>>
>> - one is forced to use a potentially slower file access
>> - one can't use the benefits of i.e. iSCSI disk access, SAN etc.
> 
> what about using 'good' block devices, and add one small, mostly empty
> qcow2? could it be used to store the snapshot for all?  of course it
> would degrade performance while it's active, but should revert after
> 'commiting' it to the 'real' block device(s)

It doesn't work for me - I get:

qm> savevm 1
Error while creating snapshot on 'virtio0'

Where "virtio0" is my "real" block device. I guess it still wants to 
write a snapshot there, as outlined in the documentation:

    "The VM state info is stored in the first qcow2 non removable and
     writable block device. The disk image snapshots are stored in every
     disk image."

Or, am I making a mistake here?

Besides:
- guest will see this second device - not needed
- still, we save the state of disks, but we don't need it for tasks like 
"pausing guest, upgrading kernel on host, rebooting host, resuming guest"


-- 
Tomasz Chmielewski
http://wpkg.org


  reply	other threads:[~2009-02-25 14:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-25 13:20 making snapshots with raw devices? and some general snapshot thoughts Tomasz Chmielewski
2009-02-25 14:10 ` Javier Guerra
2009-02-25 14:31   ` Tomasz Chmielewski [this message]
2009-02-25 14:33     ` Javier Guerra
2009-02-25 15:44 ` Anthony Liguori
2009-02-25 16:11   ` Tomasz Chmielewski

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=49A55626.3020009@wpkg.org \
    --to=mangoo@wpkg.org \
    --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.