Date: Wed, 14 Feb 2018 23:58:40 +0000 (UTC) From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r329285 - projects/zfsd/head/tests/sys/cddl/zfs/tests/zfsd Message-ID: <201802142358.w1ENwe3F012487@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802142358.w1ENwe3F012487>