ZFS and thin provisioning

Jecode

New Member
Oct 30, 2024
3
0
1
Hi,

I've tried to search answer how to properly configure my VM disk, so it doesn't hog the whole allocated space at once.

I have setup ZFS storage on my Proxmox as RAID10, by size of 4TB.

I created a VM for my Ubuntu install, and when I select my ZFS storage for storage, only available option for "Format", is "Raw disk image". I believe this causes the VM to allocate whole 1024GB on initialization, despite of actual space used is ~15GB.

What I might be doing wrong with my ZFS setup, so it forces the disk format to "Raw", which I believe causes VM to allocate all the space on init?
 

Attachments

  • chrome_dU6VtPGjRI.png
    chrome_dU6VtPGjRI.png
    55.5 KB · Views: 9
hi,
check datacenter/storage/sas-storage zfs properties
Ah! Damn that was well hidden! I tried to look storage properties from my proxmox instance "Disks"-section, since that's where I went and created the storage. I would think that it would be smart to have that "Thin provision"-option available directly where you are able to create the storage.

I wonder if there's option to "trim" the existing disk that VM has provisioned, or do I have to recreate the VM with new disk?
 
Last edited:

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!