Check If Migration Is Successful
If you initiated a live migration process and takes a lot of time to complete and seems to be frozen, you can check if the migration process is successful. To do that, you can track the progress in the statistics logs that include information about total time, expected downtime, and bandwidth being used.
To view the statistics, run the following commands:
virsh qemu-monitor-command --hmp wkwpxyqbggxgqh "info migrate" virsh domjobinfo wkwpxyqbggxgqh
Where:
wkwpxyqbggxgqh - virtual server identifier.
Log Output Example for CentOS 6:
[root@hv1-CentOs6 ~]# virsh domjobinfo wkwpxyqbggxgqh Job type: Unbounded Time elapsed: 53612 ms Data processed: 1.374 MiB Data remaining: 18.203 MiB Data total: 4.016 GiB Memory processed: 1.374 MiB Memory remaining: 18.203 MiB Memory total: 4.016 GiB
Log Output Example for CentOS 7:
[root@onapp-centos7 ~]# virsh domjobinfo wkwpxyqbggxgqh Job type: Unbounded Time elapsed: 1156 ms Data processed: 104.983 MiB Data remaining: 2.568 GiB Data total: 3.923 GiB Memory processed: 104.983 MiB Memory remaining: 2.568 GiB Memory total: 3.923 GiB Memory bandwidth: 191.744 MiB/s Dirty rate: 0 pages/s Iteration: 0 Constant pages: 328857 Normal pages: 26269 Normal data: 102.613 MiB Expected downtime: 30 ms Setup time: 32 ms