BTRFS Thin Provisioning?

SilvaNights

New Member
Jan 16, 2023
2
0
1
Hi,

Using Proxmox 7.3-4.
Is it possible to use VM thin provisioning on a BTRFS datastore?
I've found some articles saying it should be possible, and some guides on how to enable it on ZFS, but I can't see the option within the UI for BTRFS.

Many thanks.
 
Hi,
I think it's already thinly provisioned by default:
Code:
root@pve701 ~ # qemu-img info /mybtrfs/images/164/vm-164-disk-0/disk.raw
image: /mybtrfs/images/164/vm-164-disk-0/disk.raw
file format: raw
virtual size: 204 GiB (219043332096 bytes)
disk size: 2.55 GiB
Compare the virtual size (what the VM sees) and the disk size (what's currently allocated).
 
Hi,
I think it's already thinly provisioned by default:
Code:
root@pve701 ~ # qemu-img info /mybtrfs/images/164/vm-164-disk-0/disk.raw
image: /mybtrfs/images/164/vm-164-disk-0/disk.raw
file format: raw
virtual size: 204 GiB (219043332096 bytes)
disk size: 2.55 GiB
Compare the virtual size (what the VM sees) and the disk size (what's currently allocated).
Hi,

Doh! You are correct, thanks. :)