After issuing command "shutdown -Fr"/"shutdown -r" on AIX, the error messages occur "ERROR V-292-2-405 AMF_UNCONFIG failed, return value = -1"

book

Article ID: 100027248

calendar_today

Updated On:

Description

Error Message

Check the shutdown console logs we can see, this error message happen on stop AMF module.
#shutdown -Fr 

SHUTDOWN PROGRAM 
Thu Apr 26 18:04:04 GMT+08:00 2012 
Stopping AMF...
AMF amfconfig ERROR V-292-2-405 AMF_UNCONFIG failed, return value = -1 <--Here!

AMF: Unable to unload module
VEA Server was shutdown successfully 
Stopping VCS:

Cause

 Check the code found the UMI V-292-2-405 error happen on unconfig the AMF module using command "/opt/VRTSamf/bin/amfconfig -oU".

AMF (Asynchronous Monitoring Framework)  is a kernel-module on UNIX that hooks itself with the operating system so as to provide Asynchronous/instantaneous notification of resource state changes and eliminating the need for regular poll-based monitoring. Ressources's agents are registered with the AMF driver for resources state.
When still have agent(s) process which use AMF still in running status,unconfig AMF will report this message.So if you want unconfig the the AMF module, you need stop all the agent using AMF first.

Checking the /etc/rc.d/rc2.d, we can found the AMF start before VCS starting, so need stop behind VCS, but the shutdown sequence of AMF is 50 and VCS is 51(means AMF will been stopped before VCS). 
# ls -l
lrwxrwxrwx    1 root     system           18 Nov 10 13:16 S93amf -> /etc/init.d/amf.rc
lrwxrwxrwx    1 root     system           18 Nov 10 13:17 S99vcs -> /etc/init.d/vcs.rc
lrwxrwxrwx    1 root     system           18 Nov 10 13:16 k50amf -> /etc/init.d/amf.rc
lrwxrwxrwx    1 root     system           18 Nov 10 13:17 k51vcs -> /etc/init.d/vcs.rc

Resolution

Manually modify the shutdown sequence or force unconfig AMF driver as workarond.

1. Modify the shutdown sequence:

#cd /etc/rc.d/rc2.d
#mv k50amf k51amf
#mv k51vcs k50vcs

Or

2. Modify the k50amf file to force unconfig the AMF driver:

 

echo "Stopping AMF..."

                amf_isloaded;

                if [ "$?" -eq "0" ]; then

                        # unconfigure AMF

                        amf_present=`/usr/bin/genkex | grep "amf" | wc -l`

                        if [ "$amf_present" -ne "0" ] ; then

                                $AMFCONFIG -oU <--change to "-ofU" , appending "-f" while unconfig does not show the error.
 

                                if [ "$?" -ne "0" ] ; then

                                        exit 1

                                fi

                                #

                                # stop AMF

 


Applies To

 SFHA 5.1SP1, SFHA 6.0

Issue/Introduction

After issuing command "shutdown -Fr"/“shutdown -r” on AIX, the error messages occur "ERROR V-292-2-405 AMF_UNCONFIG failed, return value = -1"