#!/bin/sh SIZE=5g COUNT=0 VERIFY="-+d" FILE=/mnt/lustre/test.$$ [ $1 ] && SIZE=$1 rm -f endiozone while date; do echo "Test #$COUNT" iozone $VERIFY -r 64 -i 0 -i 1 -f $FILE -s $SIZE 2>&1 || exit $? COUNT=`expr $COUNT + 1` [ -f endiozone ] && rm endiozone && exit 0 done | tee /tmp/iozone.log