source: gpfs_3.1_ker2.6.20/lpp/mmfs/samples/nfscluster/stop.nfs @ 108

Last change on this file since 108 was 16, checked in by rock, 17 years ago
  • Property svn:executable set to *
File size: 642 bytes
RevLine 
[16]1#!/bin/ksh
2# @(#)68  1.8.1.3  src/avs/fs/mmfs/samples/nfscluster/stop.nfs, mmfs, avs_rgpfs24, rgpfs24s006a 8/17/06 17:09:22
3#
4# stop.nfs
5#
6
7if [ ! -f /var/mmfs/etc/nfsfuncs ]; then
8    echo "$0: Can't find NFS functions in /var/mmfs/etc"
9    exit 0
10fi
11. /var/mmfs/etc/nfsfuncs
12
13[ $hardMount -eq 1 ] && debuglog rpc.nfsd 0
14
15if [ $iptakeover -eq 1 ]; then
16    # bring down all nfs ip address
17    nfsIPs=$(mmgetifconf | awk '{print $2}') 
18    for ip in $nfsIPs; do
19  found=$(echo $(getAllNfsIPs) | grep -wo $ip)
20  [ -n "$found" ] && ifDown $ip
21    done
22fi
23
24# Stop nfsd et al.
25nfsService stop
26
27# Remove GPFS symlinks for shared sm data
28unshareSmDir
Note: See TracBrowser for help on using the repository browser.