2 # nodelustre - Start and stop Lustre on MCR nodes
3 # Copyright (C) 2002 Cluster File Systems, Inc.
4 # Gord Eagle <gord@clusterfs.com>, 2002-09-10
6 # Set this to the shared config file.
7 MASTER_CONFIG=http://emcri/lustre.xml
8 CONFIG=/etc/lustre/lustre.xml
11 LCONF=/usr/local/cfs/lustre/utils/lconf
16 # Fetch the config file. We can't use --output-document because it
17 # makes Wget ignore timestamping.
18 if test -n "$MASTER_CONFIG"; then
19 (cd `echo "$CONFIG" | sed 's%/[^/]*$%%'` && \
20 $WGET --timestamping "$MASTER_CONFIG") || exit $?
23 # Map all client nodes to the COMPUTE_NODE virtual node.
24 if test -n "$COMPUTE_NODE" && nodeattr compute; then
25 node=" --node $COMPUTE_NODE"
30 # If we're stopping, do the lconf cleanup.
31 if test "$1" = stop; then
37 $LCONF$cleanup$node "$CONFIG"
41 echo "$0 {start|stop}" 1>&2