# @(#) 7d4c34b 43haes/usr/sbin/cluster/utilities/ha_odm_constants.sh, 726, 2147A_aha726, Feb 05 2021 09:50 PM # ALTRAN_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # Copyright (C) Altran ACT S.A.S. 2017,2018,2021. All rights reserved. # # ALTRAN_PROLOG_END_TAG # # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r721 src/43haes/usr/sbin/cluster/utilities/ha_odm_constants.sh 1.36 # # Licensed Materials - Property of IBM # # Restricted Materials of IBM # # COPYRIGHT International Business Machines Corp. 2005,2016 # 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 # @(#) 7d4c34b 43haes/usr/sbin/cluster/utilities/ha_odm_constants.sh, 726, 2147A_aha726, Feb 05 2021 09:50 PM ## ## ## NAME: ha_odm_constants ## ## DESCRIPTION: Defines the following macros if they are not already defined ## ## ## DCD - DCD Directory ## ACD ## SCD ## HA_COPY_DCD_TO_ACD_ODMS - List of ODMs to be copied from the DCD directory to the ACD directory ## HA_COPY_DCD_TO_ACD_XML - List of XML files to be copied from the DCD directory to the ACD directory ## HA_COPY_ACD_TO_DCD_ODMS - List of ODMs to be copied from the ACD directory to the DCD directory ## HA_COPY_ACD_TO_DCD_XML - List of XML files to be copied from the ACD directory to the DCD directory ## HA_LINK_ACD_TO_DCD_ODMS - List of DCD ODMs that are linked to the ACD directory ## HA_LINK_ACD_TO_AIX_ODMS - List of ODMs that are linked from the /etc/objrepos/ directory to the $ACD directory ## HA_TOPOLOGY_ODMS - List of ODMs that are related to the HACMP topology ## HA_RESOURCE_ODMS - List of ODMs that are related to HACMP resources ## HA_ACD_ODMS - List of HACMP ODMs that reside in the ACD directory ## ## XD_ODMS - List of XD ODMs ## XD_CONFIGURED - Set == 1 if configured, 0 if not configured ## ## This script should be sourced by its caller so the variables become part of the ## callers environment. ## ## export PATH=$(/usr/es/sbin/cluster/utilities/cl_get_path all) # set the platform UNAME=$(uname -m) case $UNAME in ppc* | i* ) export PLATFORM="__LINUX__" ;; * ) export PLATFORM="__AIX__" ;; esac ## ## Determine if XD is configured ## XD_LPP_PROD_NAME="cluster.es.spprc.rte" XD_CONFIGURED=0 [[ "$PLATFORM" = "__AIX__" ]] && { lslpp -l $XD_LPP_PROD_NAME >/dev/null 2>&1 if [ $? -eq 0 ] then XD_CONFIGURED=1 fi } if [[ -z $XD_ODMS ]]; then XD_ODMS="HACMPspprc HACMPsdisksubsys" fi ## ## Determine if GENERIC XD is is installed ## GENXD_LPP_PROD_NAME="cluster.es.genxd.rte" GENXD_INSTALLED=0 [[ "$PLATFORM" = "__AIX__" ]] && { lslpp -l $GENXD_LPP_PROD_NAME >/dev/null 2>&1 if [ $? -eq 0 ] then GENXD_INSTALLED=1 fi } if [[ -z $GENXD_ODMS ]]; then GENXD_ODMS="HACMPxd_storage_technology HACMPxd_storage_module \ HACMPxd_storage_system HACMPxd_storage_agent HACMPxd_storage_system_sa_relation \ HACMPxd_storage_agent_ip_relation HACMPxd_mirror_group \ HACMPxd_opaque_attr_description HACMPxd_opaque_value \ HACMPxd_mirror_group_ss_relation \ HACMPxd_ext_attr HACMPxd_storage_module_private" fi if [[ -z $DCD ]]; then DCD=/etc/es/objrepos fi if [[ -z $ACD ]]; then ACD=/usr/es/sbin/cluster/etc/objrepos/active fi if [[ -z $SCD ]]; then SCD=/usr/es/sbin/cluster/etc/objrepos/stage fi ## ## List of ODMs to be copied from the DCD directory to the ACD directory ## Please update HA_COPY_ACD_TO_DCD_ODMS(If applicable), if you are adding ## new ODMs to this list. ## The below ODMs are not copied to ACD. ## HACMPsa - Contains node specific installed Smart Assist info. ## if [[ -z $HA_COPY_DCD_TO_ACD_ODMS ]]; then HA_COPY_DCD_TO_ACD_ODMS="HACMPcluster HACMPsite HACMPnode HACMPadapter \ HACMPnetwork HACMPnim HACMPgroup HACMPresource HACMPserver \ HACMPtopsvcs HACMPlogs HACMPtape HACMPmonitor HACMPpager HACMPport HACMPnpp \ HACMPude HACMPdisktype HACMPcsserver \ HACMPdisksubsys HACMPpprc HACMPpairtasks HACMPpathtasks HACMPtimer HACMPsiteinfo \ HACMPercmf HACMPercmfglobals HACMPsvc HACMPsvcpprc HACMPsvcrelationship \ HACMPtimersvc HACMPfilecollection HACMPfcfile HACMPfcmodtime HACMPrgdependency \ HACMPrg_loc_dependency HACMPoemfilesystem HACMPoemvgmethods \ HACMPoemfsmethods HACMPoemvolumegroup HACMPsa_metadata HACMPpprcconsistgrp \ HACMPsr HACMPtc HACMPras HACMPresourcetype HACMPudresource HACMPudres_def \ HACMPsircol HACMPeventmgr HACMPLDAP HACMPsplitmerge HACMPsap_connector HACMPhmc \ HACMProhaparam HACMPhmcparam HACMPnova HACMPnovaparam HACMPsecurity HACMPvolumegroup" if (( $XD_CONFIGURED == 1 )); then HA_COPY_DCD_TO_ACD_ODMS="$HA_COPY_DCD_TO_ACD_ODMS $XD_ODMS" fi if (( $GENXD_INSTALLED == 1 )); then HA_COPY_DCD_TO_ACD_ODMS="$HA_COPY_DCD_TO_ACD_ODMS $GENXD_ODMS" fi fi ## List of XMLs to be copied from the DCD directory to the ACD directory ## Please update HA_COPY_ACD_TO_DCD_XML(If applicable), if you are adding ## new XMLs to this list. if [[ -z $HA_COPY_DCD_TO_ACD_XML ]]; then HA_COPY_DCD_TO_ACD_XML="cloud_backup_configuration.xml" fi ## ## List of ODMs to be copied from ACD directory to DCD Directory ## This is used by the script cl_dcd_acd and the list should be ## the same as those copied from dcd to acd at startup ## if [[ -z $HA_COPY_ACD_TO_DCD_ODMS ]] then HA_COPY_ACD_TO_DCD_ODMS=$HA_COPY_DCD_TO_ACD_ODMS fi ## List of XMLs to be copied from the ACD directory to DCD Directory ## This is used by the script cl_dcd_acd and the list should be ## the same as those copied from dcd to acd at startup if [[ -z $HA_COPY_ACD_TO_DCD_XML ]] then HA_COPY_ACD_TO_DCD_XML=$HA_COPY_DCD_TO_ACD_XML fi ## ## List of DCD ODMs that are linked to the ACD directory ## if [[ -z $HA_LINK_ACD_TO_DCD_ODMS ]]; then HA_LINK_ACD_TO_DCD_ODMS="HACMPevent HACMPdaemons HACMPcustom HACMPrules HACMPrresmethods" fi ## ## List of ODMs that are linked from the /etc/objrepos/ directory to the $ACD directory ## if [[ -z $HA_LINK_ACD_TO_AIX_ODMS ]]; then # System ODMs that are linked into the ACD directory HA_LINK_ACD_TO_AIX_ODMS="CDiagAtt CDiagAtt.vc CDiagDev CuAt CuData CuDep CuVPD CuDv CuDvDr PDiagAtt \ PDiagAtt.vc PDiagDev PDiagDev.vc PDiagRes PDiagRes.vc PDiagTask PDiagTask.vc PdAt \ PdDv CuAt.vc CuData.vc PdAt.vc PdDv.vc PdCn lvm_lock CuPath CuPath.vc CuPathAt CuPathAt.vc \ PdPathAt PdPathAt.vc SWservAt SWservAt.vc" fi ## ## List of HACMP ODMs related to the topology ## if [[ -z $HA_TOPOLOGY_ODMS ]]; then # Make sure that HACMPnode & HACMPnetwork get synced before HACMPcluster. # This change is needed because assigning node/network ids updates the # HACMPcluster ODM on the local node and this updated HACMPcluster ODM # should be synced to all other nodes of the cluster. HA_TOPOLOGY_ODMS="HACMPnode HACMPnetwork HACMPcluster HACMPnim \ HACMPadapter HACMPtopsvcs HACMPsite HACMPsircol HACMPeventmgr" fi ## ## List of HACMP ODMs related to resources ## if [[ -z $HA_RESOURCE_ODMS ]]; then HA_RESOURCE_ODMS="HACMPgroup HACMPresource HACMPserver \ HACMPevent HACMPcustom HACMPlogs HACMPtape \ HACMPmonitor HACMPpager HACMPport HACMPnpp HACMPude \ HACMPdisksubsys HACMPpprc HACMPpairtasks HACMPpathtasks HACMPercmf \ HACMPercmfglobals HACMPtimer HACMPsiteinfo HACMPtimersvc \ HACMPfilecollection HACMPfcfile HACMPrgdependency HACMPrg_loc_dependency \ HACMPsvc HACMPsvcpprc HACMPsvcrelationship HACMPsa_metadata \ HACMPcsserver HACMPoemfsmethods HACMPoemvgmethods HACMPoemvolumegroup \ HACMPoemfilesystem HACMPdisktype HACMPpprcconsistgrp \ HACMPsr HACMPtc HACMPras HACMPresourcetype HACMPudresource HACMPudres_def HACMPLDAP \ HACMPsplitmerge HACMPsap_connector HACMPhmc HACMProhaparam HACMPhmcparam \ HACMPnova HACMPnovaparam HACMPsecurity HACMPvolumegroup" if (( $XD_CONFIGURED == 1 )); then HA_RESOURCE_ODMS="$HA_RESOURCE_ODMS $XD_ODMS" fi if (( $GENXD_INSTALLED == 1 )); then HA_RESOURCE_ODMS="$HA_RESOURCE_ODMS $GENXD_ODMS" fi fi ## ## List of HACMP ODMs that reside in the ACD directory ## if [[ -z $HA_ACD_ODMS ]]; then HA_ACD_ODMS="HACMPcluster HACMPnode HACMPnim HACMPnetwork HACMPadapter \ HACMPgroup HACMPresource HACMPserver \ HACMPtopsvcs HACMPlogs HACMPtape HACMPmonitor \ HACMPpager HACMPport HACMPnpp HACMPude HACMPsite \ HACMPdisksubsys HACMPpprc HACMPpairtasks HACMPpathtasks HACMPdisktype \ HACMPtimer HACMPercmf HACMPercmfglobals HACMPsiteinfo HACMPtimersvc \ HACMPfilecollection HACMPfcfile HACMPfcmodtime HACMPrgdependency \ HACMPrg_loc_dependency HACMPsvc HACMPsvcpprc HACMPsvcrelationship \ HACMPcsserver HACMPsa_metadata HACMPpprcconsistgrp \ HACMPoemfsmethods HACMPoemvgmethods HACMPoemvolumegroup HACMPoemfilesystem \ HACMPsr HACMPtc HACMPras HACMPresourcetype HACMPudresource HACMPudres_def \ HACMPsircol HACMPeventmgr HACMPLDAP HACMPsplitmerge HACMPhmc HACMProhaparam \ HACMPhmcparam HACMPnova HACMPnovaparam HACMPsecurity HACMPvolumegroup" if (( $XD_CONFIGURED == 1 )); then HA_ACD_ODMS="$HA_ACD_ODMS $XD_ODMS" fi if (( $GENXD_INSTALLED == 1 )); then HA_ACD_ODMS="$HA_ACD_ODMS $GENXD_ODMS" fi fi