Hello
A strange (but possible normal) behavior when moving VMs or changing storage when using local LVM thin storage (online move, with vm running):
- when moving a VM from a host to another (in particular, with multiple disks)
qm migrate #ID #destination -migration_type insecure -online -with-local-disks 1
1. lvm-thin volume is created on destination
2. lvm-thin destination volume becomes 'thick' (usage rises to 100%)
3. ALL volume data (as in 100%, even unused data) is copied
4. lvm-thin source volume(s) are deleted, destination volume(s) remains at 100%
5. after issuing of fstrim -av (or fstrim -v / and another partitions), the used space on destination host is like original (maybe even better if fstrim was not used for longtime at source)
6. for swap partition/disks, it must be mounted with special arguments (and also get 'trimmed' after that)
- same on moving storage from LVM-thin to NFS storage, but fstrim works only when nfs is mounted as version 4.2 (below it does not support trim)
is this a normal behavior ? For me it's quite unusual to copy let's say 100GB partition when only 5, or 20 GB are used.
Am I missing some parameters in qm command ?
Thank you!
A strange (but possible normal) behavior when moving VMs or changing storage when using local LVM thin storage (online move, with vm running):
- when moving a VM from a host to another (in particular, with multiple disks)
qm migrate #ID #destination -migration_type insecure -online -with-local-disks 1
1. lvm-thin volume is created on destination
2. lvm-thin destination volume becomes 'thick' (usage rises to 100%)
3. ALL volume data (as in 100%, even unused data) is copied
4. lvm-thin source volume(s) are deleted, destination volume(s) remains at 100%
5. after issuing of fstrim -av (or fstrim -v / and another partitions), the used space on destination host is like original (maybe even better if fstrim was not used for longtime at source)
6. for swap partition/disks, it must be mounted with special arguments (and also get 'trimmed' after that)
- same on moving storage from LVM-thin to NFS storage, but fstrim works only when nfs is mounted as version 4.2 (below it does not support trim)
is this a normal behavior ? For me it's quite unusual to copy let's say 100GB partition when only 5, or 20 GB are used.
Am I missing some parameters in qm command ?
Thank you!