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. :)
 

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!