summaryrefslogtreecommitdiffstats
path: root/scripts/zpool-config/Makefile.am
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-09-28 16:32:12 -0700
committerBrian Behlendorf <[email protected]>2010-10-12 15:20:03 -0700
commit0ee8118bd31d1c160123d0aac9c55455706d5975 (patch)
tree3ecde46a971389233e729cfe923057987e561f48 /scripts/zpool-config/Makefile.am
parentbaa40d45cbb336765b2f89d934cd9ea690e4f7c9 (diff)
Add zfault zpool configurations and tests
Eleven new zpool configurations were added to allow testing of various failure cases. The first 5 zpool configurations leverage the 'faulty' md device type which allow us to simuluate IO errors at the block layer. The last 6 zpool configurations leverage the scsi_debug module provided by modern kernels. This device allows you to create virtual scsi devices which are backed by a ram disk. With this setup we can verify the full IO stack by injecting faults at the lowest layer. Both methods of fault injection are important to verifying the IO stack. The zfs code itself also provides a mechanism for error injection via the zinject command line tool. While we should also take advantage of this appraoch to validate the code it does not address any of the Linux integration issues which are the most concerning. For the moment we're trusting that the upstream Solaris guys are running zinject and would have caught internal zfs logic errors. Currently, there are 6 r/w test cases layered on top of the 'faulty' md devices. They include 3 writes tests for soft/transient errors, hard/permenant errors, and all writes error to the device. There are 3 matching read tests for soft/transient errors, hard/permenant errors, and fixable read error with a write. Although for this last case zfs doesn't do anything special. The seventh test case verifies zfs detects and corrects checksum errors. In this case one of the drives is extensively damaged and by dd'ing over large sections of it. We then ensure zfs logs the issue and correctly rebuilds the damage. The next test cases use the scsi_debug configuration to injects error at the bottom of the scsi stack. This ensures we find any flaws in the scsi midlayer or our usage of it. Plus it stresses the device specific retry, timeout, and error handling outside of zfs's control. The eighth test case is to verify that the system correctly handles an intermittent device timeout. Here the scsi_debug device drops 1 in N requests resulting in a retry either at the block level. The ZFS code does specify the FAILFAST option but it turns out that for this case the Linux IO stack with still retry the command. The FAILFAST logic located in scsi_noretry_cmd() does no seem to apply to the simply timeout case. It appears to be more targeted to specific device or transport errors from the lower layers. The ninth test case handles a persistent failure in which the device is removed from the system by Linux. The test verifies that the failure is detected, the device is made unavailable, and then can be successfully re-add when brought back online. Additionally, it ensures that errors and events are logged to the correct places and the no data corruption has occured due to the failure.
Diffstat (limited to 'scripts/zpool-config/Makefile.am')
-rw-r--r--scripts/zpool-config/Makefile.am63
1 files changed, 37 insertions, 26 deletions
diff --git a/scripts/zpool-config/Makefile.am b/scripts/zpool-config/Makefile.am
index 0c7e0714b..5af373bec 100644
--- a/scripts/zpool-config/Makefile.am
+++ b/scripts/zpool-config/Makefile.am
@@ -1,31 +1,42 @@
pkglibexecdir = $(libexecdir)/@PACKAGE@/zpool-config
dist_pkglibexec_SCRIPTS = \
- $(top_srcdir)/scripts/zpool-config/dm0-raid0.sh \
- $(top_srcdir)/scripts/zpool-config/dragon-raid0-1x70.sh \
- $(top_srcdir)/scripts/zpool-config/dragon-raid10-35x2.sh \
- $(top_srcdir)/scripts/zpool-config/dragon-raidz2-7x10.sh \
- $(top_srcdir)/scripts/zpool-config/dragon-raidz-7x10.sh \
- $(top_srcdir)/scripts/zpool-config/file-raid0.sh \
- $(top_srcdir)/scripts/zpool-config/file-raid10.sh \
- $(top_srcdir)/scripts/zpool-config/file-raidz2.sh \
- $(top_srcdir)/scripts/zpool-config/file-raidz.sh \
- $(top_srcdir)/scripts/zpool-config/hda-raid0.sh \
- $(top_srcdir)/scripts/zpool-config/lo-raid0.sh \
- $(top_srcdir)/scripts/zpool-config/lo-raid10.sh \
- $(top_srcdir)/scripts/zpool-config/lo-raidz2.sh \
- $(top_srcdir)/scripts/zpool-config/lo-raidz.sh \
- $(top_srcdir)/scripts/zpool-config/md0-raid10.sh \
- $(top_srcdir)/scripts/zpool-config/md0-raid5.sh \
- $(top_srcdir)/scripts/zpool-config/ram0-raid0.sh \
- $(top_srcdir)/scripts/zpool-config/sda-raid0.sh \
- $(top_srcdir)/scripts/zpool-config/supermicro-raid0-1x16.sh \
- $(top_srcdir)/scripts/zpool-config/supermicro-raid10-8x2.sh \
- $(top_srcdir)/scripts/zpool-config/supermicro-raidz2-4x4.sh \
- $(top_srcdir)/scripts/zpool-config/supermicro-raidz-4x4.sh \
- $(top_srcdir)/scripts/zpool-config/x4550-raid0-1x48.sh \
- $(top_srcdir)/scripts/zpool-config/x4550-raid10-24x2.sh \
- $(top_srcdir)/scripts/zpool-config/x4550-raidz2-8x6.sh \
- $(top_srcdir)/scripts/zpool-config/x4550-raidz-8x6.sh
+ $(top_srcdir)/scripts/zpool-config/dm0-raid0.sh \
+ $(top_srcdir)/scripts/zpool-config/dragon-raid0-1x70.sh \
+ $(top_srcdir)/scripts/zpool-config/dragon-raid10-35x2.sh \
+ $(top_srcdir)/scripts/zpool-config/dragon-raidz2-7x10.sh \
+ $(top_srcdir)/scripts/zpool-config/dragon-raidz-7x10.sh \
+ $(top_srcdir)/scripts/zpool-config/file-raid0.sh \
+ $(top_srcdir)/scripts/zpool-config/file-raid10.sh \
+ $(top_srcdir)/scripts/zpool-config/file-raidz2.sh \
+ $(top_srcdir)/scripts/zpool-config/file-raidz.sh \
+ $(top_srcdir)/scripts/zpool-config/hda-raid0.sh \
+ $(top_srcdir)/scripts/zpool-config/lo-raid0.sh \
+ $(top_srcdir)/scripts/zpool-config/lo-raid10.sh \
+ $(top_srcdir)/scripts/zpool-config/lo-raidz2.sh \
+ $(top_srcdir)/scripts/zpool-config/lo-raidz.sh \
+ $(top_srcdir)/scripts/zpool-config/lo-faulty-raid0.sh \
+ $(top_srcdir)/scripts/zpool-config/lo-faulty-raid10.sh \
+ $(top_srcdir)/scripts/zpool-config/lo-faulty-raidz.sh \
+ $(top_srcdir)/scripts/zpool-config/lo-faulty-raidz2.sh \
+ $(top_srcdir)/scripts/zpool-config/lo-faulty-raidz3.sh \
+ $(top_srcdir)/scripts/zpool-config/md0-raid10.sh \
+ $(top_srcdir)/scripts/zpool-config/md0-raid5.sh \
+ $(top_srcdir)/scripts/zpool-config/ram0-raid0.sh \
+ $(top_srcdir)/scripts/zpool-config/scsi_debug-noraid.sh \
+ $(top_srcdir)/scripts/zpool-config/scsi_debug-raid0.sh \
+ $(top_srcdir)/scripts/zpool-config/scsi_debug-raid10.sh \
+ $(top_srcdir)/scripts/zpool-config/scsi_debug-raidz.sh \
+ $(top_srcdir)/scripts/zpool-config/scsi_debug-raidz2.sh \
+ $(top_srcdir)/scripts/zpool-config/scsi_debug-raidz3.sh \
+ $(top_srcdir)/scripts/zpool-config/sda-raid0.sh \
+ $(top_srcdir)/scripts/zpool-config/supermicro-raid0-1x16.sh \
+ $(top_srcdir)/scripts/zpool-config/supermicro-raid10-8x2.sh \
+ $(top_srcdir)/scripts/zpool-config/supermicro-raidz2-4x4.sh \
+ $(top_srcdir)/scripts/zpool-config/supermicro-raidz-4x4.sh \
+ $(top_srcdir)/scripts/zpool-config/x4550-raid0-1x48.sh \
+ $(top_srcdir)/scripts/zpool-config/x4550-raid10-24x2.sh \
+ $(top_srcdir)/scripts/zpool-config/x4550-raidz2-8x6.sh \
+ $(top_srcdir)/scripts/zpool-config/x4550-raidz-8x6.sh
all:
@list='$(dist_pkglibexec_SCRIPTS)'; \