1 # If there are sofs_storage nodes in the cluster (meaning that other
2 # sofs_* nodes will not have direct-attached storage) then scripts
3 # that include this snippet must be run on one of the storage nodes.
4 # Therefore, in the case, this snippet tries to determine if it is
5 # running on the 1st NSD server and, if not, attempts to run the
8 nsd_servers="@@NSD_SERVERS@@"
10 if [ -n "$nsd_servers" -a \
11 "${HOSTNAME%%.*}" != "${nsd_servers%%[.,]*}" ] ; then
12 if [ "${0#/}" != "$0" ] ; then
17 exec ssh "${nsd_servers%%[.,]*}" "$script" "$@"