Whamcloud - gitweb
Add some variables to the config scripts so they are easier to customize.
[fs/lustre-release.git] / lustre / tests / uml.sh
1 #!/bin/bash
2
3 config=${1-uml.xml}
4 LMC=${LMC-../utils/lmc}
5 TMP=${TMP:-/tmp}
6
7 MDSDEV=$TMP/mds1
8 MDSSIZE=50000
9
10 OSTDEV1=$TMP/ost1
11 OSTDEV2=$TMP/ost2
12 OSTSIZE=100000
13
14 MDSNODE=uml1
15 OSTNODE=uml2
16 CLIENT=uml3
17
18 # create nodes
19 ${LMC} -o $config --node $MDSNODE --net $MDSNODE tcp || exit 1
20 ${LMC} -m $config --node $OSTNODE --net $OSTNODE tcp || exit 2
21 ${LMC} -m $config --node $CLIENT --net $CLIENT tcp || exit 3
22
23 # configure mds server
24 ${LMC} -m $config --format --node $MDSNODE --mds mds1 $MDSDEV $MDSSIZE ||exit 10
25
26 # configure ost
27 ${LMC} -m $config  --lov lov1 mds1 65536 0 0 || exit 20
28 ${LMC} -m $config --node $OSTNODE --lov lov1 --ost $OSTDEV1 $OSTSIZE || exit 21
29 ${LMC} -m $config --node $OSTNODE --lov lov1 --ost $OSTDEV2 $OSTSIZE || exit 22
30
31 # create client config
32 ${LMC} -m $config  --node $CLIENT --mtpt /mnt/lustre mds1 lov1 || exit 30
33