...
Let's suppose that we want to migrate a VM with id dad2d364-3432-454d-a72d-910067e0187d from compute-02 to compute-04
It's a good practice to check if there is sufficient space in the LVM before taking snapshots and, anyway, "fstrim" the LVM-thin that mange /var/lib/nova/instances before taking snapshots (see Data% and Meta% columns):
Code Block | ||
---|---|---|
| ||
[root@compute-02 instances]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvmnova lvmvg Vwi-aotz-- <1.82t pool00 99.48
pool00 lvmvg twi-aotz-- <1.82t 99.48 24.80
[root@compute-02 instances]# fstrim /var/lib/nova/instances/
[root@compute-02 instances]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvmnova lvmvg Vwi-aotz-- <1.82t pool00 0.16
pool00 lvmvg twi-aotz-- <1.82t 0.16 11.04
|
First of all on the source hypervisor let's take a LV snapshot:
...