Whamcloud - gitweb
- merge 0.7rc1 from b_devel to HEAD (20030612 merge point)
[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=$TMP/mds1
10 MDSSIZE=50000
11
12 OSTDEV=$TMP/ost1
13 OSTSIZE=200000
14
15 rm -f $config
16 # create nodes
17 ${LMC} --add node --node localhost || exit 10
18 ${LMC} --add net --node  localhost --nid localhost --nettype tcp || exit 11
19
20 # configure mds server
21 ${LMC}  --add mds  --node localhost --mds mds1 --dev $MDSDEV --size $MDSSIZE || exit 20
22
23 # configure ost
24 ${LMC} --add ost --node localhost --obd obd1 --obdtype obdecho || exit 30
25 # configure ost
26 ${LMC} --add ost --node localhost --obd obd2 --obdtype obdecho || exit 30
27
28 ${LMC} --add cobd --node localhost --real_obd obd1 --cache_obd obd2
29
30 # create client config
31 # ${LMC} -m $config --add mtpt --node localhost --path /mnt/lustre --mds mds1 --obd obd1 || exit 40