Pcornel
Storage · Storage Troubleshooting

Failed Disk

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

Back to the Topic

Answer

Prove failure using persistent device identity and correlated device/controller health: media errors, SMART/NVMe status where applicable, controller events, read/write failures and array membership state.

Remember

  • A disk marked failed ≠ root cause of every application error.
  • Path loss ≠ media failure; the same disk may remain healthy through another path.
  • SMART warning ≠ immediate unreadability, and no SMART warning ≠ healthy device.
  • Replacing by slot name alone is unsafe when enclosure mapping or identifiers are ambiguous.

First checks

  • smartctl -a /dev/sdX — failure confirmed
  • mdadm --detail / zpool status / storcli show — array view
  • ledctl locate=/dev/sdX — identify slot

Commands

smartctl -a /dev/sdX
Read disk SMART health. Focus fields: SMART overall health, reallocated/pending/uncorrectable counts, temperature and e…
mdadm --fail/--remove
zpool offline
mdadm --add
zpool replace

Verify in this order

failure → identify → replace → rebuild

Where it usually breaks

First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.

Storage Troubleshooting → Failed Disk proof map

Troubleshooting boundaryWhat to verifyProof limit
Scope / identityExact workload, object/device identity, affected hosts and incident windowSymptom naming alone is not root-cause proof
Dependency pathWorkload error → logical device/array member map → persistent disk identity → controller/path → device health/media → redundancy state → replacement/reconstruction → read-backHealthy adjacent layers do not prove end-to-end health
Failure boundaryA failed-device state proves a member is unusable according to that layer; it does not prove the rest of the redundancy set, filesystem or restored data is healthy.Correlate evidence for the same operation and timestamps
AcceptanceHealthy evidence after remediation shows the intended replacement identity, restored redundancy, no continuing media/path errors and successful data read-back.Close only after the original workload/recovery test and regression check

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4383

Confirmation

Confirm action

Continue?