From 9571538f80928987bcc7c0717c5072d0ec6d6a76 Mon Sep 17 00:00:00 2001 From: rread Date: Thu, 19 Dec 2002 05:56:34 +0000 Subject: [PATCH] * add support for COBD * add --lustre and --portals to lustre usage * remove obsolete lmc usage; hopefully this will get replaced --- lustre/tests/cobd.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 lustre/tests/cobd.sh diff --git a/lustre/tests/cobd.sh b/lustre/tests/cobd.sh new file mode 100755 index 0000000..3f6521a --- /dev/null +++ b/lustre/tests/cobd.sh @@ -0,0 +1,41 @@ +#!/bin/bash + + +config=${1:-$(basename $0 .sh)}.xml + +LMC=${LMC:-../utils/lmc -m $config} +TMP=${TMP:-/tmp} + +MDSDEV=$TMP/mds1 +MDSSIZE=50000 + +OSTDEV=$TMP/ost1 +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 + +# configure ost +${LMC} --add ost --node localhost --obd obd1 --obdtype obdecho || exit 30 +# configure ost +${LMC} --add ost --node localhost --obd obd2 --obdtype obdecho || exit 30 + +${LMC} --add cobd --node localhost --real_obd obd1 --cache_obd obd2 + +# create client config +# ${LMC} -m $config --add mtpt --node localhost --path /mnt/lustre --mds mds1 --obd obd1 || exit 40 -- 1.8.3.1