From c3d36069ca342a2f1ee97f983e7c49ae540688e5 Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Mon, 16 Apr 2012 09:53:09 +0800 Subject: [PATCH] LU-482 test: sync MDS before first replay test Maloo autotest system often fails on mountdata lost on MDS, the cause may be related with LMV and hyporvisor usage. Sync MDS before first replay to flush all files on MDS. Signed-off-by: Lai Siyao Change-Id: I2c0fe37d77b05c81e567c70ef5bffca9eae84632 Reviewed-on: http://review.whamcloud.com/2545 Reviewed-by: Andreas Dilger Reviewed-by: Niu Yawei Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/replay-dual.sh | 3 ++- lustre/tests/replay-single-lmv.sh | 3 ++- lustre/tests/replay-single.sh | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lustre/tests/replay-dual.sh b/lustre/tests/replay-dual.sh index 6817b4f..e2eaa1b 100755 --- a/lustre/tests/replay-dual.sh +++ b/lustre/tests/replay-dual.sh @@ -37,7 +37,8 @@ rm -rf $DIR/[df][0-9]* # LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels if [ $LINUX_VERSION_CODE -lt $(kernel_version 2 6 33) ]; then - sync; sleep 5; sync; sleep 5; sync; sleep 5 + sync + do_facet $SINGLEMDS sync fi test_0a() { diff --git a/lustre/tests/replay-single-lmv.sh b/lustre/tests/replay-single-lmv.sh index 3d8501f..1a50085 100755 --- a/lustre/tests/replay-single-lmv.sh +++ b/lustre/tests/replay-single-lmv.sh @@ -41,7 +41,8 @@ mkdir -p $DIR # LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels if [ $LINUX_VERSION_CODE -lt $(kernel_version 2 6 33) ]; then - sync; sleep 5; sync; sleep 5; sync; sleep 5 + sync + do_facet $SINGLEMDS sync fi test_0() { diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 0ee8c0c..cac6ea4 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -37,7 +37,8 @@ rm -rf $DIR/[df][0-9]* # LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels if [ $LINUX_VERSION_CODE -lt $(kernel_version 2 6 33) ]; then - sync; sleep 5; sync; sleep 5; sync; sleep 5 + sync + do_facet $SINGLEMDS sync fi test_0a() { # was test_0 -- 1.8.3.1