yast / yast-storage-ng

Rewrite of https://github.com/yast/yast-storage
http://yast.github.io/
GNU General Public License v2.0
13 stars 19 forks source link

Support probing of linear RAIDs #1354

Closed ancorgs closed 9 months ago

ancorgs commented 10 months ago

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

yast-bot commented 9 months ago

:heavy_check_mark: Internal Jenkins job #13 successfully finished :heavy_check_mark: Created IBS submit request #310156