svn commit: r329285 - projects/zfsd/head/tests/sys/cddl/zfs/tests/zfsd
Alan Somers
asomers at FreeBSD.org
Wed Feb 14 23:58:41 UTC 2018
Author: asomers
Date: Wed Feb 14 23:58:40 2018
New Revision: 329285
URL: https://svnweb.freebsd.org/changeset/base/329285
Log:
Improve reliability of zfsd_replace_003_pos
Sometimes the test would fail because the new devices appear so quickly that
the zpool returns to health with no need to resilver. Force it to resilver
by doing some I/O while the devices are gone.
Sponsored by: Spectra Logic Corp
Modified:
projects/zfsd/head/tests/sys/cddl/zfs/tests/zfsd/zfsd_replace_003_pos.ksh
Modified: projects/zfsd/head/tests/sys/cddl/zfs/tests/zfsd/zfsd_replace_003_pos.ksh
==============================================================================
--- projects/zfsd/head/tests/sys/cddl/zfs/tests/zfsd/zfsd_replace_003_pos.ksh Wed Feb 14 23:52:39 2018 (r329284)
+++ projects/zfsd/head/tests/sys/cddl/zfs/tests/zfsd/zfsd_replace_003_pos.ksh Wed Feb 14 23:58:40 2018 (r329285)
@@ -107,6 +107,10 @@ for type in "raidz2" "mirror"; do
log_fail "Pool $TESTPOOL not listed as DEGRADED"
fi
+ # Do some I/O to ensure that the old vdevs will be out of date
+ log_must $DD if=/dev/random of=/$TESTPOOL/randfile bs=1m count=1
+ log_must $SYNC
+
# Recreate the vdevs in the opposite order
typeset MD0=`$MDCONFIG -a -t vnode -f ${FILE1}`
[ $? -eq 0 ] || atf_fail "Failed to create md device"
More information about the svn-src-projects
mailing list