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