-
Notifications
You must be signed in to change notification settings - Fork 150
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
May need to add a check for btrfs volume mbsize #2210
Comments
I temporarily add |
Interesting I believe this is a duplicate of #1835 yes with On the other hand, just out of curiosity, is there any reason to use |
Agree. This should be a dup of #1835. It there any updates to fix this issue? I see it was opened one year ago. In my case, this config is required to do so. |
I don't think so, unfortunately. But at a time it was an issue I reported after debugging a very weird (I'd even say wrong) xml description someone was struggling with. The issue on user side was solved by using different XML setup (switch lvm to subvolumes or different fs) or by adding some extra file to reach the minimum, I don't remember all details. All in all, the issue did not get much attraction as there wasn't any user asking for it (until now) and it looked like a tiny a corner case. Probably now it is the time to address it. I'll try to find some time these days to move it on again. |
Closing as duplicate of #1835, feel free to reopen if this is not an accurate duplicate |
Given filesystem="btrfs" with preferlvm="true" and "oem-resize" is true by default.
The creation of the subvolume /var is reporting the following error during the build process:
DEBUG: 08:43:49 | EXEC: [mkfs.btrfs /dev/vgSystem/LVVar]
DEBUG: 08:43:49 | EXEC: Failed with stderr: ERROR: '/dev/vgSystem/LVVar' is too small to make a usable filesystem
ERROR: minimum size for each btrfs device is 114294784
, stdout: btrfs-progs v5.16.2
The calculated mbsize for /var is 66M, which is small than the minimum size required by btrfs.
Maybe need to add a check to ensure the mbsize returned from get_volume_mbsize in base.py is large enough for "btrfs" filesystem.
The text was updated successfully, but these errors were encountered: