Bug 1225364

Summary: [Agama][Milestone8+] Storage needs to have better min sizes for file systems
Product: [openSUSE] openSUSE Tumbleweed Reporter: Lukas Ocilka <locilka>
Component: InstallationAssignee: YaST Team <yast-internal>
Status: CONFIRMED --- QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: aschnell
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://trello.com/c/hdW3xsUJ
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST logs

Description Lukas Ocilka 2024-05-27 14:29:36 UTC
Created attachment 875133 [details]
YaST logs

In bug #1220728 the minimal size of an XFS file system has been raised from 40 to 300 MB. Libstorage has been changed by https://github.com/openSUSE/libstorage-ng/pull/990

As it shows now, it's not just simple like that. Creating a 300 MiB partition with XFS is possible, but if that partition is encrypted, there is only 284 MiB left for the file system. And then mkfs.xfs still complains. And even if it was slightly bigger, it would not have enough space basically for anything.

These minimal sizes are not visible to the user or the Installer (?). I will report another bug for the Installer (Agama) to use mounted file systems for checking the free space - if the system actually fits, but it will need to report the real free space - i.e., size without metadata/log/...

I've used 500 MiB partitions. They run out of space pretty quickly. I'm afraid we might need have some better checks closer to the reality.
Comment 1 Stefan Hundhammer 2024-06-03 11:48:43 UTC
Since XFS reserves those 300 MiB for its journal already, a useful minimum size for it is probably 1 GiB or more; then some few MiB more for a LUKS layer would be negligible.
Comment 2 Stefan Hundhammer 2024-06-05 09:15:57 UTC
Moving to our Trello task queue.