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.