Mirroring
Cheat sheet · https://pcornel.dk/topic.php?topic=3915
Answer
In a mirror set, writes must reach the required mirror copies according to the implementation's acknowledgement semantics, while reads may be serviced from one copy. Capacity efficiency falls as copy count rises, but recovery does not require parity reconstruction.
Remember
- Mirroring ≠ backup because all active copies can share corruption, deletion or administrative mistakes.
- Mirror copies ≠ independent application-consistent recovery points.
- RAID 1 redundancy applies within each mirror set, not automatically across arbitrary failed members in larger nested layouts.
- A mirror reported synchronized ≠ every block has been independently validated end to end.
First checks
mdadm --detail /dev/md0— mirror memberszpool status— mirror vdevsstorcli /c0/v0 show— RAID1 state
Verify in this order
write → both disks; read → either
Where it usually breaks
First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.
RAID → Mirroring RAID map
| RAID boundary | What to verify | Proof limit |
|---|---|---|
| Layout / topology | RAID level, member grouping, effective member size and stripe/mirror/parity structure | The label alone does not prove current member health or exact failure tolerance |
| Protection state | Array state, members, spares, cache protection and active rebuild/consistency work | Optimal/online state does not prove backup or application integrity |
| Failure boundary | A synchronized mirror proves the implementation considers required copies current; it does not prove historical recovery, independent backup or application-level integrity. | Failure tolerance must be evaluated against the exact layout and failure pattern |
| Acceptance | Healthy evidence: all mirror members are synchronized, no copy accumulates errors, reads/writes meet target and a failed member can be replaced and resynchronized predictably. | Close only after the original workload/data check succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3915