
In short
- Collect everything read-only first: mdstat, --examine for every member, kernel log.
- Compare event counts and update times to find the stale member.
- Write commands only on overlays or clones, and never --create on an array that holds data.
Step 1: collect, without writing
cat /proc/mdstat: what the kernel sees right now.mdadm --examine /dev/sdX1for every member partition, saved to a file.dmesgor the journal from the moment the array failed: which disk produced errors, and when.smartctl -afor each disk: reallocated, pending and uncorrectable sectors.- Disk serial numbers and the bay or port each one sits in.
Keep these files outside the array. They are what anybody, including a lab, will ask for first.
Step 2: protect the members
If a disk shows read errors or rising pending sectors, image it with GNU ddrescue before anything else, or have it imaged. If cloning everything is not possible, work on copy-on-write overlays: device-mapper snapshots that send every write to a separate file. Your real disks are then never modified, whatever you try.
Step 3: compare the members
In the --examine output, line the members up side by side:
| Field | What to look for |
|---|---|
| Array UUID | The same on every member of this array |
| Raid Level, Raid Devices | The expected level and number of members |
| Chunk Size, Layout | Identical everywhere: stripe size and parity rotation |
| Device Role | Each position present once |
| Events | Members within a few events of each other are in sync |
| Update Time | The date and time of the last write on that member |
| Array State | How each member last saw the others |
A member whose event count is far behind the others dropped out earlier and holds old data. Leave it out of the first assembly attempt.
Step 4: assemble read-only
Try mdadm --assemble --readonly with the members you selected. If mdadm refuses because the event counts differ slightly, --force accepts the newest members and rewrites the superblock of the one that lags. That is a write: do it on overlays, and only when the gap is small and you understand where it comes from.
Then mount read-only: mount -o ro for ext4, and -o ro,norecovery for XFS so the log is not replayed. Copy the data off before anything else.
Step 5: know the commands that destroy arrays
mdadm --create, even with--assume-clean, writes new superblocks. A different chunk size, member order, metadata version or data offset turns the array into noise, and the original superblocks are gone. Newer mdadm versions also choose a different default data offset than old ones.--zero-superblockon the wrong device.fsckorxfs_repairon an array assembled in the wrong order.
When to stop
Stop as soon as a disk makes noise, drops off the bus or its error counters keep rising, when two members have very different event counts and you cannot tell which is current, or when the file system will not mount read-only. From here, each attempt reduces what can be saved. See RAID data recovery and, for hardware controllers, Second disk error during a RAID 5 rebuild: what the next 48 hours should look like.
Frequently asked questions
Is mdadm --assemble --force safe?
Reasonably safe when the event counts differ by a few units and all disks are healthy, but it writes to the superblocks. If the data is important, never run it on the real disks.
What does a large gap in the Events field mean?
That member left the array long before the others. Its data is stale and it should normally stay out of the assembly.
Can a lab work from our overlays and logs?
The logs and the --examine output help a lot. The lab still needs the disks themselves to clone them.
Official sources and useful links
- Linux RAID wiki (kernel.org): Reference documentation for Linux software RAID (mdadm).
Is your data important?
Do not try anything that could make the fault worse. The diagnosis is free and you get a fixed quote before any work starts.





