Skip to content
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

Enhance Pool size calculation re new raid levels #2525 #2534

Conversation

phillxnet
Copy link
Member

Move static elements of raid levels to our overall PROFILE var and do minor refactor of remaining size calculation code to clarify parameters involved. Improve flexibility re hard-wired chunk/stripe setting: here we sacrifice some speed for flexibility.

Fixes #2525

Testing:

A 4 X 5 GB array underwent a Resize/ReRaid, via the Web-UI, so that it was, in turn, one of:
raid1c3, raid1c4, single, raid0, raid1, raid10, raid5, & raid6.
All Pool size reports within the Web-UI, post integrated balance completion and Web-UI refresh, were consistent with identical geometries entered into:
https://carfax.org.uk/btrfs-usage/

Move static elements of raid levels to our overall PROFILE
var and do minor refactor of remaining size calculation
code to clarify parameters involved.
Improve flexibility re hard-wired chunk/stripe setting:
here we sacrifice some speed for flexibility.
@phillxnet
Copy link
Member Author

@FroggyFlox & @Hooverdan96 I'll go ahead and merge this as it looks pretty safe, plus it fixes an obvious Web-UI fail in our new raid levels. Plus we are still in testing (only just mind).

@phillxnet phillxnet merged commit 460bcc5 into rockstor:testing Apr 25, 2023
@phillxnet phillxnet deleted the 2525_Enhance_Pool_size_calculation_re_new_raid_levels branch April 25, 2023 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant