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: 69
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: