Migrate ZFS to LVM-Thin

delrey

Member
Sep 9, 2019
3
0
21
54
I have a three node cluster with ZFS running on each node and aside from disk space and utilization everything runs great, migrations work, backup to NFS, snapshots, the one thing that has me in a jam is disk space, so I decided to migrate all VMS from one node consolidating to two and using the one remaining I blew away ZFS and created lvm-thin. Migrating a VM back completes no problem but Disk images fully provision disk space allocated. LVS command recognizes the images but when I show image size at the cli it's 100% even in the GUI, when I use the same lvm-thin storage for a new image I'm now seeing the benefits of LVM-Thin with maybe 20% image size compared to what was provisioned building the image from scratch. Reading the documentation I understand why though I'm sure someone has run into this and perhaps has come up with a solution...

Perhaps there is a conversion utility or process to only write that blocks only containing data? my thought is perhaps I can create two partitions one as lvm and another lvm-thin and use lvm to stage an image file and use lvconvert then migrate again...? Any help would be appreciated

Chris
 
Do you have `discard` enabled on the disks? If so, did you run a TRIM inside the guest after the migration?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!