#!/bin/ksh # @(#)68 1.8.1.3 src/avs/fs/mmfs/samples/nfscluster/stop.nfs, mmfs, avs_rgpfs24, rgpfs24s006a 8/17/06 17:09:22 # # stop.nfs # if [ ! -f /var/mmfs/etc/nfsfuncs ]; then echo "$0: Can't find NFS functions in /var/mmfs/etc" exit 0 fi . /var/mmfs/etc/nfsfuncs [ $hardMount -eq 1 ] && debuglog rpc.nfsd 0 if [ $iptakeover -eq 1 ]; then # bring down all nfs ip address nfsIPs=$(mmgetifconf | awk '{print $2}') for ip in $nfsIPs; do found=$(echo $(getAllNfsIPs) | grep -wo $ip) [ -n "$found" ] && ifDown $ip done fi # Stop nfsd et al. nfsService stop # Remove GPFS symlinks for shared sm data unshareSmDir