Pcornel
Storage · RAID

Write Cache

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

Back to the Topic

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 cache
  • Get-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 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 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?