mdadm, followed by unattended synchronization, failure drills, automated health monitoring, and layered off-site backups.
If you run a mixed desk—maybe a Windows 11 Pro desktop for daily work alongside a Linux NAS or homelab box—the first rule of two-drive mirroring is simple: pick your operating system before you format a single byte. Linux software RAID built with mdadm and Windows 11 Storage Spaces two-way mirrors achieve the same goal of writing every block twice across two physical disks, yet their on-disk metadata formats are completely incompatible. Windows 11 cannot natively assemble or manage an mdadm array, and Linux cannot natively manage a Storage Spaces pool. Treat each pair of drives as dedicated to one camp from day one.
Availability Is Not History: What RAID 1 Protects (and What It Doesn't)
Before cracking open a chassis or firing up an elevated PowerShell prompt, it pays to be crystal clear about the job you are hiring RAID 1 to do. A mirror buys you uptime, not time travel. Because every write hits both disks virtually simultaneously, a catastrophic mistake—whether that is an accidental Shift+Delete, a buggy script wiping a directory, or ransomware encrypting a shared folder—replicates across both drives in milliseconds.
Equally important is the capacity math. Two 8 TB drives in a mirror yield the usable space of a single 8 TB drive, because the second disk is strictly holding the duplicate copy. Mix an 8 TB disk with a 6 TB disk and the mirror caps out at 6 TB, stranding 2 TB on the larger drive. Sequential reads on Linux can sometimes outpace a single disk since the kernel can read from both members concurrently, while writes run at the speed of the slower drive. Nobody builds RAID 1 for benchmark bragging rights; you build it because downtime costs more than a second drive.
| Failure or Threat Scenario | Does RAID 1 Help? | What Actually Protects Your Data |
|---|---|---|
| Single drive dies outright | Yes — array stays online | Mirror plus a replacement drive on the shelf |
| Accidental file or folder deletion | No — disappears from both disks | Versioned backups or filesystem snapshots |
| Ransomware encryption | No — both copies are encrypted | Offline, immutable, or isolated off-site backups |
| Sudden power cut mid-write | Partly — write-intent bitmaps speed recovery | A UPS plus a journaling filesystem |
| Silent bit rot on one disk | Only with scrubbing/checksums — plain mirrors can't tell which copy is right | Scheduled scrubs and checksumming filesystems (ReFS, Btrfs, ZFS) |
| Bad RAM or flaky SATA controller | No — corrupt blocks can be written twice | ECC memory, good cabling, and versioned backups |
| Theft, fire, or flood | No — both drives live in the same box | Off-site or cloud backup copy |
If you only need bulk capacity or can afford a day of downtime to restore from an external drive, buying one larger disk and using a second drive solely as a backup gives you better protection per dollar. RAID 1 earns its keep when keeping the machine running through a dead disk matters.
Choosing Your Mirror Stack in Late 2026
Three mirroring options compete for the same two SATA or NVMe bays, and picking the wrong one creates headaches years down the road when you migrate hardware.
- Windows 11 Storage Spaces (Two-Way Mirror): Built directly into Windows 11, managed through Settings or PowerShell, and ideal for Windows desktops or workstations holding daily data. According to Microsoft Support, Storage Spaces groups two or more drives into a storage pool and lets a two-way mirror tolerate a single physical drive failure without data loss. The catch is portability: recovering a Storage Spaces pool requires Windows.
- Linux
mdSoftware RAID (mdadm): The standard open-source choice for Linux servers, NAS appliances, and homelab builds. Red Hat's Enterprise Linux 9 storage documentation continues to highlightmdraidcontrolled throughmdadmas a primary software-RAID mechanism, and the Linuxmdadm(8)manual documents RAID 1 mirroring as a core supported level. Disks move cleanly between Linux machines without matching hardware controllers, though Windows 11 cannot read them. - Motherboard Firmware RAID ("Fake RAID"): Intel or AMD chipset RAID modes usually offload the actual work to a Windows or Linux driver while tying array metadata to that specific motherboard family. If the board dies five years from now, you may be hunting eBay for an identical chipset just to mount your drives. Unless you specifically need to boot Windows from a mirrored OS drive and have verified vendor driver support, skip firmware RAID—and never stack software RAID on top of a firmware RAID volume.
Platform and Version Reality Check
If you are building on Windows 11 right now, confirm your OS build with winver before touching storage pools. Shattered.io's guide cites Windows 11 version 26H2 as the current release and suggests it reached all eligible devices by November 18, 2026. Microsoft's official Windows 11 release health documentation clarifies the rollout nuance: version 26H2 reached general availability on September 29, 2026, became available via manual update checks in late October, and began gradually expanding automatic delivery on November 18, 2026, starting with unmanaged personal and business PCs on versions 24H2 and 25H2.
On the Linux side, check your installed tooling (mdadm --version, smartctl --version | head -n 1, and python3 --version). Upstream mdadm reached version 4.6 in March 2026—a release Phoronix noted was driven largely by fixes for boot-time array assembly regressions that affected mdadm 4.5, alongside a new lockless bitmap feature. Distribution packages often trail upstream tags, so checking your distro's installed version and errata—especially on RHEL-family, Debian, or Ubuntu hosts—is smart practice.
Pre-Flight Hardware Rules: CMR Drives, Batch Mixing, and Labels
Most mirror disasters happen in the first hour before a command is even typed. Follow four hardware rules before connecting your drives:
- Confirm CMR, Not SMR, for Spinning Disks: Conventional Magnetic Recording (CMR) hard drives handle sustained writes and multi-hour array rebuilds predictably. Shingled Magnetic Recording (SMR) drives overlap data tracks and can choke to a crawl during heavy mirror resyncs, stretching your vulnerability window. Check the exact drive datasheet, because retail product names rarely advertise SMR.
- Avoid Identical Manufacturing Batches: Buying two drives from the same retailer on the same day often gives you consecutive serial numbers from the same wafer or assembly lot. Drives that share a birthday sometimes share a death week. Split orders across vendors or dates when practical, and apply the same logic to SSDs or NVMe drives that wear out under identical write loads.
- Tape Serial Numbers to the Drives: Device names like
/dev/sdborPhysicalDisk2are ephemeral labels that can shift when you plug in a USB stick or change a SATA port. Write each drive's serial number on a strip of masking tape and stick it on the end of the drive visible from outside the bay. When an array degrades at 2:00 a.m., you will thank yourself. - Skip Cheap USB Enclosures for Serious Mirrors: Many consumer USB-to-SATA bridges strip out SMART telemetry, drop links under sustained rebuild load, or scramble device identifiers. Stick to internal SATA or NVMe ports, spread drives across separate controllers if your board happens to have more than one, and plug the system into a UPS so power flickers don't trigger unnecessary resyncs.
If a brand-new drive doesn't appear in BIOS/UEFI, Windows Disk Management, or Linux lsblk, stop right there. A mirror only organizes drives the machine already sees—fix power, M.2 seating, or SATA cabling first.
Path A: Setting Up a Two-Drive Mirror on Windows 11 (Storage Spaces)
Windows 11 lets you build a two-way mirror either graphically—via Settings > System > Storage > Advanced storage settings > Storage Spaces—or through an elevated Windows Terminal / PowerShell session. While clicking through Settings is convenient, PowerShell gives you explicit control over a subtle trap that trips up countless Windows 11 users: thin provisioning.
When you create a two-way mirror in the GUI with default thin provisioning, Windows reports the maximum logical virtual disk size rather than the true physical mirror capacity—meaning two 8 TB drives can show roughly 15 TB "available" in File Explorer even though copying 7.5 TB of files completely fills the physical disks. Using PowerShell with -ProvisioningType Fixed reserves the real mirrored capacity up front so File Explorer tells you the truth from day one. (Also note that Windows 11 caps individual Storage Spaces volumes at 63 TB, which won't bother a two-drive desktop mirror unless you are pooling enterprise-sized arrays.)
Step-by-Step PowerShell Creation (With Serial-Number Safety)
Open Windows Terminal or PowerShell as Administrator. First, inspect every physical disk attached to your PC and verify which ones are eligible (CanPool: True):
Get-PhysicalDisk | Select-Object FriendlyName, SerialNumber, MediaType, Size, CanPool, HealthStatus
Critical safety warning: Many tutorials—including the Shattered.io guide's baseline snippet—show $disks = Get-PhysicalDisk -CanPool $true. Do not run that blindly if you have other unformatted or spare drives connected, because it grabs every pool-eligible disk on the system. Instead, filter explicitly by the serial numbers you verified above:
$disks = Get-PhysicalDisk | Where-Object { $_.SerialNumber -in @("SERIAL_DISK_1", "SERIAL_DISK_2") }
$disks | Select-Object FriendlyName, SerialNumber, Size, CanPool
Confirm that $disks lists only your two intended target drives, because creating a storage pool erases any existing partitions or data on those disks. Next, create the pool, build a fixed-provisioned two-way mirror virtual disk, and format it:
New-StoragePool -FriendlyName "MirrorPool" -StorageSubSystemFriendlyName "Windows Storage*" -PhysicalDisks $disks
New-VirtualDisk -StoragePoolFriendlyName "MirrorPool" -FriendlyName "Mirror01" `
-ResiliencySettingName Mirror -NumberOfDataCopies 2 -UseMaximumSize -ProvisioningType Fixed
Get-VirtualDisk -FriendlyName "Mirror01" | Get-Disk |
Initialize-Disk -PartitionStyle GPT -PassThru |
New-Partition -AssignDriveLetter -UseMaximumSize |
Format-Volume -FileSystem NTFS -NewFileSystemLabel "Mirror01"
Microsoft Learn's New-VirtualDisk reference confirms that specifying -ResiliencySettingName Mirror creates a two-way mirror by default (-NumberOfDataCopies 2 makes it explicit), allowing the volume to survive one failed physical disk without data loss, while -UseMaximumSize allocates the largest mirror the pool supports. Microsoft Support also notes that when a mirror space is formatted with the Resilient File System (ReFS) rather than NTFS, Windows can automatically maintain data integrity—though for general Windows 11 desktop compatibility, NTFS remains the standard default unless your edition and workflow specifically target ReFS.
Verify your work:
Get-VirtualDisk | Select-Object FriendlyName, ResiliencySettingName, NumberOfDataCopies, HealthStatus, OperationalStatus
Get-StoragePool -FriendlyName "MirrorPool" | Get-PhysicalDisk | Select-Object FriendlyName, SerialNumber, HealthStatus, Usage
You want to see Mirror, 2 data copies, and Healthy across both the virtual disk and the physical drives.
Replacing a Failed Drive in Storage Spaces
When a disk dies, HealthStatus flips to Warning or Unhealthy, yet the volume remains accessible. Once you physically swap in a replacement drive of equal or larger capacity, retire the dead disk, add the replacement, trigger a repair, and wait for the rebuild to hit 100 percent before removing the retired member:
# 1. Identify the unhealthy or missing disk's FriendlyName / SerialNumber
Get-StoragePool -FriendlyName "MirrorPool" | Get-PhysicalDisk | Select-Object FriendlyName, SerialNumber, HealthStatus, OperationalStatus, Usage
# 2. Retire the failed disk (replace placeholder with your actual disk name or filter by SerialNumber)
Set-PhysicalDisk -FriendlyName "<FailedDiskFriendlyName>" -Usage Retired
# 3. Select the new drive explicitly by serial number and add it to the pool
$newDisk = Get-PhysicalDisk | Where-Object { $_.SerialNumber -eq "NEW_DRIVE_SERIAL" }
Add-PhysicalDisk -StoragePoolFriendlyName "MirrorPool" -PhysicalDisks $newDisk
# 4. Rebuild redundancy and monitor progress
Repair-VirtualDisk -FriendlyName "Mirror01"
Get-StorageJob
Wait until Get-StorageJob shows the repair job is completely finished. Removing the retired disk early leaves you with zero safety margin if an error strikes mid-rebuild. Once the repair completes, remove any retired disk object cleanly:
$retired = Get-PhysicalDisk | Where-Object { $_.Usage -eq "Retired" }
Remove-PhysicalDisk -StoragePoolFriendlyName "MirrorPool" -PhysicalDisks $retired
If CanPool reports False on a previously used replacement disk, verify its disk number and serial first, then clear old partition/pool signatures with Clear-Disk -Number N -RemoveData -Confirm:$false before adding it to the pool.
Path B: Setting Up a Two-Drive Mirror on Linux (mdadm)
On Ubuntu, Debian, or RHEL-family hosts, the md driver lives directly in the Linux kernel. Install the user-space toolkit first (using dnf instead of apt on RHEL/Fedora systems):
sudo apt update
sudo apt install mdadm smartmontools gdisk parted python3
If mdadm prompts about mail server configuration during installation on Debian/Ubuntu, accept the default for now.
Steps 1–3: Identify Safely and Partition with a Safety Margin
Linux assigns /dev/sdX names dynamically at boot, so never trust yesterday's device letter. Run these checks right before every destructive operation and match the serial numbers against the masking tape on your drives:
lsblk -o NAME,SIZE,MODEL,SERIAL,TYPE,FSTYPE,MOUNTPOINTS
ls -l /dev/disk/by-id/ | grep -v part
sudo smartctl -i /dev/sdb | grep -E "Model|Serial|Capacity|Rotation"
sudo smartctl -i /dev/sdc | grep -E "Model|Serial|Capacity|Rotation"
Confirm both target disks show no FSTYPE and no MOUNTPOINTS. Run sudo wipefs -n /dev/sdb /dev/sdc (the -n flag is non-destructive) to spot leftover RAID or filesystem signatures. If either disk holds old junk you've already backed up, clear signatures with wipefs -a only after double-checking serials.
Next, create a GPT partition table and a single RAID-flagged partition on each disk. Using a partition rather than the raw whole disk—and optionally ending at -2GiB instead of 100%—gives you a vital buffer in case a future replacement drive from another vendor is a few megabytes smaller than the original:
sudo parted -s /dev/sdb mklabel gpt mkpart primary 1MiB -2GiB set 1 raid on
sudo parted -s /dev/sdc mklabel gpt mkpart primary 1MiB -2GiB set 1 raid on
lsblk /dev/sdb /dev/sdc
Steps 4–7: Build, Sync, Mount, and Persist Across Reboots
Create /dev/md0 using metadata version 1.2 and an internal write-intent bitmap (--bitmap=internal), which drastically cuts recovery resync time after an unexpected reboot by tracking which regions were actively changing:
sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 \
--metadata=1.2 --bitmap=internal /dev/sdb1 /dev/sdc1
Watch the initial background synchronization with watch -n 5 cat /proc/mdstat. On an 8 TB pair, Shattered.io notes the initial sync can take most of a day depending on drive speed and system load. You can format and use the array while it syncs, though I/O will be slower and you should avoid rebooting mid-sync if possible. Learn to read the status indicators at a glance:
[2/2] [UU]— Both members are active and healthy.[2/1] [U_]— Degraded. One member is missing or failed; you have zero redundancy left.
Format the array with ext4 (the reliable general-purpose default; XFS works well for large media volumes but cannot shrink, while Btrfs and ZFS should generally manage raw disks directly rather than sitting on top of mdadm so their native self-healing checksums work properly):
sudo mkfs.ext4 -L mirror01 /dev/md0
sudo mkdir -p /srv/mirror
sudo mount /dev/md0 /srv/mirror
sudo blkid /dev/md0
Grab the UUID printed by blkid and append an entry to /etc/fstab using nofail. Without nofail, a degraded or missing array on boot can stall a headless server at an emergency shell:
echo 'UUID=PUT-YOUR-UUID-HERE /srv/mirror ext4 defaults,nofail 0 2' | sudo tee -a /etc/fstab
sudo umount /srv/mirror
sudo mount -a
Finally, save the array configuration so Linux doesn't renumber /dev/md0 to /dev/md127 after a reboot, and update your early boot environment. On Debian/Ubuntu:
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf
sudo update-initramfs -u
(On RHEL-family systems, write to /etc/mdadm.conf and run sudo dracut --force instead.) Inspect the config file to make sure there is only one ARRAY line for md0, reboot once to verify persistence, and confirm cat /proc/mdstat and df -h /srv/mirror look clean.
Rehearse the Failure, Wire Up Alerts, and Layer Real Backups
An untested mirror is just an expensive superstition. Before trusting real data to your new setup, run a live failure drill—and build the monitoring and backup layers that actually save your skin.
Step 9: Break It on Purpose
Copy a few test files onto /srv/mirror and record their sha256sum hashes. Then simulate a dead member on Linux:
sha256sum /srv/mirror/testfile-*
sudo mdadm /dev/md0 --fail /dev/sdc1
sudo mdadm /dev/md0 --remove /dev/sdc1
cat /proc/mdstat
Verify the array reports [2/1] [U_], check that your test files remain readable and their checksums match, and then rebuild. For a drill with the same disk, sudo mdadm /dev/md0 --add /dev/sdc1 uses the write-intent bitmap to catch up quickly. For a brand-new replacement disk (say /dev/sdd), clone the GPT layout from the healthy survivor (/dev/sdb) and randomize the GUIDs so they don't collide—making triple sure the source disk goes last:
sudo sgdisk --replicate=/dev/sdd /dev/sdb
sudo sgdisk -G /dev/sdd
sudo mdadm /dev/md0 --add /dev/sdd1
Time how long that rebuild takes and tape a short printed runbook (serial numbers, array name, exact replacement commands, and rebuild duration) to the side of the case. When a disk dies for real, calm notes beat panicked memory.
Steps 10–11: Monitoring That Actually Reaches a Human
A degraded mirror runs silently without complaining. If nobody tells you Drive 1 died in March, Drive 2 will cheerfully take all your data with it in September.
- SMART +
mdadmAlerts on Linux: Watch physical attributes—especially risingReallocated_Sector_Ct,Current_Pending_Sector, andOffline_Uncorrectablecounts—viasmartctl -A /dev/sdband scheduledsmartdchecks. AddMAILADDR [email][email protected][/email]to/etc/mdadm/mdadm.confand test alert delivery withsudo mdadm --monitor --scan --test --oneshot, which themdadm(8)manual confirms generates a test alert for each array found. - Watch Out for Silent Email Failures: Most home Linux boxes lack an outbound mail relay, meaning
mdadmalerts vanish into/var/mailunread. Shattered.io proposes pairingsystemdtimers with a lightweight Python script (/usr/local/bin/mirrorwatch.py) that parses/proc/mdstat, invokessmartctl -a -jusing safe argument lists, writes JSON logs, and triggers a webhook (curl) onwarnorcriticalexit codes. If you adapt community-written monitoring scripts like that, treat them as unverified code until you run them against simulated[2/1] [U_]outputs and verify your webhook actually pings your phone. - Windows 11 Monitoring: Check Windows Reliability Monitor, watch Storage Spaces notifications in Settings, and schedule a recurring Task Scheduler script running
Get-VirtualDiskthat alerts ifHealthStatusis anything other thanHealthy.
Step 12: Follow the 3-2-1 Rule and Monthly Scrubs
Complete the defense-in-depth stack by pairing your mirror with a true versioned backup:
- Keep a Third Copy Off-Site: Your mirror counts as two copies on one type of media in one physical location. Back it up to a separate external drive stored off-site or a cloud target using versioned, deduplicating tools like
resticorborgon Linux—not plainrsync, which mirrors accidental deletions—or Windows File History / third-party backup software on Windows 11. Test a file restore at least once a year. - Schedule Monthly Scrubs: On Linux, running
echo check | sudo tee /sys/block/md0/md/sync_actionreads every block on both disks and compares them, exposing silent read errors before you need a rebuild. Afterward, inspect/sys/block/md0/md/mismatch_cnt—zero is ideal, while a steadily climbing count across monthly checks points to a dying drive, cable, or controller. On Windows, schedule periodicGet-VirtualDiskhealth checks (andRepair-VirtualDiskif needed).
Quick Troubleshooting and Pro-Level Upgrades
When an array misbehaves, gather cat /proc/mdstat, sudo mdadm --detail /dev/md0, and dmesg | tail -n 50 on Linux—or Get-StoragePool, Get-VirtualDisk, Get-PhysicalDisk, and Get-StorageJob on Windows—before making changes:
- Array shows up as
/dev/md127after reboot: Yourmdadm.confARRAYline is missing or stale, or your initramfs needs rebuilding (update-initramfs -uordracut --force). - Rebuild stalls at
resync=DELAYED: Another array sharing one of the physical disks is resyncing first; let it finish, or check/proc/sys/dev/raid/speed_limit_minif throughput is artificially throttled. - Need full-disk encryption? Layer LUKS on top of
/dev/md0rather than encrypting each drive separately. You encrypt each block once, manage one key, andmdadmmirrors the ciphertext cleanly. - Want zero-wait recovery or dual-drive resilience? Adding a third drive as a hot spare (
--spare-devices=1) kicks off rebuilds automatically the moment a drive fails, while a three-way mirror (--raid-devices=3on Linux or-NumberOfDataCopies 3in Storage Spaces) survives two simultaneous drive failures at the cost of two-thirds of your raw capacity.
Set up carefully, labeled clearly, and backed by off-site versions plus working alerts, a two-drive mirror takes one afternoon of discipline and buys years of quiet sleep.
Correction (November 28, 2026): An earlier version of this article used a New-Partition parameter named AssumeDriveLetter in the Storage Spaces PowerShell example. That parameter does not exist and the command would have failed. The correct parameter is AssignDriveLetter, per Microsoft's New-Partition reference, and the example has been corrected.
References
- RAID 1 Setup: Mirror 2 Drives in 12 Steps, 60 Min - shattered.io shattered.io · 2026-11-28T16:24:33+00:00
- phoronix.com phoronix.com
- redhat.com docs.redhat.com