From: Ian Campbell <Ian.Campbell@citrix.com>
To: Chun Yan Liu <cyliu@suse.com>
Cc: wei.liu2@citrix.com, Jim Fehlig <JFEHLIG@suse.com>,
ian.jackson@eu.citrix.com, xen-devel@lists.xen.org
Subject: Re: [RFC V9 2/4] domain snapshot overview
Date: Fri, 19 Dec 2014 10:25:20 +0000 [thread overview]
Message-ID: <1418984720.20028.15.camel@citrix.com> (raw)
In-Reply-To: <54942BF20200006600086A4B@soto.provo.novell.com>
On Thu, 2014-12-18 at 22:45 -0700, Chun Yan Liu wrote:
>
> >>> On 12/18/2014 at 11:10 PM, in message <1418915443.11882.86.camel@citrix.com>,
> Ian Campbell <Ian.Campbell@citrix.com> wrote:
> > On Tue, 2014-12-16 at 14:32 +0800, Chunyan Liu wrote:
> > > Changes to V8:
> > > * add an overview document, so that one can has a overall look
> > > about the whole domain snapshot work, limits, requirements,
> > > how to do, etc.
> > >
> > > =====================================================================
> > > Domain snapshot overview
> >
> > I don't see a similar section for disk snapshots, are you not
> > considering those here except as a part of a domain snapshot or is this
> > an oversight?
> >
> > There are three main use cases (that I know of at least) for
> > snapshotting like behaviour.
> >
> > One is as you've mentioned below for "backup", i.e. to preserve the VM
> > at a certain point in time in order to be able to roll back to it. Is
> > this the only usecase you are considering?
>
> Yes. I didn't take disk snapshot thing into the scope.
>
> >
> > A second use case is to support "gold image" type deployments, i.e.
> > where you create one baseline single disk image and then clone it
> > multiple times to deploy lots of guests. I think this is usually a "disk
> > snapshot" type thing, but maybe it can be implemented as restoring a
> > gold domain snapshot multiple times (e.g. for start of day performance
> > reasons).
>
> As we initially discussed about the thing, disk snapshot thing can be done
> be existing tools directly like qemu-img, vhd-util.
I was reading this section as a more generic overview of snapshotting,
without reference to where/how things might ultimately be implemented.
>From a design point of view it would be useful to cover the various use
cases, even if the solution is that the user implements them using CLI
tools by hand (xl) or the toolstack does it for them internally
(libvirt).
This way we can more clearly see the full picture, which allows us to
validate that we are making the right choices about what goes where.
> > The third case, (which is similar to the first), is taking a disk
> > snapshot in order to be able to run you usual backup software on the
> > snapshot (which is now unchanging, which is handy) and then deleting the
> > disk snapshot (this differs from the first case in which disk is active
> > after the snapshot, and due to the lack of the memory part).
>
> Sorry, I'm still not quite clear about what this user case wants to do.
The user has an active domain which they want to backup, but backup
software often does not cope well if the data is changing under its
feet.
So the userswants to take a snapshot of the domains disks while leaving
the domain running, so they can backup that static version of the disk
out of band from the VM itself (e.g. by attaching it to a separate
backup VM).
This may require a guest agent to quiesce the disks.
> >
> > > * ability to parse user config file
> > >
> > > [2] Disk snapshot requirements:
> > > - external tools: qemu-img, lvcreate, vhd-util, etc.
> > > - for basic goal, we support 'raw' and 'qcow2' backend types
> > > only. Then it requires:
> > > libxl qmp command or "qemu-img" (when qemu process does not
> > > exist)
> > >
> > >
> > > 3. Interaction with other operations:
> > >
> > > No.
> >
> > What about shutdown/dying as you noted above? What about migration or
> > regular save/restore?
>
> Since xl now has no idea of the existence of snapshot,
what about libvirt? This section is an overview, so making toolstack
specific assumptions is confusing.
> so when writing this
> document I turned to depends on users to delete snapshots before or after
> deleting a domain (like shutdown, destroy, save, migrate away). User should
> know where memory is saved, and disk snapshot related info.
What I meant was what happens if you try to snapshot a domain while it
is being shutdown or being migrated? There clearly has to be some sort
of interaction, even if it is "there is a global toolstack lock" or "the
user is advised not to do this".
Ian.
next prev parent reply other threads:[~2014-12-19 10:25 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-16 6:32 [RFC V9 0/4] domain snapshot document Chunyan Liu
2014-12-16 6:32 ` [RFC V9 1/4] domain snapshot terms Chunyan Liu
2014-12-18 15:05 ` Ian Campbell
2014-12-19 2:46 ` Chun Yan Liu
2014-12-16 6:32 ` [RFC V9 2/4] domain snapshot overview Chunyan Liu
2014-12-17 12:17 ` Wei Liu
2014-12-18 3:34 ` Chun Yan Liu
2014-12-18 10:57 ` Wei Liu
2014-12-18 15:10 ` Ian Campbell
2014-12-19 5:45 ` Chun Yan Liu
2014-12-19 10:25 ` Ian Campbell [this message]
2014-12-23 3:42 ` Chun Yan Liu
2015-01-08 12:26 ` Ian Campbell
2015-01-12 7:01 ` Chun Yan Liu
2015-01-12 13:54 ` Ian Campbell
2015-01-14 3:12 ` Chun Yan Liu
2014-12-16 6:32 ` [RFC V9 3/4] domain snapshot design: xl Chunyan Liu
2014-12-17 12:28 ` Wei Liu
2014-12-18 3:23 ` Chun Yan Liu
2014-12-18 11:02 ` Wei Liu
2014-12-18 15:15 ` Ian Campbell
2014-12-19 7:03 ` Chun Yan Liu
2014-12-19 10:27 ` Ian Campbell
2014-12-22 8:52 ` Chun Yan Liu
2015-01-08 11:59 ` Ian Campbell
2014-12-16 6:32 ` [RFC V9 4/4] domain snapshot design: libxl/libxlu Chunyan Liu
2014-12-17 14:09 ` Wei Liu
2014-12-18 3:01 ` Chun Yan Liu
2014-12-18 15:27 ` Ian Campbell
2014-12-19 6:58 ` Chun Yan Liu
2014-12-19 10:38 ` Ian Campbell
2014-12-22 9:36 ` Chun Yan Liu
2014-12-22 9:36 ` [Qemu-devel] " Chun Yan Liu
2015-01-08 12:11 ` Ian Campbell
2015-01-08 12:11 ` [Qemu-devel] " Ian Campbell
2015-01-09 9:59 ` Chun Yan Liu
2015-01-09 9:59 ` Chun Yan Liu
2014-12-22 9:53 ` Chun Yan Liu
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=1418984720.20028.15.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=JFEHLIG@suse.com \
--cc=cyliu@suse.com \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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.