Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Write Cache

Direct 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.

When to use this

Use it when configuring, checking or troubleshooting Write Cache in RAID.

First 30 seconds

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.

Operational verification

write → cache (protected) → disk

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
RAID storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformRAID storage
Scope / prerequisiteUse it when configuring, checking or troubleshooting Write Cache in RAID.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key 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
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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docRAID storage current

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%
Terminology layer

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.

Aliases that resolve here
raid write cachewrite back cachewrite through cache
Embedded reference data

Quick lookup tables

RAID → Write Cache RAID map

Fast layout, protection, failure and verification boundaries for RAID → Write Cache.

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
Confirmation

Confirm action

Continue?