#!/usr/bin/ksh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r714 src/43haes/usr/sbin/cluster/cspoc/utilities/cl_checknfs.sh 1.5 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2009 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#)38 1.5 src/43haes/usr/sbin/cluster/cspoc/utilities/cl_checknfs.sh, hacmp.cspoc, 61haes_r714 4/22/09 03:04:06 ######################################################################### # # COMPONENT_NAME: CSPOC # # FUNCTIONS: none # ######################################################################### ######################################################################### # # # Name: cl_checknfs # # # # Description: This script is called during clstart fastpath # # The script checks whether there is at least # # one Resource group that has NFS cross mounts # # configured and returns accordingly. # # # # Called by: sm_cmd_opt Stanza # # # # Calls to: None # # # # Arguments: None # # # # Returns: 0 success # # 1 failure # # # ######################################################################### NFS_FILE_SYS="" # Make sure that there is at least on Resource Group for which there is a file system to # Mount. if there is one then return 0 to make sure that the smit option "Activate NFS crossmounts" # is displayed during cluster start else return 1 to disable smit option "Activate NFS crossmounts" NFS_FILE_SYS=`odmget -q "name=MOUNT_FILESYSTEM" HACMPresource | awk '{if ($1 == "value") print $3}' | sed 's/"//g'` if [[ $NFS_FILE_SYS != "" ]] then # If there is at least one RG which has a FS to be mounted then we return 0 return 0 fi return 1