Failed Disk
Cheat sheet · https://pcornel.dk/topic.php?topic=4383
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 confirmedmdadm --detail / zpool status / storcli show— array viewledctl 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/--removezpool offlinemdadm --addzpool 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 boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Workload error → logical device/array member map → persistent disk identity → controller/path → device health/media → redundancy state → replacement/reconstruction → read-back | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A 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 |
| Acceptance | Healthy 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