Whamcloud - gitweb
LU-12458 kernel: kernel update RHEL7.6 [3.10.0-957.21.3.el7]
[fs/lustre-release.git] / lustre / tests / runtests
index b722aca..51f0353 100755 (executable)
@@ -19,13 +19,12 @@ RUNTESTS_SRC=${RUNTESTS_SRC:-"/etc /bin"}
 [ "$COUNT" ] || COUNT=10000
 [ "$SLOW" = "no" ] && COUNT=1000
 
-[ "$MCREATE" ] || MCREATE=mcreate
-
 [ "$MKDIRMANY" ] || MKDIRMANY="createmany -d"
 [ "$RMDIRMANY" ] || RMDIRMANY="unlinkmany -d"
 
 check_and_setup_lustre
 test_1() {
+sleep 5 # let MDS refresh aggregated statfs
 # Include some extra space for the status file
 USED=$(df -P $DIR | awk '{ print $3 }' | tail -n 1)
 
@@ -127,6 +126,7 @@ $RMDIRMANY $DST/d 100 || error "$RMDIRMANY cleanup failed"
 log "done"
 
 wait_delete_completed
+sleep 5 # let MDS refresh aggregated statfs
 NOWUSED=$(($(df -P $DIR | awk '{ print $3 }' | tail -n 1)))
 if [ $(expr $NOWUSED - $USED) -gt 1024 ]; then
        error "Space not all freed: now ${NOWUSED}kB, was ${USED}kB."