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