All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Chunyan Liu <cyliu@suse.com>
Cc: wei.liu2@citrix.com, jfehlig@suse.com, ian.jackson@eu.citrix.com,
	xen-devel@lists.xen.org
Subject: Re: [RFC V10 3/4] domain snapshot design: xl
Date: Thu, 29 Jan 2015 16:33:11 +0000	[thread overview]
Message-ID: <1422549191.5198.32.camel@citrix.com> (raw)
In-Reply-To: <1422242713-3744-4-git-send-email-cyliu@suse.com>

On Mon, 2015-01-26 at 11:25 +0800, Chunyan Liu wrote:

This is all looking good (including the previous two patches where I
didn't have any substantial comments).

>     User could specify snapshot information in details through @cfgfile, see
>     following cfgfile syntax. If configuration in @cfgfile conflicts with
>     other options, @cfgfile will supercede other options. (e.g. if --internal
>     conflicts with disk spec in cfgfile, use disk spec in @cfgfile.)

Usually I think one would expect the command line to take precedence
over a config file.

> 
> 
> xl snapshot-revert:
>   Revert domain to status of a snapshot.
> 
>   SYNOPSIS:
>       snapshot-revert <domain> <cfgfile> [--running] [--force]
> 
>   OPTIONS:
>     --running        after reverting, change state to running

We usually talk about paused in the xl interface, e.g. --paused with the
default being to run.

>     --force          try harder on risky reverts
> 
>     Normally, the domain will revert to the same state the domain was in while
>     the snapshot was taken (whether running, or paused).

So you need both --paused and --unpause to override both cases?

>     If option includes --running, then overrides the snapshot state to
>     guarantee a running domain after the revert.
> 
> 
> About domain snapshot delete:
>     xl doesn't have snapshot chain information, so it couldn't do the full work.
>     If supply:
>       xl snapshot-delete <domain> <cfgfile>
>     For internal disk snapshot, deleting disk snapshot doesn't need snapshot chain
>     info, this commands can finish the work. But for external disk snapshot,
>     deleting disk snapshot will need to merge backing file chain, then will need
>     the backing file chain information, this xl command can not finish that.
> 
>     So, deleting domain snapshots will be left to user:
> 
>     user could delete RAM snapshots and disk snapshots by themselves:
>     RAM snapshot file: user could remove it directly.
>     Disk snapshots:
>       - Internal disk snapshot, issue 'qemu-img snapshot -d'
>       - External disk snapshot,
> 
> 
> 2. cfgfile syntax
> 
> # snapshot name. If user doesn't provide a VM snapshot name, xl will generate
> # a name automatically by creation time or by @path basename.
> name=""
> 
> # save memory or disk-only.
> # If memory is '0', doesn't save memory, take disk-only domain snapshot.
> # If memory is '1', domain memory is saved.
> # Default if 1.
> memory=1
> 
> # memory location. This field is valid when memory=1.
> # If it is set to "", xl will generate a path by creation time or by @path
> # basename.
> memory_path=""
> 
> # disk snapshot specification
> # For easier parsing config work, reuse disk configuration in xl.cfg, but
> # with different meanings.
> # disk syntax meaning: 'external path, external format, target device'

Note that the actual xl syntax is more complex than this and what you
appear to be reusing is the legacy syntax. See
docs/misc/xl-disk-configuration.txt

  reply	other threads:[~2015-01-29 16:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26  3:25 [RFC V10 0/4] domain snapshot document Chunyan Liu
2015-01-26  3:25 ` [RFC V10 1/4] domain snapshot terms Chunyan Liu
2015-01-26  3:25 ` [RFC V10 2/4] domain snapshot overview Chunyan Liu
2015-01-26  3:25 ` [RFC V10 3/4] domain snapshot design: xl Chunyan Liu
2015-01-29 16:33   ` Ian Campbell [this message]
2015-01-30  7:51     ` Chun Yan Liu
2015-01-26  3:25 ` [RFC V10 4/4] domain snapshot design: libxl Chunyan Liu
2015-01-29 16:41   ` Ian Campbell
2015-01-30  6:18     ` Chun Yan Liu
2015-01-29 16:36 ` [RFC V10 0/4] domain snapshot document Ian Campbell
2015-01-30 13:38   ` Wei Liu
2015-01-30 14:01     ` Fabio Fantoni
2015-01-30 14:05       ` Wei Liu
2015-01-30 14:08         ` Wei Liu
2015-02-01 20:55   ` Dave Scott
2015-02-02 11:11     ` Ian Campbell

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=1422549191.5198.32.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=cyliu@suse.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jfehlig@suse.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.