Pcornel
Storage · RAID

Software RAID

Cheat sheet · https://pcornel.dk/topic.php?topic=3925

Back to the Topic

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 arrays
  • mdadm --detail --scan >> /etc/mdadm/mdadm.conf — persist config
  • systemctl 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 boundaryWhat to verifyProof limit
Layout / topologyRAID level, member grouping, effective member size and stripe/mirror/parity structureThe label alone does not prove current member health or exact failure tolerance
Protection stateArray state, members, spares, cache protection and active rebuild/consistency workOptimal/online state does not prove backup or application integrity
Failure boundaryA 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?