From owner-svn-src-projects@freebsd.org Wed Feb 14 23:58:40 2018 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC152F0824E for ; Wed, 14 Feb 2018 23:58:40 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E04A746A9; Wed, 14 Feb 2018 23:58:40 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8911016D8A; Wed, 14 Feb 2018 23:58:40 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1ENwevD012488; Wed, 14 Feb 2018 23:58:40 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1ENwe3F012487; Wed, 14 Feb 2018 23:58:40 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201802142358.w1ENwe3F012487@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Wed, 14 Feb 2018 23:58:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r329285 - projects/zfsd/head/tests/sys/cddl/zfs/tests/zfsd X-SVN-Group: projects X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: projects/zfsd/head/tests/sys/cddl/zfs/tests/zfsd X-SVN-Commit-Revision: 329285 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2018 23:58:41 -0000 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"