X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Freplay-single-lmv.sh;h=d66190d6c80d3ec0f68ad008b919337ba049ab07;hb=fbdd08b958f974dd4d40a518ea3db8279428f013;hp=fbc53c97a8d3e3c5f5ab83b3ba2a75254ac765f5;hpb=d2d56f38da01001c92a09afc6b52b5acbd9bc13c;p=fs%2Flustre-release.git diff --git a/lustre/tests/replay-single-lmv.sh b/lustre/tests/replay-single-lmv.sh index fbc53c9..d66190d 100755 --- a/lustre/tests/replay-single-lmv.sh +++ b/lustre/tests/replay-single-lmv.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e #set -v @@ -21,7 +21,7 @@ SETUP=${SETUP:-"setup"} CLEANUP=${CLEANUP:-"stopall"} if [ "$ONLY" == "cleanup" ]; then - sysctl -w lnet.debug=0 || true + lctl set_param debug=0 || true $CLEANUP exit 0 fi @@ -39,6 +39,11 @@ fi mkdir -p $DIR +# LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels +if [ $LINUX_VERSION_CODE -lt $(version_code 2.6.33) ]; then + sync + do_facet $SINGLEMDS sync +fi test_0() { replay_barrier mds1