Last change
on this file since 86 was
16,
checked in by rock, 17 years ago
|
|
-
Property svn:executable set to
*
|
File size:
642 bytes
|
Line | |
---|
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 | |
---|
7 | if [ ! -f /var/mmfs/etc/nfsfuncs ]; then |
---|
8 | echo "$0: Can't find NFS functions in /var/mmfs/etc" |
---|
9 | exit 0 |
---|
10 | fi |
---|
11 | . /var/mmfs/etc/nfsfuncs |
---|
12 | |
---|
13 | [ $hardMount -eq 1 ] && debuglog rpc.nfsd 0 |
---|
14 | |
---|
15 | if [ $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 |
---|
22 | fi |
---|
23 | |
---|
24 | # Stop nfsd et al. |
---|
25 | nfsService stop |
---|
26 | |
---|
27 | # Remove GPFS symlinks for shared sm data |
---|
28 | unshareSmDir |
---|
Note: See
TracBrowser
for help on using the repository browser.