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