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. |
---|
20 | status=$1 # Possible values are "active" or "down". |
---|
21 | |
---|
22 | if [ ! -f /var/mmfs/etc/nfsfuncs ]; then |
---|
23 | echo "$0: Can't find NFS functions in /var/mmfs/etc" |
---|
24 | exit 0 |
---|
25 | fi |
---|
26 | . /var/mmfs/etc/nfsfuncs |
---|
27 | |
---|
28 | # Wait before terminating mmfsd since this script is called synchronously from mmfsd |
---|
29 | killmmfs() { |
---|
30 | sleep 10 |
---|
31 | killall -9 mmfsd |
---|
32 | } |
---|
33 | |
---|
34 | nfsmonitor -e |
---|
35 | stop.nfs |
---|
36 | killmmfs & |
---|
37 | |
---|
38 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.