Ability to set ZFS volsize of zvol

Darkhunter

New Member
Aug 21, 2015
19
0
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
 
Ah, you mean blocksize, not volsize. You can change it directly on the disk. If there are no files, nothing is wasted.
 

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!