Date: Tue, 19 Dec 2017 09:47:16 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r326965 - user/pho/stress2/misc Message-ID: <201712190947.vBJ9lGq9028811@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Tue Dec 19 09:47:16 2017 New Revision: 326965 URL: https://svnweb.freebsd.org/changeset/base/326965 Log: Kill verbose console logging and added a file system check. Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/misc/graid1.sh Modified: user/pho/stress2/misc/graid1.sh ============================================================================== --- user/pho/stress2/misc/graid1.sh Tue Dec 19 04:13:22 2017 (r326964) +++ user/pho/stress2/misc/graid1.sh Tue Dec 19 09:47:16 2017 (r326965) @@ -49,6 +49,9 @@ for u in $md1 $md2 $md3; do done gmirror load > /dev/null 2>&1 && unload=1 +old=`sysctl -n kern.geom.mirror.debug` +sysctl kern.geom.mirror.debug=-1 | grep -q -- -1 || + sysctl kern.geom.mirror.debug=$old > /dev/null gmirror label -v -b split -s 2048 data /dev/md$md1 /dev/md$md2 \ /dev/md$md3 > /dev/null || exit 1 [ -c /dev/mirror/data ] || exit 1 @@ -63,7 +66,8 @@ su $testuser -c 'cd ..; ./run.sh marcus.cfg' while mount | grep $mntpoint | grep -q /mirror/; do umount $mntpoint || sleep 1 done -gmirror stop data || s=1 +checkfs /dev/mirror/data || s=1 +gmirror stop data || s=2 gmirror destroy data 2>/dev/null [ $unload ] && gmirror unload
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712190947.vBJ9lGq9028811>