Control-M/Server High Availability appears to be running but the Message for the Primary in the Control-M Configuration Manager (CCM) shows:  Database is replicated.   Secondary configuration agent cannot access shared directory.

Version 2
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Server for UNIX and Microsoft Windows


    COMPONENT:

    Control-M/Server for UNIX and Microsoft Windows


    APPLIES TO:

    Control-M/Server 9.0.18; Unix/Linux



    PROBLEM:

    Control-M/Server High Availability appears to be running but the Message for the Primary in the Control-M Configuration Manager (CCM) shows:

    Database is replicated..
    Secondary configuration agent cannot access shared directory.

    CA* logs in the ctm_server/proclog directory on the Secondary host are being updated periodically (every 60 seconds for example) with messages like the following:
    0111 12:31:31.459 CA: CM_HA_PARAMS_read_archive_file: Failed to get value for PRIMARY_HOST_ID
    0111 12:31:31.459 CA: currentHostIdInSharedParamFile: Failed to get PRIMARY_HOST_ID from shared parameters file.
    0111 12:31:31.459 CA: CM_HA_PARAMS_read_archive_file: Failed to get value for PRIMARY_HOST_ID
    0111 12:31:31.459 CA: CM_HA_SYSPRM_updateIsPrimary: Failed fetching 'PRIMARY_HOST_ID' parameter from file 'ctm_ha_archive_server_params.dat' in archive directory
    0111 12:31:31.460 CA: server_main_loop: No access to shared directory

    If Control-M/Server utilities such as ctmcontb are running, the Primary Control-M/Server may have u_ctmcontb* logs in ctm_server/proclog similar to the following:
    0111 02:10:00.638 u_ctmcontb: CM_HA_PARAMS_read_archive_file: Failed to get value for ACTIVE_HOST_ID
    0111 02:10:00.638 u_ctmcontb: CM_HA_PARAMS_is_active_ex: Failed to read ACTIVE_HOST_ID from shared directory. current_is_active is FALSE
    0111 02:10:00.638 u_ctmcontb: CM_HA_PARAMS_is_active_ex: The caller process is not the CA.
    0111 02:10:00.779 u_ctmcontb: CM_HA_PARAMS_is_active_ex: The CA is running.
    0111 02:10:00.779 u_ctmcontb: CM_HA_PARAMS_is_active_ex: The caller process is one of the Ctm/Server utilities.


    CAUSE:

    Unkown


    SOLUTION:

    1.  Navigate to the shared directory used by Control-M/Server High Availability.

    2.  Review the file named: ctm_ha_archive_server_params.dat.

    It should have lines like the following (without the { } characters):

    ACTIVE_HOST_ID {your active hostname}
    PRIMARY_HOST_ID {your primary hostname}
    SECONDARY_HOST_ID {your secondary hostname}
    PG_REPLICATION_STATUS OK
    PG_REPLICATION_MODE SYNC

    3. If any of these 5 lines are missing, manually add them back with the proper values.

    4. It may be necessary to stop and start the CA process on both the Primary or Secondary host.

    For example on a Linux/Unix Control-M/Server run the following command as the Control-M/Server User: shut_ca ; start_ca

    On a Windows Control-M/Server, the Control-M/Server Configuration Agent can be restarted from Services (services.msc).


    Article Number:

    000163003


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles