When I initiate a live migration process, it takes a lot of time to complete and seems to be frozen. How do I know if the migration process is successful?
Live migration on CentOS 6/7
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
virsh domjobinfo wkwpxyqbggxgqh
where wkwpxyqbggxgqh is the 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
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