2013-01-29 18:53:19 +00:00
|
|
|
SUBDIRS = zpool-config zpios-test zpios-profile
|
2010-09-04 20:26:23 +00:00
|
|
|
|
2014-10-09 17:22:59 +00:00
|
|
|
EXTRA_DIST = dkms.mkconf dkms.postbuild kmodtool zfs2zol-patch.sed cstyle.pl
|
2013-02-17 20:10:17 +00:00
|
|
|
|
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@
|
2013-02-08 18:01:41 +00:00
|
|
|
dist_pkgdata_SCRIPTS = \
|
2010-09-04 20:26:23 +00:00
|
|
|
$(top_builddir)/scripts/common.sh \
|
|
|
|
$(top_srcdir)/scripts/zconfig.sh \
|
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.
2010-09-28 23:32:12 +00:00
|
|
|
$(top_srcdir)/scripts/zfault.sh \
|
2015-06-26 00:00:39 +00:00
|
|
|
$(top_srcdir)/scripts/ziltest.sh \
|
2014-02-05 00:10:38 +00:00
|
|
|
$(top_srcdir)/scripts/zimport.sh \
|
2010-09-04 20:26:23 +00:00
|
|
|
$(top_srcdir)/scripts/zfs.sh \
|
|
|
|
$(top_srcdir)/scripts/zpool-create.sh \
|
|
|
|
$(top_srcdir)/scripts/zpios.sh \
|
|
|
|
$(top_srcdir)/scripts/zpios-sanity.sh \
|
2012-02-04 20:08:53 +00:00
|
|
|
$(top_srcdir)/scripts/zpios-survey.sh \
|
|
|
|
$(top_srcdir)/scripts/smb.sh
|
2010-09-04 20:26:23 +00:00
|
|
|
|
|
|
|
ZFS=$(top_builddir)/scripts/zfs.sh
|
|
|
|
ZCONFIG=$(top_builddir)/scripts/zconfig.sh
|
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.
2010-09-28 23:32:12 +00:00
|
|
|
ZFAULT=$(top_builddir)/scripts/zfault.sh
|
2014-02-05 00:10:38 +00:00
|
|
|
ZIMPORT=$(top_builddir)/scripts/zimport.sh
|
2010-09-04 20:26:23 +00:00
|
|
|
ZTEST=$(top_builddir)/cmd/ztest/ztest
|
|
|
|
ZPIOS_SANITY=$(top_builddir)/scripts/zpios-sanity.sh
|
|
|
|
|
2010-08-26 18:22:58 +00:00
|
|
|
check:
|
2010-11-11 18:17:02 +00:00
|
|
|
@$(ZFS) -u
|
2010-08-26 18:22:58 +00:00
|
|
|
@echo
|
|
|
|
@echo -n "===================================="
|
|
|
|
@echo -n " ZTEST "
|
|
|
|
@echo "===================================="
|
|
|
|
@echo
|
|
|
|
@$(ZFS)
|
|
|
|
@$(ZTEST) -V
|
|
|
|
@$(ZFS) -u
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
@echo -n "==================================="
|
|
|
|
@echo -n " ZCONFIG "
|
|
|
|
@echo "==================================="
|
|
|
|
@echo
|
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.
2010-09-28 23:32:12 +00:00
|
|
|
@$(ZCONFIG) -c
|
|
|
|
@echo
|
|
|
|
@echo -n "==================================="
|
|
|
|
@echo -n " ZFAULT "
|
|
|
|
@echo "==================================="
|
|
|
|
@echo
|
|
|
|
@$(ZFAULT) -c
|
2010-08-26 18:22:58 +00:00
|
|
|
@echo
|
2010-08-26 18:58:00 +00:00
|
|
|
@echo -n "===================================="
|
|
|
|
@echo -n " ZPIOS "
|
|
|
|
@echo "===================================="
|
|
|
|
@echo
|
|
|
|
@$(ZFS)
|
|
|
|
@$(ZPIOS_SANITY)
|
|
|
|
@$(ZFS) -u
|
|
|
|
@echo
|