Whamcloud - gitweb
merge b_md onto HEAD. as best as I can remember:
[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=100000
10
11 OSTDEV=$TMP/ost1
12 OSTSIZE=400000
13
14 kver=`uname -r | cut -d "." -f 1,2`
15
16 case $kver in
17   2.4) FSTYPE="--fstype=extN"  ;;
18   2.5) FSTYPE="--fstype=ext3"  ;;
19   *) echo "Kernel version $kver not supported"
20      exit 1
21      ;;
22 esac
23
24
25 # create nodes
26 ${LMC} -o $config --node localhost --net localhost tcp || exit 1
27
28 # configure mds server
29 ${LMC} -m $config --format --node localhost $FSTYPE --mds mds1 $MDSDEV $MDSSIZE || exit 2
30
31 # configure ost
32 ${LMC} -m $config --format --node localhost $FSTYPE --ost $OSTDEV $OSTSIZE || exit 3
33
34 # create client config
35 ${LMC} -m $config --node localhost --mtpt /mnt/lustre mds1 OSC_localhost || exit 4