Use it when choosing RAID 1 or checking an existing RAID 1 array.
RAID 1
RAID 1 (mirroring) writes identical data to two or more disks; it survives the loss of all but one disk. Capacity = one disk.
1. cat /proc/mdstat — level 1 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 1 layout → array device → filesystem
For RAID → RAID 1, continue with the first unproven Topic check: Record expected mirror width and identify active sync members versus spare, faulty, removed or replacement members. If that boundary is healthy, advance to the adjacent check: Inspect recovery progress and event counts before removing another device or rebooting a degraded host. 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 write → mirror replication to active members → md completion policy → member health/events → degraded/recovery state → upper consumer read-back → workload verification
Healthy evidence: the expected mirror members are active and in-sync, no recovery is pending, event state is coherent and the upper workload reads/writes successfully.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Record expected mirror width and identify active sync members versus spare, faulty, removed or replacement members.
- Inspect recovery progress and event counts before removing another device or rebooting a degraded host.
- Verify replacement capacity/geometry and lower-device health before adding it, then monitor synchronization through completion.
- After recovery, show redundant clean state and read back the upper filesystem/application data rather than stopping at 100% sync.
Verification chain. logical write → mirror replication to active members → md completion policy → member health/events → degraded/recovery state → upper consumer read-back → workload verification
Step 3 Commands Verify boundary
mdadm --detail /dev/md0 | grep -E 'State|Active'
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: the array serves I/O with only one surviving copy, a replacement is still recovering, members disagree on generation or repeated faults reduce redundancy again.
Step 5 Common mistakes Narrow the fault
- Treating RAID 1 as a backup.
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.
Good for boot and system disks. Install the bootloader on every member. A mirror does not protect against deletion or corruption — keep backups.
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
Show which members are active and in-sync, which are spare/faulty/removed, and whether a recovery is in progress. Continued availability after one member fails is degraded service, not a completed fix; replacement must reach synchronized state before redundancy is restored.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
RAID1 closure requires the expected number of active in-sync mirrors and successful upper-layer verification; degraded availability or a completed percentage alone is not restored protection.
In depth
RAID1: mirroring
RAID1 keeps an identical copy of the data on every member device. The md(4) manual page describes it as mirroring, and notes that it survives the failure of all but one device. When a member returns after a short absence, the write-intent bitmap lets md resync only the regions that changed. Reads that fail on one member are answered from another, and md rewrites the bad block.
Properties
| Property | RAID1 |
|---|---|
| Usable capacity | One device (the smallest) |
| Read performance | Can be spread across members |
| Write performance | That of the slowest member (every write goes to all) |
| Fault tolerance | n−1 devices |
| Rebuild | A straight copy from a surviving member |
RAID1 for boot and OS disks
| Part | Approach |
|---|---|
/boot on RAID1 | Metadata 1.0 (superblock at the end), so the boot loader can read either member as a plain file system |
| EFI System Partition | Not on md; keep two separate ESPs and sync them |
| Boot loader | Install it on both disks (grub-install /dev/sda and /dev/sdb) on BIOS systems |
| Root | md RAID1 with metadata 1.2, under LVM or directly |
Three-way mirrors and spares
A third member (--raid-devices=3) keeps redundancy while one disk is being replaced. A hot spare (--spare-devices=1) is activated automatically when a member fails.
host$ sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 --metadata=1.0 --bitmap=internal /dev/sda2 /dev/sdb2
host$ sudo mdadm --detail /dev/md0 | grep -E "Raid Level|Array Size|State :|Version"
Version : 1.0
Raid Level : raid1
Array Size : 1047552 (1023.00 MiB 1072.69 MB)
State : clean
host$ sudo mdadm /dev/md2 --add /dev/sdc3
host$ sudo mdadm --grow /dev/md2 --raid-devices=3
host$ cat /proc/mdstat | grep -A2 md2
md2 : active raid1 sdc3[2] sdb3[1] sda3[0]
[3/3] [UUU]
host$ sudo grub-install /dev/sdb
Not a backup
A mirror copies every change immediately, including accidental deletions, ransomware encryption and file system corruption. RAID1 protects against a failed disk only. Backups and snapshots cover everything else.
Documented example, not captured output.
How it works at runtime
RAID 1 is part of RAID → RAID 1. RAID 1 mirrors logical blocks across members so a surviving in-sync copy can continue serving data after selected member failures, subject to the configured member count, metadata state and integrity of the remaining copies.
Topic-specific state model. RAID 1 mirrors logical blocks across members so a surviving in-sync copy can continue serving data after selected member failures, subject to the configured member count, metadata state and integrity of the remaining copies.
Interpretation rule. - RAID1 degraded and mounted ≠ redundancy restored; the surviving copy may be the only remaining source.
- Mirror copies ≠ independent backups; corruption or unwanted writes can be replicated to every member.
- New member added ≠ synchronized member; it becomes protective only after recovery completes and state is verified.
- Two readable members ≠ identical trusted data if metadata/events reveal one is stale or failed out of the array.
Quick reference
RAID 1 with md mirrors data; reads can be served from either disk.
mdadm --create /dev/md0 --level=1 --raid-devices=2 --metadata=1.2 /dev/sda2 /dev/sdb2
mdadm /dev/md0 --add /dev/sdc2 # becomes spare
mdadm --grow /dev/md0 --raid-devices=3 # three-way mirror
For boot mirrors on UEFI, the ESP cannot be on md with 1.2 metadata — keep a separate ESP on each disk (sync them) or use metadata 1.0 at the end of the partition. Install the boot loader on both disks so either can boot.
Limits and how it fails
Primary failure point. RAID1 closure requires the expected number of active in-sync mirrors and successful upper-layer verification; degraded availability or a completed percentage alone is not restored protection.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. RAID 1 owns Linux mirror state and recovery. Physical/virtual media owns member faults; Filesystems/Data Integrity owns upper corruption; Backup & Restore owns independent copies.
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 1. 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 1 operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for RAID 1.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | RAID 1 mirrors logical blocks across members so a surviving in-sync copy can continue serving data after selected member failures, subject to the configured member count, metadata state and integrity of the remaining copies. | 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 write → mirror replication to active members → md completion policy → member health/events → degraded/recovery state → upper consumer read-back → workload verification | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | RAID1 closure requires the expected number of active in-sync mirrors and successful upper-layer verification; degraded availability or a completed percentage alone is not restored protection. | 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 write → mirror replication to active members → md completion policy → member health/events → degraded/recovery state → upper consumer read-back → workload 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. RAID1 closure requires the expected number of active in-sync mirrors and successful upper-layer verification; degraded availability or a completed percentage alone is not restored protection. | 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 1 · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | RAID 1 |
|---|---|
| Topic path | RAID → RAID 1 |
| Runtime state | RAID 1 mirrors logical blocks across members so a surviving in-sync copy can continue serving data after selected member failures, subject to the configured member count, metadata state and integrity of the remaining copies. |
| Fast checks | - Record expected mirror width and identify active sync members versus spare, faulty, removed or replacement members. - Inspect recovery progress and event counts before removing another device or rebooting a degraded host. - Verify replacement capacity/geometry and lower-device health before adding it, then monitor synchronization through completion. - After recovery, prove redundant clean state and read back the upper filesystem/application data rather than stopping at 100% sync. |
| Verification chain | logical write → mirror replication to active members → md completion policy → member health/events → degraded/recovery state → upper consumer read-back → workload 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 | RAID1 closure requires the expected number of active in-sync mirrors and successful upper-layer verification; degraded availability or a completed percentage alone is not restored protection. 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. |