From 6f97b637721db0b8c73127d681deb4eb594864e9 Mon Sep 17 00:00:00 2001 From: nathan <nathan> Date: Thu, 31 May 2007 18:56:41 +0000 Subject: [PATCH] add some debug detail --- lustre/tests/oos.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lustre/tests/oos.sh b/lustre/tests/oos.sh index 31ac3abd03..21db55cc7e 100755 --- a/lustre/tests/oos.sh +++ b/lustre/tests/oos.sh @@ -27,7 +27,7 @@ ORIGFREE=`cat /proc/fs/lustre/llite/*/kbytesavail | head -n 1` MAXFREE=${MAXFREE:-$((400000 * $STRIPECOUNT))} if [ $ORIGFREE -gt $MAXFREE ]; then echo "skipping out-of-space test on $OSC" - echo "reports ${ORIGFREE}kB free, more tham MAXFREE ${MAXFREE}kB" + echo "reports ${ORIGFREE}kB free, more than MAXFREE ${MAXFREE}kB" echo "increase $MAXFREE (or reduce test fs size) to proceed" exit 0 fi @@ -54,8 +54,10 @@ sync; sleep 1 ; sync for OSC in /proc/fs/lustre/osc/*-osc-*; do AVAIL=`cat $OSC/kbytesavail` - GRANT=`cat $OSC/cur_grant_bytes` - [ $(($AVAIL - $GRANT / 1024)) -lt 400 ] && OSCFULL=full + GRANT=$((`cat $OSC/cur_grant_bytes` / 1024)) + echo -n "$(basename $OSC) avl=$AVAIL grnt=$GRANT diff=$(($AVAIL - $GRANT))" + [ $(($AVAIL - $GRANT)) -lt 400 ] && OSCFULL=full && echo -n " FULL" + echo " " done if [ -z "$OSCFULL" ]; then @@ -78,7 +80,6 @@ fi #lctl debug_daemon stop rm -f $OOS -sync; sleep 1; sync if [ $SUCCESS -eq 1 ]; then echo "Success!" -- GitLab