X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fcobd.sh;h=983df937c2e853711e3de4f733e9ec76abdf39a9;hb=a2a0746305449dbd925879b14dc2c0d6040bb8bf;hp=3f6521a19354812f212b650cc6ff0d5d50cd8d15;hpb=32e3f2e70b8e7de4fd2bcdbcfbc1ccac74c609e6;p=fs%2Flustre-release.git diff --git a/lustre/tests/cobd.sh b/lustre/tests/cobd.sh index 3f6521a..983df93 100755 --- a/lustre/tests/cobd.sh +++ b/lustre/tests/cobd.sh @@ -6,34 +6,25 @@ config=${1:-$(basename $0 .sh)}.xml LMC=${LMC:-../utils/lmc -m $config} TMP=${TMP:-/tmp} -MDSDEV=$TMP/mds1 +MDSDEV=${MDSDEV:-$TMP/mds1-`hostname`} MDSSIZE=50000 +FSTYPE=${FSTYPE:-ext3} -OSTDEV=$TMP/ost1 +OSTDEV=${OSTDEV:-$TMP/ost1-`hostname`} OSTSIZE=200000 -kver=`uname -r | cut -d "." -f 1,2` - -case $kver in - 2.4) FSTYPE="--fstype=extN" ;; - 2.5) FSTYPE="--fstype=ext3" ;; - *) echo "Kernel version $kver not supported" - exit 1 - ;; -esac - rm -f $config # create nodes ${LMC} --add node --node localhost || exit 10 ${LMC} --add net --node localhost --nid localhost --nettype tcp || exit 11 # configure mds server -${LMC} --add mds --node localhost --mds mds1 --dev $MDSDEV --size $MDSSIZE || exit 20 +${LMC} --add mds --node localhost --mds mds1 --fstype $FSTYPE --dev $MDSDEV --size $MDSSIZE || exit 20 # configure ost -${LMC} --add ost --node localhost --obd obd1 --obdtype obdecho || exit 30 +${LMC} --add ost --node localhost --obd obd1 --fstype $FSTYPE --obdtype obdecho || exit 30 # configure ost -${LMC} --add ost --node localhost --obd obd2 --obdtype obdecho || exit 30 +${LMC} --add ost --node localhost --obd obd2 --fstype $FSTYPE --obdtype obdecho || exit 30 ${LMC} --add cobd --node localhost --real_obd obd1 --cache_obd obd2