Is it possible to edit the default values for newly created ZFS Subvols from the GUI?

reckless

Well-Known Member
Feb 5, 2019
79
4
48
For example: I create a new LXC container with a ZFS pool as backend, all through the GUI.

This creates a new ZFS file dataset for the LXC container. However, it might have created it with the wrong values for recordsize, compression, and atime.

If you change recordsize or compression values after creation, all the data that is already written (crucial OS data) will not be affected, as these settings really only affect newly written data.

Therefore, it would be highly desirable to edit ZFS Subvol values, such as recordsize, compression and others, BEFORE the ZFS subvol gets created, so that you can make sure the settings are perfect before the files are written.

Is this currently possible in Proxmox VE 6?
 
Last edited:
currently this is not directly possible via GUI/PVE-CLI tools.

What you can do is - create a dataset the way you want it (set recordsize, compression, ....) with a name fitting the pattern ( 'subvol-<vmid>-disk-<num>' for containers 'vm-<vmid>-disk-<num>' for qemu-vms). Create the Guest and then change the config to use your manually created dataset/zvol (you need to copy the contents over of course).

You can open an enhancement request in our bugzilla: https://bugzilla.proxmox.com - that way it will be considered for future implementation

I hope this helps!
 
or create a dataset with the desired properties, then configure it as ZFS storage, and all guest volumes allocated on that storage will inherit the properties ;)
 
or create a dataset with the desired properties, then configure it as ZFS storage, and all guest volumes allocated on that storage will inherit the properties ;)
This might the way to go for now, good idea.
 

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!