3 # llite-group.sh : Cluster Manager service script for Lustre
5 # This must be named llite-<group>.sh, where group is the device
6 # group that is being managed by the cluster manager service.
12 [ -f ${LUSTRE_CFG:=/etc/lustre/lustre.cfg} ] && . ${LUSTRE_CFG}
14 LDAPURL=${LDAPURL:-ldap://localhost}
15 CONFIG=${CONFIG:-test23}
17 LACTIVE=${LACTIVE:-/usr/sbin/lactive}
18 LCONF=${LCONF:-/usr/sbin/lconf}
20 group=`basename $0 .sh| cut -d- -f2`
21 confopt="--ldapurl $LDAPURL --config $CONFIG"
23 [ -z "$group" ] && exit 0
27 [ -d ${STATUS_DIR:=/var/lustre} ] || mkdir -p $STATUS_DIR
30 echo -n "Starting $SERVICE: "
31 python2 $LACTIVE $confopt --group $group --active $node
32 python2 $LCONF -v $confopt
38 echo -n "Shutting down $SERVICE: "
39 python2 $LCONF -v --cleanup --force --failover $confopt
63 echo "Usage: $0 {start|stop|status}"