Suggest to improve the disk migration method!

zisain

New Member
Aug 5, 2021
25
3
3
33
It is recommended that when migrating disks, migrate the snapshots together, otherwise you will be prompted that the source disk cannot be deleted. (You can add a select button to choose whether to migrate with the snapshot), now I can only modify the virtual machine configuration by command after the migration is completed, and then delete the old source disk. This workload is huge and can only be achieved through the terminal .
 
Hi,

depending on the storage technology used snapshots are hard to migrate, especially for cross-storage migrations (i.e., source is LVM target is ZFS).

What is used in your case?
 
Hi,

depending on the storage technology used snapshots are hard to migrate, especially for cross-storage migrations (i.e., source is LVM target is ZFS).

What is used in your case?
According to my test, it is actually very simple. It can be achieved by adding 10 lines of code. Copy the snapshot file while copying the disk. When the copy is completed, you only need to modify the vm configuration file, and then refresh it. NFS, ceph and local disk