I have all VMs and CTs on a single LVM-thin volume, in a dedicated VG consiting of one partiton occupying entire single disk.
I'd like to migrate the VM/CT volumes it contains to a new disk. I am not sure what the best way to do this is. I considered disk cloning but the target drive's available space is less than the source, since I want to over-provision the new drive.
AIUI I do this:
Use the web UI to create the new lvm thin volume and assign it to a pve store. Then, use web UI migrate tool to copy the disk images over. Then decomission the old drive. Proxmox adjusts the vm configs or perhaps I do so myself.
I read this post that indicates images are not sparse copied. What should I do with those disk images where I am unable or unsure to run discard/fstrim? e.g. a pfsense guest's root disk.
Also, it would be interesting to know how to perform a migration 'manually' using lvm commands and potentially retain sparse images without the need to run trim commands in guests or the pve trim command against CT root disk volumes.
Any advice or explanation much appreciated.
Many thanks.
I'd like to migrate the VM/CT volumes it contains to a new disk. I am not sure what the best way to do this is. I considered disk cloning but the target drive's available space is less than the source, since I want to over-provision the new drive.
AIUI I do this:
Use the web UI to create the new lvm thin volume and assign it to a pve store. Then, use web UI migrate tool to copy the disk images over. Then decomission the old drive. Proxmox adjusts the vm configs or perhaps I do so myself.
I read this post that indicates images are not sparse copied. What should I do with those disk images where I am unable or unsure to run discard/fstrim? e.g. a pfsense guest's root disk.
Also, it would be interesting to know how to perform a migration 'manually' using lvm commands and potentially retain sparse images without the need to run trim commands in guests or the pve trim command against CT root disk volumes.
Any advice or explanation much appreciated.
Many thanks.