CFGMGR fails: startacfsctl defacfsctl.bin: Dependent module libhasgen11.so could not be loaded.

Recently I faced an error when I execute the cfgmgr command on AIX.

root@aix:/ > cfgmgr
Method error (/usr/lib/methods/startacfsctl):
        0514-068 Cause not known.
Could not load program /usr/lib/methods/defacfsctl.bin:
        Dependent module libhasgen11.so could not be loaded.
Could not load module libhasgen11.so.
System error: No such file or directory

At startup  of AIX some services are not started automatically (eg: sshd and many others), the cause of issue is because “cfgmgr” command is returning error and it hold start of services.

At first sight I thought it was a AIX problem, but the lib “defacfsctl.bin” was not loaded because a module dependent ‘libhasgen11.so “was not loaded.

root@aix:/ >ldd /usr/lib/methods/defacfsctl.bin
/usr/lib/methods/defacfsctl.bin needs:
         /u01/app/grid/grid_has/lib/libhasgen11.so
         /u01/app/grid/grid_has/lib/libttsh11.so
         /usr/lib/libcfg.a(shr_64.o)
         /usr/lib/libodm.a(shr_64.o)
         /usr/lib/libc.a(shr_64.o)
         /usr/lib/libpthreads.a(shr_xpg5_64.o)
         /u01/app/grid/grid_has/lib/libskgxn2.so
         /u01/app/grid/grid_has/lib/libocr11.so
         /u01/app/grid/grid_has/lib/libocrutl11.so
         /usr/lib/libdl.a(shr_64.o)
         /usr/lib/libc.a(aio_64.o)
         /usr/lib/libperfstat.a(shr_64.o)
         /unix
         /usr/lib/libcrypt.a(shr_64.o)
         /u01/app/grid/grid_has/lib/libocrb11.so
         /usr/lib/liblvm.a(shr_64.o)
         /usr/lib/libcorcfg.a(shr_64.o)
         /usr/lib/libsrc.a(shr_64.o)

Since lib “libhasgen11.so” is an lib of Oracle Database the issue is related to the AIX and Oracle.

Cause:

The Filesystem where Grid Infrastructure was installed is not mounted or avaliable.
Oracle Grid Infrastructure 11.2 has a feature called ACFS (ASM Cluster Filesystem) that has own drivers called “Oracle Kernel Services Driver” (OKS).

The OKS drivers are installed  into the native operating system, these drivers are required for managing the filesystem (ACFS) using OS commands. (e.g mount).

You can find these drivers in “$GUI_HOME/usm/V/powerpc/bin/”.

Is It Possible to Avoid ADVM Driver Install During Grid Infrastructure Install ?
The answer is – NO. It is not possible to disable that. The reasoning behind this is that Clusterware components are not user configurable.
ACFS is not mandatory to use, but it is mandatory to initially install and config ACFS (drivers).

In my case the host was a contingency, so do not want the filesystem where GUI are installled available.

Solution:

1°: The easy solution is to make the filesystem of GUI available and retry command “cfgmgr”.

2°: If you are not using ACFS feature, we can disable them upon the installation.
To do that follow the next steps:
1) Dismount the ACFS filesystem first
2) Verify the ACFS filesystem is dismounted
3) Stop the OHAS services
4) Offload the ACFS/ADVM modules from memory (as root)
$GUI_HOME/bin/acfsload stop
5) Then remove the ACFS/ADVM modules installation (as root)
$GUI_HOME/bin/acfsroot uninstall

If after these steps you keep getting this error, or if OH was already removed:

root@aix:/ >cfgmgr
Method error (/usr/lib/methods/startadvmctl):
        0514-068 Cause not known.
sh: /usr/lib/methods/startadvmctl:  not found

Solution:

odmdelete -q rule=/usr/lib/methods/startacfsctl -o Config_Rules
odmdelete -q rule=/usr/lib/methods/startadvmctl -o Config_Rules
Advertisements

2 Comments on “CFGMGR fails: startacfsctl defacfsctl.bin: Dependent module libhasgen11.so could not be loaded.”

  1. sash says:

    your problem is reported in bug 13505718.
    ” For maintenance reason customer disabled the automount at boot time of filesystem where Oracle Restart(GI HOME) is installed (i.e
    /u00/app/11.2.0/grid not mounted at boot time). So, the utility cfgmgr of AIX return error when GI home is not available.The error is returned because ADVM (drivers) need of files (lib) which are
    within GI home.As cfgmgr is executed at boot time and return error some services of aix not start (like sshd).”
    .
    Please ask customer to spool the output and upload it :

    /bin/odmget Config_Rules | grep starta…ctl
    /bin/odmget PdDv
    /usr/lib/methods/udefacfsctl -l ofsctl
    .
    If odmget Config_rules shows
    .
    rule = “/usr/lib/methods/startacfsctl”
    rule = “/usr/lib/methods/startadvmctl”
    .
    There could be 4 entries ( based on the above cfgmgr output )
    .
    We should be able to remove this rule from Config_Rules using :
    .
    odmdelete -q rule=/usr/lib/methods/startacfsctl -o Config_Rules
    odmdelete -q rule=/usr/lib/methods/startadvmctl -o Config_Rules
    .
    Please check with their sysadmin or AIX vendor on the above syntax.

    Like

    • Levi Pereira says:

      Hi Sash,
      I opened this SR.

      Oracle solved this problem as you described. I just forgot to update the solution of the problem here.
      Anyway thanks for the comment.

      Regards,
      Levi Pereira

      Like


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s