source: gpfs_3.1_ker2.6.20/lpp/mmfs/samples/nfscluster/mmQuorumLossExit @ 214

Last change on this file since 214 was 16, checked in by rock, 17 years ago
  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/ksh
2# @(#)81        1.4  src/avs/fs/mmfs/samples/nfscluster/mmQuorumLossExit, mmfs, avs_rgpfs24, rgpfs240610b 3/1/06 10:12:33
3##############################################################################
4#
5# When properly installed, this script is invoked by the GPFS daemon during
6# quorum loss.
7#
8# You can also use this script to add any commands to clean up local state
9# before the GPFS daemon restarts.
10#
11# To activate the code:
12#
13#   a) edit this script and make the appropriate changes
14#   b) copy this script to /var/mmfs/etc/mmQuorumLossExit
15#   c) ensure this script is executable (chmod +x /var/mmfs/etc/mmfsdown)
16#
17##############################################################################
18
19# Process the parameters.
20status=$1  # Possible values are "active" or "down".
21
22if [ ! -f /var/mmfs/etc/nfsfuncs ]; then
23    echo "$0: Can't find NFS functions in /var/mmfs/etc"
24    exit 0
25fi
26. /var/mmfs/etc/nfsfuncs
27
28# Wait before terminating mmfsd since this script is called synchronously from mmfsd
29killmmfs() {
30    sleep 10
31    killall -9 mmfsd
32}
33
34nfsmonitor -e
35stop.nfs
36killmmfs &
37
38return
Note: See TracBrowser for help on using the repository browser.