Whamcloud - gitweb
LU-482 test: sync MDS before first replay test
authorLai Siyao <laisiyao@whamcloud.com>
Mon, 16 Apr 2012 01:53:09 +0000 (09:53 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Apr 2012 23:40:33 +0000 (19:40 -0400)
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 <laisiyao@whamcloud.com>
Change-Id: I2c0fe37d77b05c81e567c70ef5bffca9eae84632
Reviewed-on: http://review.whamcloud.com/2545
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/replay-dual.sh
lustre/tests/replay-single-lmv.sh
lustre/tests/replay-single.sh

index 6817b4f..e2eaa1b 100755 (executable)
@@ -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() {
index 3d8501f..1a50085 100755 (executable)
@@ -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() {
index 0ee8c0c..cac6ea4 100755 (executable)
@@ -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