3 config=${1:-mount2.xml}
5 LMC=${LMC:-../utils/lmc}
14 kver=`uname -r | cut -d "." -f 1,2`
17 2.4) FSTYPE="--fstype=extN" ;;
18 2.5) FSTYPE="--fstype=ext3" ;;
19 *) echo "Kernel version $kver not supported"
25 ${LMC} -o $config --node localhost --net localhost tcp || exit 1
27 # configure mds server
28 ${LMC} -m $config --format --node localhost $FSTYPE --mds mds1 $MDSDEV $MDSSIZE || exit 2
31 ${LMC} -m $config --format --node localhost $FSTYPE --ost $OSTDEV $OSTSIZE || exit 3
33 # create client config
34 ${LMC} -m $config --node localhost --mtpt /mnt/lustre1 mds1 OSC_localhost || exit 4
35 ${LMC} -m $config --node localhost --mtpt /mnt/lustre2 mds1 OSC_localhost || exit 4