#!/bin/ksh # @(#)61 1.6.1.2 src/avs/fs/mmfs/samples/nfscluster/mmfsup.scr, mmfs, avs_rgpfs24, rgpfs24s010a 2/16/07 02:32:44 ############################################################################## # # When properly installed, this script is invoked by the GPFS daemon when # it is up and ready for sessions. # # This script can be used to mount some or all of the GPFS file systems # for which manual mount was specified ("-A no" file system option). # # All GPFS file systems for which mount at daemon startup was specified # ("-A yes" file system option) should have already been mounted by GPFS. # If you want to disable on a particular node the automatic mounting of # file systems when GPFS starts up, run the following command on the # desired nodes: # touch /var/mmfs/etc/ignoreStartupMount # # If you have NFS exported directories in GPFS file systems, the NFS mount # daemon may have exported the mount point instead of the GPFS file system. # For this reason, after the GPFS file systems are mounted, all existing # exports should be re-exported. # # Installations that start GPFS automatically when the node reboots, and # require their users to do explicit mounts, should not do anything here. # # # To activate the code: # # a) edit this script and make the appropriate changes # b) copy this script to /var/mmfs/etc/mmfsup # c) ensure this script is executable (chmod +x /var/mmfs/etc/mmfsup) # ############################################################################## if [ ! -f /var/mmfs/etc/nfsfuncs ]; then echo "$0: Can't find NFS functions in /var/mmfs/etc" exit 0 fi . /var/mmfs/etc/nfsfuncs # Mount all GPFS type file systems that need to be NFS-exported. #/bin/mount -at gpfs # Start nfs cluster /var/mmfs/etc/start.nfs $1 return 0