SUSE Support

Here When You Need Us

MD RAID Array Status not Properly Updated on Removal of Last Component Device SLE 12

This document (000021664) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 SP5


Situation

On SLE 12 SP5, md0 is running in a healthy status. 

# mdadm -D /dev/md0

             State : clean
...
    Number   Major   Minor   RaidDevice State
       0       8       32        0      active sync   /dev/sdc
       2       8       48        1      active sync   /dev/sdd

 

After all components of the array have failed, failure of the last MD RAID component is not reported correctly.  

# mdadm -D /dev/md0

             State : clean, degraded
...
    Number   Major   Minor   RaidDevice State
       -       0        0        0      removed
       2       8       48        1      active sync

 

The command report incorrect information:

  • RAID status is "degraded"
  • Disks status is "active sync"

instead of the expected information:

  • RAID status is "FAILED"
  • Disks status is "missing"

Resolution

SLE 12 SP5 will always have this restriction. Consider upgrading the system to newer SLE Version e.g. SLE 15 SP6. 

Cause

Due to a known limitation in the kernel used by SLE 12 SP5, the system won't reflect the correct array status when the final component is removed. 

Additional Information

On SLE 15 SP6, failure of the last MD RAID component is reported correctly. 

Array healthy.

# mdadm -D /dev/md0 

             State : clean
...
    Number   Major   Minor   RaidDevice State
       0       8       48        0      active sync   /dev/sdd
       1       8       64        1      active sync   /dev/sde

 

Array failed.

# mdadm -D /dev/md0

             State : clean, FAILED
...
    Number   Major   Minor   RaidDevice State
       -       0        0        0      removed
       1       8       64        1      active sync   missing

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021664
  • Creation Date: 10-Jan-2025
  • Modified Date:15-Jan-2025
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.