Whamcloud - gitweb
LU-482 replay-dual test_0a failed
authorNiu Yawei <niu@whamcloud.com>
Wed, 13 Jul 2011 06:20:07 +0000 (23:20 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 30 Nov 2011 14:50:02 +0000 (09:50 -0500)
Running LVM on top of VM hypervisor has the write caching and write
reordering problem for kernels prior to 2.6.33.
This might corrupt the journal or fs metadata and lead to a mount failure
in first replay-dual test being run (typically test_0a).

Adding 10 seconds delay after the mount should be enough for the
changes to be flushed to disk.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Change-Id: I68bcb298f94480b26e506f92b3c018530cfe6106
Reviewed-on: http://review.whamcloud.com/1157
Tested-by: Hudson
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/tests/replay-dual.sh

index e101d7c..8359981 100755 (executable)
@@ -38,6 +38,8 @@ rm -rf $DIR/[df][0-9]*
 
 [ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
 
+sleep 10 # Avert LVM and VM inability to flush caches in pre .33 kernels
+
 test_0a() {
     touch $MOUNT2/$tfile-A # force sync FLD/SEQ update before barrier
     replay_barrier $SINGLEMDS