Ability to set ZFS volsize of zvol

Darkhunter

New Member
Aug 21, 2015
19
1
1
Hi,
I currently have issue with changing volsize.
Now when I want to create disk it has default volsize, which is really not good for RAIDZ zpools(it wastes like 50% of space).
I would really like to have ability to set it when creating disk.
Now I have to create it and then delete it from shell and recreate it.
I can make a PR for it, but I am not js expert... :D
 
Sorry, I do not get what you're trying to say. Could you please elaborate what you mean by recreate the disk and how do you recreate it (please provide command).
 
Sure. I created disk in proxmox. Then I did zfs destroy $disk; zfs create -o volsize=128K $disk;
 
Hi,

You can change default volsize (8K)

Add "blocksize 4k" in our def storage zfs (/etc/pve/storage.cfg file)
or
pvesm set $OURZFSSTORE -blocksize 4k