-
Notifications
You must be signed in to change notification settings - Fork 152
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
BTRFS filesystem requires more than 30MB (KIWI default minimum) #1835
Comments
yeah we know btrfs is space hungry. The 30MB is a min size setting for a volume without a size setup. The setting is applied in addition to the data blocks of data which is found in the image root tree for this volume. These default setting works for any filesystem we have ... except btrfs. As it's also not possible to pre calculate the size of a btrfs filesystem to hold X bytes of real blocks, there is no clean way for All empiric methods I tried in the past failed for btrfs under certain circumstances From a coding perspective we can have a conversation to maintain different volume @staticmethod
def get_min_volume_mbytes():
"""
Provides default minimum volume size in mbytes
:return: mbsize value
:rtype: int
"""
return 30 This method is used in LVM and btrfs context I'm fine to have this more granular, but I very much doubt it will really fix the size issue for btrfs filesystems |
Yes indeed, this is the same answer I gave on the chat conversation and apparently it did not work out. That's when I decided to fill the issue, the work around that actually worked was to include some dummy file of 128MB inside the offending volume. The problem of the above setup is that it is a really niche case, using LVM on top of btrfs is not so common and even less common in KIWI. However the description is a valid one. I have to admit I did not test myself this setup, however we discussed it with some user in the chat long and deep enough to make me think something unexpected was happening on KIWI side. |
Why not just raise the minimum size? |
raise to what value to make btrfs happy ? This is non deterministic. I would rather go with David's suggestion and add an extra default size handling for btrfs in kiwi. That's what all the others did as well |
Sure, I guess. It makes sense to have that capability anyway. |
From the community meeting we agreed on:
|
Uhh did we ever do this? We still need to ensure Btrfs has a minimum size of 16MiB when using |
Problem description
If building an OEM expandable image including btrfs LVM volumes, the minimal size used for those volumes turns to be 30MB (KIWI default). However BTRFS refuses to format a filesystem that is less than 128MB.
This can be reproduced with something like:
Producing an error similar to:
Expected behaviour
Volumes creation does not fail.
OS and Software information
The text was updated successfully, but these errors were encountered: