When I first experimented with four NVMe drives for my Raspberry Pi 5 NAS, the choice was not just SSD speed or parity efficiency. I wanted the system to distinguish correctly stored data from damaged data, and to provide a sensible recovery path when a member failed. My original notes explored ext4 on Linux software RAID, Btrfs RAID5 and ZFS RAIDZ. This follow-up to the original Raspberry Pi 5 NVMe NAS setup guide consolidates the filesystem and recovery notes into one practical explanation.
1. The warning that changed the storage decision
During the original evaluation, btrfs-progs v6.2 printed a warning that RAID5/6 had known problems and was strongly discouraged outside testing or evaluation. The recorded operation targeted the four NVMe devices. I am reproducing the diagnostic lesson, not the formatting command: filesystem creation is destructive, and these device names are not safe to reuse on another machine.
The warning was directly relevant because my intended layout used three drives’ worth of data capacity plus single parity. I wanted a production-oriented storage design rather than a parity configuration whose failure behavior I had not qualified. That pushed the evaluation toward ZFS RAIDZ1. It does not establish that every version of Btrfs is unreliable; check the current Btrfs feature status for the exact kernel and layout.
2. Redundancy and data integrity solve different problems
| Storage design | Data-integrity approach | Redundancy and recovery considerations |
|---|---|---|
| ext4 on mdadm RAID | ext4 supports metadata checksums; ordinary file data is not generally checksummed end to end by ext4 | mdadm can reconstruct a failed member; a parity inconsistency does not necessarily identify which data block is correct |
| Btrfs | Data and metadata checksums in normal checksummed mode; snapshots and scrub | Repair depends on a valid redundant copy; parity profiles have version-specific caveats |
| ZFS | Checksums and copy-on-write datasets; scrub and snapshots | Mirrors or RAIDZ provide alternate data or parity for repair within their fault tolerance |
A RAID array does not automatically tell the filesystem that a readable block contains the right bytes. Conversely, a checksum can detect wrong bytes without being able to recreate the original. Repair requires sufficient valid information. ZFS combines these mechanisms at the pool level, which suited my requirement. See OpenZFS’s checksum explanation.
3. Flash storage does not eliminate silent corruption
NVMe is a storage protocol, not a guarantee of retention, endurance or controller reliability. The original design favored DRAM-equipped drives such as the Micron 3400 because I was evaluating sustained working-storage behavior. A high TBW rating is relevant to write endurance but does not prove data retention or reliability in every operating condition. Drive model, temperature, firmware, workload, wear and time unpowered all matter.
Corruption can originate in media, memory, controllers or transport. Files that are never read may remain damaged unnoticed. Periodic verification is useful even for SSDs. Merely powering on a stored SSD is not a verified method of refreshing every block, and I would not publish a universal refresh interval from the old notes. Keep a separate readable copy and check it.
4. The distinction between a scrub and a resilver
| Operation | Purpose | What it does not establish |
|---|---|---|
| Scrub | Verify stored blocks and repair errors when redundancy permits | Does not create an external backup |
| Resilver | Reconstruct data required on a replacement or stale device | Does not necessarily verify every unrelated block |
| Snapshot | Preserve a point-in-time dataset state | Does not survive loss of the whole pool by itself |
| Replication/backup | Keep a recoverable independent copy | Only trustworthy after successful restore verification |
The OpenZFS operations guide describes the different scan scopes. A scrub primarily reads and verifies data, with writes possible when correcting damage; do not assume it is equivalent to rewriting the entire SSD or that it causes no wear. It consumes I/O and can compete with active clients. Schedule maintenance based on the workload and inspect whether existing OMV jobs already provide it.
5. A read-only health check for the existing NAS
zpool status -v
zpool list
zpool iostat -v 1 5
zfs list -o name,used,available,mountpoint
lsblk -o NAME,SIZE,MODEL,TYPE,MOUNTPOINTS
Read the pool’s state, device error counters, scan progress and any named damaged files before deciding on an action. Identify devices using stable identities and physical inventory, not just a transient /dev/nvme number. Check drive health with the installed NVMe or SMART tools and preserve the results. A nonzero checksum count is a diagnostic signal; clearing counters does not repair its cause.
6. Recovery planning for a failed member
My original draft proposed deliberately removing an NVMe member and rebuilding it. I have not established a qualified failure-and-recovery test from those notes. I would not ask readers to remove a live production drive or copy a pool-replacement command with a recorded device identifier.
- Record the pool status and identify the exact failing component. Confirm what the topology can tolerate and whether there are other degraded members.
- Verify an independent backup is available before replacing hardware. If data is already unrepairable, prioritize recovery rather than additional experiments.
- Follow the enclosure and adapter’s power-down or supported hot-swap procedure. An M.2 adapter is not automatically hot-swappable.
- Use the documented OpenZFS replacement procedure appropriate to the actual topology, matching capacity and stable device identity. Monitor reconstruction and avoid unnecessary competing work.
- Recheck pool status, error counters and application-level file access after the rebuild. Verify affected files from an independent copy if the pool reports permanent errors.
For hands-on practice, build a disposable test pool on explicitly designated scratch media or a suitably isolated lab. Record the baseline, fault, recovery and file-checksum results. Do not treat this checklist as evidence that the procedure has been completed on my production NAS.
7. Make snapshots part of a recovery system, not the entire system
The original NAS notes describe scheduled snapshots and scrubs. A snapshot retains prior block references, so it is useful when someone deletes or overwrites a file, but it occupies pool space as changes accumulate. It is not independent protection against controller loss, a pool-wide fault, or an attacker with permission to destroy snapshots. A retention job must target the intended dataset and preserve needed restore points; avoid copying a broad automatic deletion pipeline.
OpenZFS also supports sending snapshot streams to an independent receiver; see the replication documentation. Alternatively, a versioned file backup can meet the recovery objective. Keep credentials and administrative access separate where practical. Test the restore into a safe destination and check actual files, permissions and application behavior.
For a small homelab, I would use an explicit maintenance record: last successful scrub, any read/write/checksum errors, device temperature and health, backup completion, and last tested restore. That is a more useful measure of readiness than the mere presence of RAID or an attractive pool capacity figure.
Conclusion
My decision to use ZFS was a choice about the failure model, not an assertion that it is the best filesystem for every workload. The observed Btrfs parity warning, desired redundancy and preference for integrated data checks shaped the original NAS build. Today the key lesson remains that checksums, fault tolerance and independent backups complement one another. None substitutes for a tested recovery path.
Editorial note: consolidated from the original unpublished filesystem-selection and proposed resilvering notes, with OpenZFS and Btrfs reference checks in December 2026. No new destructive failure test or comparative benchmark was performed for this article.
