source: gpfs_3.1_ker2.6.20/lpp/mmfs/samples/nfscluster/mmfsup.scr @ 152

Last change on this file since 152 was 16, checked in by rock, 17 years ago
  • Property svn:executable set to *
File size: 1.7 KB
RevLine 
[16]1#!/bin/ksh
2# @(#)61  1.6.1.2  src/avs/fs/mmfs/samples/nfscluster/mmfsup.scr, mmfs, avs_rgpfs24, rgpfs24s010a 2/16/07 02:32:44
3##############################################################################
4#
5# When properly installed, this script is invoked by the GPFS daemon when
6# it is up and ready for sessions.
7#
8# This script can be used to mount some or all of the GPFS file systems
9# for which manual mount was specified ("-A no" file system option).
10#
11# All GPFS file systems for which mount at daemon startup was specified
12# ("-A yes" file system option) should have already been mounted by GPFS.
13# If you want to disable on a particular node the automatic mounting of
14# file systems when GPFS starts up, run the following command on the
15# desired nodes:
16#      touch /var/mmfs/etc/ignoreStartupMount
17#
18# If you have NFS exported directories in GPFS file systems, the NFS mount
19# daemon may have exported the mount point instead of the GPFS file system.
20# For this reason, after the GPFS file systems are mounted, all existing
21# exports should be re-exported.
22#
23# Installations that start GPFS automatically when the node reboots, and
24# require their users to do explicit mounts, should not do anything here.
25#
26#
27# To activate the code:
28#
29#   a) edit this script and make the appropriate changes
30#   b) copy this script to /var/mmfs/etc/mmfsup
31#   c) ensure this script is executable (chmod +x /var/mmfs/etc/mmfsup)
32#
33##############################################################################
34
35if [ ! -f /var/mmfs/etc/nfsfuncs ]; then
36    echo "$0: Can't find NFS functions in /var/mmfs/etc"
37    exit 0
38fi
39. /var/mmfs/etc/nfsfuncs
40
41# Mount all GPFS type file systems that need to be NFS-exported.
42#/bin/mount -at gpfs
43
44# Start nfs cluster
45/var/mmfs/etc/start.nfs $1
46
47return 0
Note: See TracBrowser for help on using the repository browser.