Whamcloud - gitweb
- unland b_fid to HEAD
[fs/lustre-release.git] / lustre / tests / cobd.sh
1 #!/bin/bash
2
3
4 config=${1:-$(basename $0 .sh)}.xml
5
6 LMC=${LMC:-../utils/lmc -m $config}
7 TMP=${TMP:-/tmp}
8
9 MDSDEV=${MDSDEV:-$TMP/mds1-`hostname`}
10 MDSSIZE=50000
11 FSTYPE=${FSTYPE:-ext3}
12
13 OSTDEV=${OSTDEV:-$TMP/ost1-`hostname`}
14 OSTSIZE=200000
15
16 rm -f $config
17 # create nodes
18 ${LMC} --add node --node localhost || exit 10
19 ${LMC} --add net --node  localhost --nid localhost --nettype tcp || exit 11
20
21 # configure mds server
22 ${LMC}  --add mds  --node localhost --mds mds1 --fstype $FSTYPE --dev $MDSDEV --size $MDSSIZE || exit 20
23
24 # configure ost
25 ${LMC} --add ost --node localhost --obd obd1 --fstype $FSTYPE --obdtype obdecho || exit 30
26 # configure ost
27 ${LMC} --add ost --node localhost --obd obd2 --fstype $FSTYPE --obdtype obdecho || exit 30
28
29 ${LMC} --add cobd --node localhost --real_obd obd1 --cache_obd obd2
30
31 # create client config
32 # ${LMC} -m $config --add mtpt --node localhost --path /mnt/lustre --mds mds1 --obd obd1 || exit 40