How to restore lost or wiped mdadm metadata on a disk?
Issue
The mdadm metadata/signature appears to be lost or has been wiped from one or more disks, and the RAID array is no longer automatically assembled.
# mdadm --examine /dev/sdg
mdadm: No md superblock detected on /dev/sdg.
# mdadm --examine /dev/sdf
mdadm: No md superblock detected on /dev/sdf.
Environment
- Red Hat Enterprise Linux 6, running mdadm version 3.2 or later
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 10
- Software RAID (mdadm)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.