Use it when configuring, checking or troubleshooting Write Cache in RAID.
Write Cache
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.
1. Write-back cache speeds writes but needs protection.
2. Write-through is safe but slower.
3. Controllers drop to write-through if BBU fails.
4. Disk caches should be off behind RAID without PLP.
5. Check after BBU events.
write → cache (protected) → disk
Context & applicabilityCommon mistakes · platform/version boundaries
A write acknowledged from cache shows only the configured cache contract was satisfied; without verified power-loss protection it does not show durable persistence.
Suspicious evidence: write-back remains enabled with failed protection, cache repeatedly saturates, dirty data cannot destage, or short cache-hot benchmarks are used as sustained-storage evidence.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
host write → RAID write cache → acknowledgement according to policy → destage/RAID mapping → member persistence → cache line release
Healthy evidence: configured cache mode matches policy, protection is healthy, dirty cache drains predictably and sustained write latency remains acceptable.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
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
ReferenceImportant terms & boundaries2 sections · depth on demand
Protection
A write acknowledged from cache shows only the configured cache contract was satisfied; without verified power-loss protection it does not show durable persistence.
In depth
Write-back cache acknowledges a write when it reaches controller memory, then destages to disk later: write latency drops from milliseconds to microseconds and small writes can be combined into full stripes. Write-through acknowledges only after the disk has the data.
Write-back is only safe when the cache is protected against power loss (battery or flash backup) and controllers fall back to write-through when the protection is missing or charging. Disk-level write caches on the drives themselves are normally disabled behind a RAID controller unless the drives have power-loss protection.
storcli /c0/v0 show all | grep -i cache
storcli /c0/v0 set wrcache=wb
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in RAID → Write Cache. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/admin-guide/md.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
RAID → Write Cache RAID map
Fast layout, protection, failure and verification boundaries for RAID → Write Cache.
| 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 |