Mirrored Drives
You'll build a box that holds every family file twice and shares it to every screen in the house, then pull a drive out of it on purpose and watch it heal.
About
A NAS is a computer with drives and a share, and you don't need the branded box. A Pi 4 with two USB drives, an old desktop or a used mini PC all work. The point is a mirror: two drives with one copy each, so a dead drive is an inconvenience and not a loss. Then you add a share your family can find from any laptop or phone. A mirror only protects you if the rebuild actually works, and the only way to know is to try it on a quiet weekend rather than at 3 a.m. A mirror is not a backup, though. It protects you from a drive dying, not from deleting the wrong folder, so keep a copy of anything you'd miss somewhere else before the last two steps.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 7
- Takes
- One weekend, then a long day
- Skill level
- Intermediate (months of practice)
- Cost
- Moderate (under $100)
- Supplies
- You need some
- Where
- At home
- Other people
- On your own
Requirements
-
1
Pick the machine and two drives of the same size. Used drives are fine as long as the SMART data is clean. Buying two different brands is a good habit, because they tend to fail at different times. Take a photo of the machine and the drives, with a screenshot of the SMART health on both. Photo
-
2
Build a mirror with mdadm, ZFS, Btrfs or your NAS OS's wizard. TrueNAS, OpenMediaVault and Unraid all have a click-through for this. On plain Linux, an mdadm RAID 1 is one command. Take a screenshot of the array showing two drives, healthy and mirrored. Photo
-
3
Share a folder over SMB and open it from two different devices. A laptop and a phone, or Windows and a Mac, both work. Create one user per person rather than one shared password. Film a file saved from one device appearing on the other. Video
-
4
Set up SMART monitoring with a notification when a drive starts to degrade. Use smartd on Linux, or the alerts page in your NAS OS. Send a test alert to make sure it reaches you. Take a screenshot of the test message. Photo
-
5
Copy at least 100 GB onto it and measure the transfer speed. Photos, music and old projects are good candidates. Over gigabit wire, expect around 100 MB per second, and over Wi-Fi expect less. Take a screenshot of a large transfer with the speed showing. Photo
-
6
Pull one drive while the array is running and keep working. Check first that you have a separate copy of anything you'd miss, because the first time people do this they tend to learn something. Use a hot-swap bay if you have one, or power down, pull the drive and power up, which shows the same thing. Open a file that was already there and save a new one. Film the drive coming out, the status going to degraded, and the new file being saved. Video
-
7
Put a replacement in, time the rebuild, and write the number down. The drive you pulled, wiped clean, or a spare drive both work. A 4 TB mirror rebuilds in four to eight hours and bigger drives take a day, so start it in the morning. Take a screenshot of the array healthy again with the hours and minutes written on it, because that number is how long your next real failure will take. Photo