Steps performed by the rn_shutdown 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 rn_shutdown script performs the following actions:

  • Kills all processes associated with a mounted file system that is configured in an Assure MIMIX for AIX Context ID.

  • Kills all processes associated with a character device that is configured in an Assure MIMIX for AIX Context ID.

  • Stops Assure MIMIX for AIX and unloads the drivers.

If “rtstop” fails for a Context ID it will be marked failed and then continue to do “rtstop” on any remaining Context IDs. After all the Context IDs are processed the “exit” status will be set to “0”, or a value equal to the number of Context IDs that were previously marked as failed. The reason for failure will be recorded in the “/usr/scrt/log/rn_shutdown.out” file. A non “0” exit will abort the AIX shutdown.

To have “/usr/scrt/bin/rn_shutdown” 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/scrt/bin/rn_shutdown
if(($? != 0))
then
   printf "ERROR: rn_shutdown failed aborting.\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.