Software RAID
Cheat sheet · https://pcornel.dk/topic.php?topic=3925
Answer
Software RAID maintains array metadata and performs stripe/mirror/parity operations in the host stack. It can provide portability and visibility into individual devices, but correct boot integration, device identification and metadata assembly are critical.
Remember
- Software RAID ≠ inherently slower than hardware RAID.
- OS sees members ≠ array is assembled correctly.
- Device path/name ≠ stable member identity.
- Software RAID ≠ filesystem-level redundancy unless the filesystem itself implements it.
First checks
cat /proc/mdstat— md arraysmdadm --detail --scan >> /etc/mdadm/mdadm.conf— persist configsystemctl status mdmonitor— monitoring/alerts
Commands
mdadm
Verify in this order
disks → md driver → /dev/mdX → filesystem
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 → Software RAID 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 software RAID device being present proves the host assembled a logical array; it does not prove every member is healthy, boot-time assembly is resilient or filesystem data is consistent. | Failure tolerance must be evaluated against the exact layout and failure pattern |
| Acceptance | Healthy evidence: expected members assemble by stable identity, metadata agrees, array is clean/optimal and host resources remain adequate during normal and rebuild workloads. | 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=3925