Open TestedandBested opened 6 months ago
Amusingly, I posted the PR fixing this before you opened the bug.
Amusingly, I posted the PR fixing this before you opened the bug. #15996
That's great news, thanks. What is the etiquette at this point, should I close this with a comment referencing #15996?
System information
Describe the problem you're observing
The default refreservation allocation exhibits an overflow for zvols larger than 64TB for volblocksize=16k (default):
This allows volumes to be created with insufficient available space in the zpool. I'm raising this on behalf of the person who investigated it (thanks to reddit.com/user/Dagger0)
Describe how to reproduce the problem
Create a zvol larger than 64TB with default volblocksize 16k. This was tested on a 12-wide RAIDZ3 zpool of 10TB disks, zpool created with ashift=12.
This example shows increments in the size of the zvol by 5TB each time with an extra examples around 64TB.
I get the correct 'out of space' error when there is insufficient space in the zpool until I create a volume larger than 64TB at which time the refreservation value overflows. All examples from 64.1TB onwards exhibit this behaviour.
Reddit user Dagger0 reported the following: