Steps performed by the gc_shutdown.sh script - assure_mimix - 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

The gc_shutdown.sh script performs the following actions:

  • Stops all configured user applications protected in an Assure MIMIX for AIX clustered environment on the node where the AIX “shutdown” command is executed.

Note: Each application must be configured with an application stop script.
  • Stop all resources (such as, Service IP Address) if configured with the user’s application on the node where the AIX “shutdown” command is executed.

  • Assure MIMIX DR for AIX replication group associated with the user’s application on both cluster nodes.

  • Stops cluster services on the node where the AIX “shutdown” command is executed.

To have “/usr/EchoCluster/bin/AIX/gc_shutdown.sh” execute when the AIX “shutdown”command is executed, it must be called from “/etc/rc.shutdown.”

For example, add the following to /etc/rc.shutdown.

#!/bin/ksh
/usr/EchoCluster/bin/AIX/gc_shutdown.sh
if(($? != 0))
then
   printf "ERROR: gc_shutdown.sh failed, aborting the shutdown sequence.\n"
   printf "INFO: See log file /usr/EchoCluster/log/gc_shutdown.sh.out for details. \n"
  exit 1
fi
Note: To gracefully stop replication groups that are not configured in an Assure MIMIX for AIX clustered environment, that are running in a production or recovery role on the node where the AIX shutdown command is executed, use the /usr/scrt/bin/rn_shutdown script in conjunction with /usr/EchoCluster/bin/AIX/gc_shutdown.sh.The /usr/EchoCluster/bin/AIX/gc_shutdown.sh script must precede the /usr/scrt/bin/rn_shutdown script in /etc/rc.shutdown file.