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

Support probing of linear RAIDs #1354

Merged
merged 3 commits into from Oct 11, 2023
Merged

Conversation

ancorgs
Copy link
Contributor

@ancorgs ancorgs commented Sep 13, 2023

Problem

libstorage-ng and YaST used to lack support for the RAID level "linear". That leaded to errors during probing in a system with such RAIDs. See bsc#1215022.

To fix the problem, support for a new MdLevel::LINEAR was added to libstorage-ng. But yast2-storage-ng needs the corresponding adaptations to the new MD level.

To be precise, we want YaST to stop failing in presence of such a RAID, but we don't want to add support to create new ones.

Solution

This targets SLE-15-SP4, only as a fix for the reported bug.

Adds the code needed to recognize the new level added to libstorage-ng, so probing works and the RAIDs are properly represented (eg. in the Expert Partitioner).

This also adds basic handling at AutoYaST. Basically preventing the <raid_level> to be cloned as "linear". If a linear RAID is detected in the system it will be exported with an unknown RAID level. That's a first step (the solution will be refined in subsequent versions) to clearly state that such a RAID level is not supported by (Auto)YaST.

Testing

Tested manually with a patched SLE-15-SP4

@ancorgs ancorgs marked this pull request as ready for review September 13, 2023 13:14
@ancorgs ancorgs merged commit 0a511b0 into yast:SLE-15-SP4 Oct 11, 2023
5 checks passed
@yast-bot
Copy link

✔️ Internal Jenkins job #13 successfully finished
✔️ Created IBS submit request #310156

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.

None yet

3 participants