Whamcloud - gitweb
Just a minor change to make it clear what the LOV config parameters are.
[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 STRIPE_BYTES=65536
16 STRIPES_PER_OBJ=0       # 0 means stripe over all OSTs
17
18 # create nodes
19 ${LMC} -o $config --node localhost --net localhost tcp || exit 1
20
21 # configure mds server
22 ${LMC} -m $config --format --node localhost --mds mds1 $MDSDEV $MDSSIZE || exit 10
23
24 # configure ost
25 ${LMC} -m $config --lov lov1 mds1 $STRIPE_BYTES $STRIPES_PER_OBJ 0 || exit 20
26 ${LMC} -m $config --node localhost --lov lov1 --ost $OSTDEV1 $OSTSIZE || exit 21
27 ${LMC} -m $config --node localhost --lov lov1 --ost $OSTDEV2 $OSTSIZE || exit 22
28
29 # create client config
30 ${LMC} -m $config  --node localhost --mtpt /mnt/lustre mds1 lov1 || exit 30