...
If the block live migration for some reason didn't work and you have a "corrupted VM"
Code Block |
---|
[root@controller-01 ~]# nova stop dad2d364-3432-454d-a72d- |
...
910067e0187d [root@controller-01 ~]# |
Code Block |
---|
## Activate snapshot root@compute-02 ~]# lvchange -ay -K lvmvg/lvmnova.dad2d364-3432-454d-a72d-910067e0187d ## Mount snapshot [root@compute-02 ~]# mkdir /mnt/snap [root@compute-02 ~]# mount /dev/lvmvg/lvmnova.dad2d364-3432-454d-a72d-910067e0187d /mnt/snap -o ro,nouuid,norecovery [root@compute-02 ~]# ll /mnt/snap/dad2d364-3432-454d-a72d-910067e0187d/ console.log disk disk.info ## Copy disk image to target hypervisor [root@compute-02 ~]# scp /mnt/snap/dad2d364-3432-454d-a72d-910067e0187d/disk compute-04.cloud.pd.infn.it:/var/lib/nova/instances/dad2d364-3432-454d-a72d-910067e0187d The authenticity of host 'compute-04.cloud.pd.infn.it (192.168.60.89)' can't be established. ED25519 key fingerprint is SHA256:Fqq7jDeH98KxJ3J9QCFnBaWdiESy7gZ9+toHWU8i1jA. This host key is known by the following other names/addresses: ~/.ssh/known_hosts:1: compute-04 Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'compute-04.cloud.pd.infn.it' (ED25519) to the list of known hosts. root@compute-04.cloud.pd.infn.it's password: disk [root@compute-02 ~]# umount /mnt/snap [root@compute-02 ~]# ## Deactivate snapshot [root@compute-02 ~]# lvchange -an -K lvmvg/lvmnova.dad2d364-3432-454d-a72d-910067e0187d [root@compute-02 ~]# lvscan ACTIVE '/dev/lvmvg/pool00' [<167.88 GiB] inherit ACTIVE '/dev/lvmvg/lvmnova' [<167.88 GiB] inherit inactive '/dev/lvmvg/lvmnova.dad2d364-3432-454d-a72d-910067e0187d' [<167.88 GiB] inherit [root@compute-02 ~]# |
...