]> granicus.if.org Git - zfs/commit
ZTS: Add auto-spare tests
authorDavid Quigley <dpquigl@users.noreply.github.com>
Mon, 23 Oct 2017 18:42:37 +0000 (12:42 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 23 Oct 2017 18:42:37 +0000 (11:42 -0700)
commitd9daa7abcf04f75ba013ec954c4f2d4854ba1cbc
tree794726af3d7e4b9f28e1a930f39725bb8a83a7a2
parentf8cd871a01a5e38e35cb4d44768dce09265265f4
ZTS: Add auto-spare tests

The ZED is expected to automatically kick in a hot spare device
when there's one available in the pool and a sufficient number of
read errors have been encountered.  Use zinject to simulate the
failure condition and verify the hot spare is used.

auto_spare_001_pos.ksh: read IO errors, the vdev is FAULTED
auto_spare_002_pos.ksh: read CHECKSUM errors, the vdev is DEGRADE

Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: David Quigley <david.quigley@intel.com>
Closes #6280
tests/runfiles/linux.run
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/fault/Makefile.am
tests/zfs-tests/tests/functional/fault/auto_spare_001_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/fault/auto_spare_002_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/fault/fault.cfg