3 # There are configurations for three machines in this config file: the OST,
4 # the MDS/client, other clients
6 # To start your cluster using the ba-mount.xml file that this produces, first
9 # on the MDS/client, and then run:
10 # > lconf --node client ba-mount.xml
11 # on any other clients.
13 config=${1:-ba-mount.xml}
15 LMC_REAL="${LMC:-../utils/lmc} -m $config"
22 UUIDLIST=${UUIDLIST:-/usr/local/admin/ba-ost/UUID.txt}
27 BATCH=/tmp/lmc-batch.$$
32 [ -f $config ] && rm $config
35 ${LMC} --add net --node $MDS --tcpbuf $TCPBUF --nid $MDS --nettype tcp
36 ${LMC} --add mds --node $MDS --mds mds1 --dev /tmp/mds1 --size 50000
38 OST_UUID=`awk "/$OST / { print \\$3 }" $UUIDLIST`
39 [ "$OST_UUID" ] && OST_UUID="--ostuuid $OST_UUID" || echo "$OST: no UUID"
42 ${LMC} --add net --node $OST --tcpbuf $TCPBUF --nid $OST --nettype tcp
43 ${LMC} --add ost --node $OST --ost ost1 $OST_UUID --dev bluearc
45 # mount point on the MDS/client
46 ${LMC} --add mtpt --node $MDS --path /mnt/lustre --mds mds1 --lov ost1
49 ${LMC} --add net --node client --tcpbuf $TCPBUF --nid '*' --nettype tcp
50 ${LMC} --add mtpt --node client --path /mnt/lustre --mds mds1 --lov ost1
52 $LMC_REAL --batch $BATCH