How to inject faults in a mirrored pool configured with files as vdevs
Hi all,
I'm doing some tests/configurations...I was testing the usage of files to create easily a mirrored pool and easily inject faults on it.
I created ZFSTST pool using two 100m files /export/device1 and /export/device2:
Then I verified the different behaviour : removing one of the file, renaming it or corrupting one of them with dd:
After the fault injection I ran some I/O workload to run out-of-space and I ran a scrub to force a check.
Well only the dd was able to put the pool in DEGRADED and detect the unavailability of the corrupted device.