New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pool usage misreported #1454
Comments
Ok, after some investigation it turns out we have two issues:
Luckily an algorithm is available that should work in all of these cases. The author posted it to the btrfs mailing list a while ago and also has a javascript implementation on his btrfs space allocator website. I've translated it to Python and will soon test it on some virtual disk arrays. |
sfranzen
added a commit
to sfranzen/rockstor-core
that referenced
this issue
Oct 5, 2016
Partial fix of rockstor#1454. This algorithm should give an accurate report of the maximum available space in a storage pool, regardless of raid configuration and disk sizes. It will replace the current figure reported by btrfs.pool_usage.
sfranzen
added a commit
to sfranzen/rockstor-core
that referenced
this issue
Oct 5, 2016
Fixes the other part of rockstor#1454. New behaviour is to return only the used space value, but this now also includes space reserved by btrfs and unavailable for data.
sfranzen
added a commit
to sfranzen/rockstor-core
that referenced
this issue
Oct 9, 2016
Partial fix of rockstor#1454. This algorithm should give an accurate report of the maximum available space in a storage pool, regardless of raid configuration and disk sizes. It will replace the current figure reported by btrfs.pool_usage.
sfranzen
added a commit
to sfranzen/rockstor-core
that referenced
this issue
Oct 9, 2016
Fixes the other part of rockstor#1454. New behaviour is to return only the used space value, but this now also includes space reserved by btrfs and unavailable for data.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While testing the coloured progress bars for the dashboard, I filled one pool ("pool1") entirely with data:
The result is that, although the pool cannot store more data, it doesn't look alarmingly full (a red colour is triggered above 90%):
It happens because the pool reports the size of its file contents, while some space is also reserved by btrfs:
This example is a bit contrived with my tiny virtual disks, but nonetheless I would like the dashboard to show accurately when a pool is nearly full and therefore in need of management, so I'll go have a look at the pool code.
Perhaps in the future it would also be nice to display the btrfs data/metadata in more detail, on the individual pool views.
The text was updated successfully, but these errors were encountered: