Whamcloud - gitweb
6cdfe7caa6b29dbff7f4e38f6f2d1a7e7de5b47e
[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 OSTDEV3=$TMP/ost3
14 OSTSIZE=100000
15
16 STRIPE_BYTES=65536
17 STRIPES_PER_OBJ=2       # 0 means stripe over all OSTs
18
19 # create nodes
20 ${LMC} -o $config --node localhost --net localhost tcp || exit 1
21
22 # configure mds server
23 ${LMC} -m $config --format --node localhost --mds mds1 $MDSDEV $MDSSIZE || exit 10
24
25 # configure ost
26 ${LMC} -m $config --lov lov1 mds1 $STRIPE_BYTES $STRIPES_PER_OBJ 0 || exit 20
27 ${LMC} -m $config --node localhost --lov lov1 --ost $OSTDEV1 $OSTSIZE || exit 21
28 ${LMC} -m $config --node localhost --lov lov1 --ost $OSTDEV2 $OSTSIZE || exit 22
29 ${LMC} -m $config --node localhost --lov lov1 --ost $OSTDEV3 $OSTSIZE || exit 23
30
31 # create client config
32 ${LMC} -m $config  --node localhost --mtpt /mnt/lustre mds1 lov1 || exit 30