#!/bin/ksh
# @(#)43	1.1  src/avs/fs/mmfs/ts/config/mmfsup.sample, mmfs, avs_rgpfs24, rgpfs240610b 10/31/05 10:18:13 
##############################################################################
#
# 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)
#
##############################################################################

# Initialize path names.

# osName=$(/bin/uname -s)
# if [[ $osName = Linux ]]
# then
#   MOUNT=/bin/mount
#   FSTYPE=gpfs
# fi
# if [[ $osName = AIX ]]
# then
#   MOUNT=/usr/sbin/mount
#   FSTYPE=mmfs
# fi
 
 
# Mount all GPFS type file systems.
# $MOUNT -t $FSTYPE


# Re-export everything that is currently exported.

# if [[ $osName = AIX ]]
# then
#   /usr/sbin/exportfs -f /etc/xtab -av
# fi

# if [[ $osName = Linux ]]
# then
#   /usr/sbin/exportfs -r
# fi

return 0

