PowerHA for AIX configuration - assure_mimix - assure_mimix_for_aix - 6.0

Assure MIMIX for AIX Guide

Product type
Software
Portfolio
Integrate
Product family
Assure
Product
Assure MIMIX™ Software for AIX
Version
6.0
ft:locale
en-US
Product name
Assure MIMIX for AIX
ft:title
Assure MIMIX for AIX Guide
Copyright
2025
First publish date
2003
ft:lastEdition
2025-03-12
ft:lastPublication
2025-03-12T05:07:12.494000

Note the following for the example Assure MIMIX for AIX configuration:

  • Performed using PowerHA for AIX 6.1.0.7

  • Names used such as, Cluster Nodes, resource groups are arbitrary. The integrator can choose to use any names.

  • Topology configuration for networks, communication interfaces and devices is not shown in this example because it is environment specific.

  • Notification scripts are not provided and are the responsibility of the integrator.

  • The implementation of the user application in this example is a suggestion and could be done differently at the integrator’s preference.

  • Has a Primary Context ID of 85 and Failover Context ID of 850.

The following Assure MIMIX for AIX scripts are provided for the PowerHA for AIX configuration. These scripts require parameters -C <Primary Context ID> and for the first two scripts optionally -P if called from the Production_Server resource group. These scripts will log to "/usr/scrt/log" if the "HACMP Log File Parameters" have "Debug Level" set to "high".

/usr/scrt/bin/production_failback_acquire

/usr/scrt/bin/production_failover_release

/usr/scrt/bin/ABA_Monitor

/usr/scrt/bin/LCA_Monitor

Sample PowerHA Configuration

Configure HACMP Nodes:

Production

Recovery

 

Configure Resource Groups:

Resource Group Name

Participating Nodes

Startup Policy

Fallover Policy

Fallback Policy

 

Production_Server

Production Recovery]

Online On Home Node Only

Fallover To Next Priority Node In The List

Never Fallback

Resource Group Name                                            Recovery_Server

  Participating Nodes                                                    [Recovery]

  Startup Policy                                                                                                                                             Online On Home Node Only

  Fallover Policy                                                                                                                                     Fallover To Next Priority Node In The List

  Fallback Policy                                                                                                                                     Never Fallback

Configure Online on Different Nodes Dependency

High Priority Resource Group(s)                [Recovery_Server]

Low Priority Resource Group(s)                 [Production_Server]

 

Configure HACMP Application Servers

 Server Name             Production_85

 Start Script           [/users_path_name/Production_Server_Start]

 Stop Script            [/users_path_name/Production_Server_Stop]

 Application Monitor     LCA_Monitor_85 Monitor_85

Server Name                           Recovery_85

Start Script                        [/usr/scrt/bin/production_failback_acquire -C <Primary Context ID>]

Stop Script            [/usr/scrt/bin/production_failover_release -C <Primary Context ID>]

Application Monitor     ABA_Monitor_85

Example for Production_Server_Start script

#!/bin/ksh

###############################################################################

#

# Name:         Production_Server_Start

#

# Arguments:    None

#

# Returns:      0 - success

#

# Environment:  None

###############################################################################

###############################################################################

#       Main Entry Point

################################################################################

PROGNAME=${0##*/}

[[ ${VERBOSE_LOGGING} == high ]] &&

{  rm -f /tmp/${PROGNAME}.out

  exec 1> /tmp/${PROGNAME}.out

  exec 2>&1

  PS4='[${PROGNAME}][${LINENO}]'

  set -x}

printf "$(date) ******** Begin ${PROGNAME} ********\n"

/usr/scrt/bin/production_failback_acquire -C <Primary Context ID> -P

if ((${?}!=0))

then

printf "$(date) Production Server start failed.\n"

  exit 1

fi

printf "$(date) Production Server start successful.\n"-> Insert application start script here<-

if ((${?}!=0))

then

printf "$(date) MIMIX_DR_for_AIX_85_Application_Start failed.\n"

  exit 1

fi

printf "$(date) MIMIX_DR_for_AIX_85_Application_Start successful.\n"

################################################################################

Example for Production_Server_Stop script

#!/bin/ksh

###############################################################################

#

# Name:         Production_Server_Stop

#

# Arguments:    None

#

# Returns:      0 - success

#

# Environment:  None

###############################################################################

 

###############################################################################

#       Main Entry Point

###############################################################################

 

PROGNAME=${0##*/}

[[ ${VERBOSE_LOGGING} == high ]] &&

{

  rm -f /tmp/${PROGNAME}.out

  exec 1> /tmp/${PROGNAME}.out

  exec 2>&1

  PS4='[${PROGNAME}][${LINENO}]'

  set -x

}

printf "$(date) ******** Begin ${PROGNAME} ********\n"

->  Insert application stop script here <-

if ((${?}!=0))

then

   printf "$(date) MIMIX_DR_for_AIX_85_Application_Stop failed.\n"

  exit 1

fi

printf "$(date) MIMIX_DR_for_AIX_85_Application_Stop successful.\n"

/usr/scrt/bin/production_failover_release -C <Primary Context ID> -P

if ((${?}!=0))

then

printf "$(date) Production Server stop failed.\n"

  exit 1

fi

printf "$(date) Production Server stop successful.\n"

###############################################################################

Configure Custom Application Monitors:

 Monitor Name                              LCA_Monitor_85

 Application Server(s) to Monitor          Production_85

 Monitor Mode                             [Long-running monitoring]

 Monitor Method                           [/usr/scrt/bin/LCA_Monitor -C <Primary Context ID>]

 Monitor Interval                         [180]

 Hung Monitor Signal                      [9]

 Stabilization Interval                   [900]

 Restart Count                            [0]

 Restart Interval                         [0]

 Action on Application Failure            [notify]

 Notify Method                            [/users_path_name/LCA_85_Notify]

Note: The value for "Stabilization Interval" depends on the time required to reset the LFCs on Failover. This depends on the number of LFCs on the Recovery Server and the system performance. With 20,000 LFCs it could typically take up to 15 minutes.

Monitor Name                              ABA_Monitor_85

 Application Server(s) to Monitor          Recovery_85

 Monitor Mode                             [Long-running monitoring]

 Monitor Method                           [/usr/scrt/bin/ABA_Monitor -C <Primary Context ID>]

 Monitor Interval                         [180]

 Hung Monitor Signal                      [9]

 Stabilization Interval                   [900]

 Restart Count                            [0]

 Restart Interval                         [0]

 Action on Application Failure            [notify]

 Notify Method                            [/users_path_name/ABA_85_Notify]

 Monitor Name                              Monitor_85

 Application Server(s) to Monitor          Application_85

 Monitor Mode                             [Long-running monitoring]

  Monitor Method                          [/users_path_name/ MIMIX_DR_for_AIX_Application_Monitor]

 Monitor Interval                         [60]

 Hung Monitor Signal                      [9]

 Stabilization Interval                   [900]

 Restart Count                            [0]

 Restart Interval                         [0]

 Action on Application Failure            [notify]

 Notify Method                            [/users_path_name/App_85_Notify]

Change/Show All Resources and Attributes for a Resource Group

 Resource Group Name                                 Production_Server

 Participating Nodes (Default Node Priority)         Production Recovery

 Application Servers                                [Production_85]

 Resource Group Name                                 Recovery_Server

 Participating Nodes (Default Node Priority)         Recovery

 Application Servers                                [Recovery_85]

HACMP Log File Parameters:

 Node Name                                           Production

 Debug Level                                         high

 Formatting options for hacmp.out                    Standard

HACMP Log File Parameters:

 Node Name                                           Recovery

 Debug Level                                         high

 Formatting options for hacmp.out                    Standard