raid0 can’t be stopped when unplug a member disk

Solution Verified - Updated -

Issue

  • The array still exists after removing one of the drive from existing RAID0
    • Here is the dmesg command output.
[  129.225349] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[  129.238536] md: md127: raid0 array has a missing/failed member
[  129.238633] Buffer I/O error on dev md127, logical block 0, async page read
[  129.268439] Buffer I/O error on dev md127, logical block 0, async page read
  • The /proc/mdstat output for raid0 still exist even one of the member is missing.
$ cat /proc/mdstat 
Personalities : [raid0] 
md127 : active (auto-read-only) raid0 sdc[1] sdb[0]      <<<----
      10475520 blocks super 1.2 512k chunks
unused devices: <none>

$ mdadm -D /dev/md127 
/dev/md127:
        Raid Level : raid0
             State : read-auto, FAILED 


    Number   Major   Minor   RaidDevice State
       0       8       16        0      active sync   missing      <<<--------
       1       8       32        1      active sync   /dev/sdc

Environment

  • Red Hat Enterprise Linux 8.7, 8.8
  • Red Hat Enterprise Linux 9.1, 9.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content