Use it when choosing RAID 6 or checking an existing RAID 6 array.
RAID 6
RAID 6 uses two parity blocks per stripe across at least four disks; it survives two disk failures. Capacity = (n−2) disks.
1. cat /proc/mdstat — level 6 and all members up?
2. mdadm --detail /dev/md<n> — state, failed or spare devices.
3. Capacity and tolerance as expected for this level?
4. Degraded → replace the failed disk and rebuild.
5. Backups exist independent of the array.
disks → RAID 6 layout → array device → filesystem
For RAID → RAID 6, continue with the first unproven Topic check: Record expected member count and exact failed/missing roles, then determine remaining redundancy before any additional device action. If that boundary is healthy, advance to the adjacent check: Inspect surviving members for media/path errors and abnormal latency before placing rebuild stress on the array. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
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 Operational evidence path Verify boundary
logical I/O → stripe/chunk mapping → data + dual parity computation → member completions → degraded/reconstruction state → upper consumer → workload/data verification
Healthy evidence: all expected members are active, no recovery/check mismatch is unexplained, surviving devices are healthy and upper-layer verification succeeds.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Record expected member count and exact failed/missing roles, then determine remaining redundancy before any additional device action.
- Inspect surviving members for media/path errors and abnormal latency before placing rebuild stress on the array.
- Track recovery/check state and kernel/md errors continuously, especially when operating with one or two unavailable members.
- After full membership returns, verify clean state and original filesystem/application data rather than treating dual parity as evidence of integrity.
Verification chain. logical I/O → stripe/chunk mapping → data + dual parity computation → member completions → degraded/reconstruction state → upper consumer → workload/data verification
Step 3 Commands Verify boundary
mdadm --create /dev/md0 --level=6 --raid-devices=6 /dev/sd[b-g]1
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: multiple failed members consume redundancy, surviving devices report read errors during recovery or dual-parity capability is confused with guaranteed data integrity.
Step 5 Common mistakes Narrow the fault
- Expecting RAID 6 write performance to match RAID 10.
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.
Safer than RAID 5 for large disks and long rebuilds. Write performance is lower. Still not a backup.
cat /proc/mdstat— md arrays and sync statusmdadm --detail /dev/md<n>— array state and membersmdadm --examine /dev/<dev>— member superblocksmartctl -H /dev/<disk>— disk health
ReferenceWhat it is1 section · depth on demand
Core model
Treat two-failure tolerance as a budget, not a guarantee of safety under every error pattern. Record exactly how many members are missing/faulty and the state of all survivors before recovery; while degraded, reconstruction still depends on enough remaining data/parity blocks being readable and correctly mapped.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
RAID6 closure requires restored expected membership and redundancy plus successful upper-layer verification; the theoretical ability to tolerate two failures does not show current survivors, parity or application data are correct.
In depth
RAID6: two parity blocks
RAID6 extends RAID5 with a second, independent parity block per stripe. The md(4) manual page describes it as striping with dual redundancy, able to survive two failed devices. Like RAID5, a degraded array that was shut down uncleanly doesn't start automatically.
RAID5 compared with RAID6
| RAID5 | RAID6 | |
|---|---|---|
| Minimum devices | 3 | 4 |
| Usable capacity | n − 1 | n − 2 |
| Survives | 1 failure | 2 failures |
| During a rebuild | No redundancy left | Still survives one more failure |
| Write cost | Two parity-related I/Os per small write | More: two parity blocks to update |
| Typical use | Small arrays of smaller disks | Arrays of many large disks |
Capacity examples
| Disks | Size each | RAID6 usable |
|---|---|---|
| 4 | 8 TB | 16 TB |
| 6 | 8 TB | 32 TB |
| 8 | 16 TB | 96 TB |
Operating a RAID6 array
| Practice | Reason |
|---|---|
Monthly scrub (check) | Find latent bad sectors while redundancy is complete |
| A hot spare, or a quick replacement process | The rebuild starts at once |
| Monitor mail and SMART | Notice a first failure before a second one |
| Write-intent bitmap | Shorter resync |
| UPS or a reliable power supply | Avoid the dirty+degraded state |
Converting RAID5 to RAID6
mdadm --grow can change the level from 5 to 6 while adding a device. The manual notes that level and layout changes need --backup-file. The reshape runs online, but it takes a long time and stresses all disks.
host$ sudo mdadm --create /dev/md6 --level=6 --raid-devices=6 --chunk=512 --bitmap=internal /dev/sd[c-h]1
host$ sudo mdadm --detail /dev/md6 | grep -E "Raid Level|Array Size|Raid Devices|State :"
Raid Level : raid6
Array Size : 31251243008 (29.10 TiB 32.00 TB)
Raid Devices : 6
State : clean, degraded, recovering
host$ sudo mdadm --grow /dev/md5 --level=6 --raid-devices=5 --add /dev/sdg1 --backup-file=/root/md5-reshape.bak
host$ sudo smartctl -H /dev/sdc | grep result
SMART overall-health self-assessment test result: PASSED
host$ cat /sys/block/md6/md/degraded
Degraded but still protected
/sys/block/md6/md/degraded shows how many devices are missing. On RAID6, one missing device still leaves full single-failure protection. Treat it with the same urgency anyway, because rebuilds on large disks take many hours.
Documented example, not captured output.
How it works at runtime
RAID 6 is part of RAID → RAID 6. RAID 6 uses dual distributed parity so an array can tolerate up to two member failures within its redundancy model, at the cost of additional parity work and a recovery window whose risk rises as failures accumulate.
Topic-specific state model. RAID 6 uses dual distributed parity so an array can tolerate up to two member failures within its redundancy model, at the cost of additional parity work and a recovery window whose risk rises as failures accumulate.
Interpretation rule. - RAID6 can tolerate two member failures ≠ any two arbitrary corruption/path scenarios are harmless.
- One failed member ≠ full protection; redundancy margin is reduced until replacement and recovery complete.
- Two failed members and mounted filesystem ≠ safe maintenance window; another required read failure can exceed recoverability.
- Dual parity ≠ backup or end-to-end application integrity.
Quick reference
RAID 6 with md: double parity, survives two disk failures.
mdadm --create /dev/md0 --level=6 --raid-devices=6 --chunk=512 /dev/sd[b-g]
mdadm --detail /dev/md0 | grep -E 'Raid Level|Array Size|State'
Usable capacity (n−2) disks. Writes are slower than RAID 10 (two parity updates); suited to capacity storage and backups. Convert RAID 5 → 6 by adding a disk and reshaping (mdadm --grow /dev/md0 --level=6 --raid-devices=5 --backup-file=/root/md0.bak).
Limits and how it fails
Primary failure point. RAID6 closure requires restored expected membership and redundancy plus successful upper-layer verification; the theoretical ability to tolerate two failures does not show current survivors, parity or application data are correct.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. RAID 6 owns Linux dual-parity array state and recovery. Storage RAID owns parity math concepts; member-device and application-integrity issues remain with the relevant Topics.
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 → RAID 6. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/admin-guide/md.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
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 6 operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for RAID 6.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | RAID 6 uses dual distributed parity so an array can tolerate up to two member failures within its redundancy model, at the cost of additional parity work and a recovery window whose risk rises as failures accumulate. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin exact host + array UUID/name → capture /proc/mdstat + md detail → examine every candidate member superblock/role/event count → prove lower device/path health → identify clean/degraded/recovery/reshape state → change one demonstrated cause → verify expected active membership/redundancy → read back LVM/filesystem → repeat original workload and regression. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | logical I/O → stripe/chunk mapping → data + dual parity computation → member completions → degraded/reconstruction state → upper consumer → workload/data verification | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | RAID6 closure requires restored expected membership and redundancy plus successful upper-layer verification; the theoretical ability to tolerate two failures does not prove current survivors, parity or application data are correct. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux RAID evidence can establish this proof path: logical I/O → stripe/chunk mapping → data + dual parity computation → member completions → degraded/reconstruction state → upper consumer → workload/data verification | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host/VM, array UUID, metadata generation, member set, device/path health, recovery window, upper filesystem/LVM, time or workload scope. RAID6 closure requires restored expected membership and redundancy plus successful upper-layer verification; the theoretical ability to tolerate two failures does not prove current survivors, parity or application data are correct. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven RAID boundary: capture exact member metadata and downstream state, preserve recoverability, change only the demonstrated cause, verify stable array membership/redundancy, then repeat the original upper-layer workload and adjacent regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
RAID 6 · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | RAID 6 |
|---|---|
| Topic path | RAID → RAID 6 |
| Runtime state | RAID 6 uses dual distributed parity so an array can tolerate up to two member failures within its redundancy model, at the cost of additional parity work and a recovery window whose risk rises as failures accumulate. |
| Fast checks | - Record expected member count and exact failed/missing roles, then determine remaining redundancy before any additional device action. - Inspect surviving members for media/path errors and abnormal latency before placing rebuild stress on the array. - Track recovery/check state and kernel/md errors continuously, especially when operating with one or two unavailable members. - After full membership returns, verify clean state and original filesystem/application data rather than treating dual parity as proof of integrity. |
| Verification chain | logical I/O → stripe/chunk mapping → data + dual parity computation → member completions → degraded/reconstruction state → upper consumer → workload/data verification Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | RAID6 closure requires restored expected membership and redundancy plus successful upper-layer verification; the theoretical ability to tolerate two failures does not prove current survivors, parity or application data are correct. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |