Write Cache
Cheat sheet · https://pcornel.dk/topic.php?topic=3927
Answer
In write-through mode, completion generally waits for lower-layer persistence according to the stack's contract. In write-back mode, the controller may acknowledge once data is safely held in protected cache, then destage later. Unprotected volatile write-back can lose acknowledged data during power failure.
Remember
- Write-back acknowledgement ≠ member-device persistence at that instant.
- Write cache enabled ≠ power-loss protected.
- Faster benchmark result ≠ safe durability semantics.
- Cache full/destage pressure can expose backend performance limits.
First checks
storcli /c0/v0 show all | grep -i cache— cache policy (WB/WT)hdparm -W /dev/sdX— disk write cacheGet-PhysicalDisk | Get-StorageAdvancedProperty— Windows cache status
Verify in this order
write → cache (protected) → disk
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 → Write Cache 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 write acknowledged from cache proves only the configured cache contract was satisfied; without verified power-loss protection it does not prove durable persistence. | Failure tolerance must be evaluated against the exact layout and failure pattern |
| Acceptance | Healthy evidence: configured cache mode matches policy, protection is healthy, dirty cache drains predictably and sustained write latency remains acceptable. | 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=3927