Whamcloud - gitweb
7278dfa0f3f881a01c3746db11a0dce1c5e22a43
[fs/lustre-release.git] / lustre / tests / local.sh
1
2 #!/bin/bash
3
4 config=${1:-local.xml}
5
6 LMC="${LMC:-../utils/lmc} -m $config"
7 TMP=${TMP:-/tmp}
8
9 MDSDEV=${MDSDEV:-$TMP/mds1}
10 MDSSIZE=${MDSSIZE:-50000}
11
12 OSTDEV=${OSTDEV:-$TMP/ost1}
13 OSTSIZE=${OSTSIZE:-200000}
14 FSTYPE=${FSTYPE:-ext3}
15
16 rm -f $config
17
18 # create nodes
19 ${LMC} --add node --node localhost || exit 10
20 ${LMC} --add net --node  localhost --nid localhost --nettype tcp || exit 11
21
22 # configure mds server
23 ${LMC} --add mds --nspath /mnt/mds_ns  --node localhost --mds mds1  --fstype $FSTYPE --dev $MDSDEV --size $MDSSIZE || exit 20
24
25 # configure ost
26 ${LMC} --add ost --nspath /mnt/ost_ns --node localhost --ost ost1  --fstype $FSTYPE --dev $OSTDEV --size  $OSTSIZE || exit 30
27
28 # create client config
29 ${LMC} --add mtpt --node localhost --path /mnt/lustre --mds mds1 --ost ost1 || exit 40