virsh命令行managedsave命令详解

managedsave
Syntax:
managedsave domain [--bypass-cache] [{--running | --paused}] [--verbose]
Save and destroy (stop) a running domain, (这个命令,一定会关闭虚机,因此openstack冷迁移的关机动作,是由于调用了这个命令的接口造成的)

so it can be restarted from the same state at a later time. 

When the virsh start command is next run for the domain, it will automatically be started from this saved state.
If --bypass-cache is specified, the save will avoid the file system cache, although this may slow down the operation.
The progress may be monitored using domjobinfo virsh command and canceled with domjobabort command (sent by another virsh instance).

这个进程,可以使用domjobinfo 命令来进行监视,或者使用domjobabort命令来取消
Another option is to send SIGINT (usually with Ctrl-C) to the virsh process running managedsave command. --verbose displays the progress of save.
Normally, starting a managed save will decide between running or paused based on the state the domain was in when the save was done;
passing either the --running or --paused flag will allow overriding which state the start should use.
The dominfo command can be used to query whether a domain currently has any managed save image.

原文地址:https://www.cnblogs.com/potato-chip/p/14202918.html