Battle testing data integrity verification with ZFS and Btrfs
In this article I share the results of a home-lab experiment in which I threw some different problems at ZFS, Btrfs and mdadm+dm-integrity in a RAID-5 setup. Let’s take a look at the ZFS documentation from ORACLE regarding the Transactional Semantics:
This is confirmed by a look at the status of the pool:
And from the clients point of view:
Now I want to simulate a simple drive failure. ZFS will immediately and automatically begin the resilvering of the pool:
After about 3 minutes the pool is back up and ready for usage:
And from the client:
Just to make sure all data has been resilvered without any errors during writing I’ll perform a scrub and validate that everything is alright:
And about 3 minutes after the scrub is finished:
Since ZFS has only restored the used data blocks, not the entire disk, the procedure was very was as was the scrubbing.
Source: www.unixsheikh.com