Bring back the last primary node after the primary and then the standby node fails by using the command line

In this scenario, the primary node fails and the standby node takes over as the new primary node. Before a new backup can be setup, the new primary node fails. You must restart a new primary node and set up a new standby node. System administrators can use the imaserver HighAvailability commands on the command line.

The two Eclipse Amlen appliances must be physically connected. For more information about connecting appliances, see Configuring the system for High Availability. The administrative state (AdminState) of the two appliances must also be enabled. Use the enable ethernet-interface or edit ethernet-interface command to enable the administrative state of the appliances.

You can configure appliances for high availability by using the command line or by using the Amlen WebUI. For more information about using the Amlen WebUI to configure appliances for high availability, see Bring back the last primary node after the primary and then the standby node fails by using the GUI.

Expectations
The content of the store and configuration of Appliance B is preserved.
  1. On Appliance C, enter the following command:
    Note: The command must be capitalized as shown.

    imaserver update HighAvailability "EnableHA=True" "Group=Group"

    Where:
    Group
    Group is used to automatically configure appliances to pair with each other.
    This value must match the value on Appliance A.
    The value can be a maximum of 128 characters.
  2. Ensure the high availability parameters on Appliance B are correct. Use the imaserver show HighAvailability command.
    admin@(none)> imaserver show HighAvailability
    EnableHA = True
    StartupMode = AutoDetect
    RemoteDiscoveryNIC = 10.10.2.2
    LocalReplicationNIC = 10.10.12.6
    LocalDiscoveryNIC = 10.10.12.2
    DiscoveryTimeout = 600
    HeartbeatTimeout = 10
    PreferredPrimary = False
    admin@(none)>
  3. If changes are required, use the imaserver update HighAvailability

    imaserver update HighAvailability [ "EnableHA=True" ] [ "StartupMode=AutoDetect" ] [ "PreferredPrimary=True" ] "RemoteDiscoveryNIC=remoteDiscIP" "LocalDiscoveryNIC=localDiscIP" "LocalReplicationNIC=localRepIP" [ "DiscoveryTimeout=discTimeout" ] [ "HeartbeatTimeout=hbTimeout" ]

    Tip: It is recommended, but not required, to set Appliance B as PreferredPrimary.
  4. Clean the store on Appliance C only.
    imaserver runmode maintenance
    imaserver stop
    imaserver start
    imaserver runmode clean_store
    imaserver stop
    imaserver start
    The server will clean the store and will restart automatically in maintenance mode.
  5. Change Appliance C to production mode.
    imaserver runmode production
  6. Change Appliance B to production mode.
    imaserver runmode production
  7. Stop the Eclipse Amlen server for Appliance B.
    imaserver stop
    
  8. Restart Appliance B and Appliance C.
    imaserver start
    
When the high availability pair is up and running, use the status imasever at the command line of each appliance:
  • At Appliance B:
    admin@(none)> imaserver status
    Status = Running
    HARole = PRIMARY
    admin@(none)> imaserver harole
    NewRole = PRIMARY
    OldRole = STANDBY
    ActiveNodes = 2
    SyncNodes = 2
    ReasonCode = 0
    ReasonString =
  • At Appliance C:
    admin@(none)> imaserver status
    Status = Standby
    HARole = STANDBY
    admin@(none)> imaserver harole
    NewRole = STANDBY
    OldRole = UNSYNC
    ActiveNodes = 2
    SyncNodes = 2
    ReasonCode = 0
    ReasonString =