From 9636aebde0ae4e06ec118a1e182e71090a68ecae Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 30 Jan 2004 18:36:41 +0000 Subject: [PATCH] Make the debugging more clear as to which OST/client it is for (hard to see otherwise with multiple OSTs on one node). Take pending writes into account in totals. Don't spew errors when hit. --- lustre/tests/oos.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/tests/oos.sh b/lustre/tests/oos.sh index 75afd5d..a780671 100755 --- a/lustre/tests/oos.sh +++ b/lustre/tests/oos.sh @@ -39,12 +39,16 @@ if [ "`grep -c 'No space left on device' $LOG`" -ne 1 ]; then SUCCESS=0 fi +# flush cache to OST(s) so avail numbers are correct +sync; sleep 1 ; sync + for AVAIL in /proc/fs/lustre/osc/OSC*MNT*/kbytesavail; do [ `cat $AVAIL` -lt 400 ] && OSCFULL=full done if [ -z "$OSCFULL" ]; then echo "no OSTs are close to full" grep "[0-9]" /proc/fs/lustre/osc/OSC*MNT*/{kbytesavail,cur*} + SUCCESS=0 fi RECORDSOUT=`grep "records out" $LOG | cut -d + -f1` -- 1.8.3.1