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} --node $MDS --tcpbuf $TCPBUF --net $MDS tcp
36 ${LMC} --node $MDS --mds mds1 /tmp/mds1 50000
38 OBD_UUID=`awk "/$OST / { print \\$3 }" $UUIDLIST`
39 [ "$OBD_UUID" ] && OBD_UUID="--obduuid=$OBD_UUID" || echo "$OST: no UUID"
42 ${LMC} --node $OST --tcpbuf $TCPBUF --net $OST tcp
43 ${LMC} --node $OST $OBD_UUID --ost bluearc
45 # mount point on the MDS/client
46 ${LMC} --node $MDS --mtpt /mnt/lustre mds1 OSC_$OST
49 ${LMC} --node client --tcpbuf $TCPBUF --net '*' tcp
50 ${LMC} --node client --mtpt /mnt/lustre mds1 OSC_$OST
52 $LMC_REAL --batch $BATCH