mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
Make --postcopy flag mandatory with --postcopy-after-precopy
--postcopy-after-precopy is just an aditional flag for postcopy migration. Signed-off-by: Kothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
This commit is contained in:
parent
8540301b78
commit
04597a7038
@ -10318,10 +10318,10 @@ cmdMigrate(vshControl *ctl, const vshCmd *cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (vshCommandOptBool(cmd, "postcopy-after-precopy")) {
|
if (vshCommandOptBool(cmd, "postcopy-after-precopy")) {
|
||||||
if (!live_flag) {
|
if (!vshCommandOptBool(cmd, "postcopy")) {
|
||||||
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
||||||
_("post-copy migration is not supported with "
|
_("--postcopy-after-precopy can only be used with "
|
||||||
"non-live or paused migration"));
|
"--postcopy"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
iterEvent = virConnectDomainEventRegisterAny(
|
iterEvent = virConnectDomainEventRegisterAny(
|
||||||
|
@ -1617,8 +1617,8 @@ migration. I<--postcopy> enables post-copy logic in migration, but does not
|
|||||||
actually start post-copy, i.e., migration is started in pre-copy mode.
|
actually start post-copy, i.e., migration is started in pre-copy mode.
|
||||||
Once migration is running, the user may switch to post-copy using the
|
Once migration is running, the user may switch to post-copy using the
|
||||||
B<migrate-postcopy> command sent from another virsh instance or use
|
B<migrate-postcopy> command sent from another virsh instance or use
|
||||||
I<--postcopy-after-precopy> to let libvirt automatically switch to
|
I<--postcopy-after-precopy> along with I<--postcopy> to let libvirt
|
||||||
post-copy after the first pass of pre-copy is finished.
|
automatically switch to post-copy after the first pass of pre-copy is finished.
|
||||||
|
|
||||||
I<--auto-converge> forces convergence during live migration. The initial
|
I<--auto-converge> forces convergence during live migration. The initial
|
||||||
guest CPU throttling rate can be set with I<auto-converge-initial>. If the
|
guest CPU throttling rate can be set with I<auto-converge-initial>. If the
|
||||||
|
Loading…
Reference in New Issue
Block a user