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
This commit is contained in:
David Quigley
2017-10-23 12:42:37 -06:00
committed by Brian Behlendorf
parent f8cd871a01
commit d9daa7abcf
6 changed files with 241 additions and 2 deletions
+2 -1
View File
@@ -381,7 +381,8 @@ tests = ['events_001_pos', 'events_002_pos']
tests = ['exec_001_pos', 'exec_002_neg']
[tests/functional/fault]
tests = ['auto_online_001_pos', 'auto_replace_001_pos']
tests = ['auto_online_001_pos', 'auto_replace_001_pos', 'auto_spare_001_pos',
'auto_spare_002_pos.ksh']
[tests/functional/features/async_destroy]
tests = ['async_destroy_001_pos']