Go to main content

Administering the Disaster Recovery Framework for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: June 2019
 
 

How to Add a Custom Heartbeat Plug-in to an Existing Default Heartbeat

  1. Log in to a node in the primary cluster.

    You must be assigned the Geo Management rights profile to complete this procedure. For more information, see Disaster Recovery Framework Rights Profiles in Installing and Configuring the Disaster Recovery Framework for Oracle Solaris Cluster 4.4.

  2. Add the custom heartbeat plug-in to the default heartbeat.
    # geohb add-plugin -p property-setting [-p...] \
    plug-in-name hb_local-cluster-name-remote-partner-cluster-name
    –p property-setting

    Specifies the properties of the heartbeat plug-in by using a name=statement pair.

    Specify the path to your custom heartbeat plug-in by using the Query_cmd property.

    For more information about the properties you can set, see Standard Disaster Recovery Framework Properties.

    plug-in-name

    Specifies the name of the custom heartbeat plug-in.

    hb_local-cluster-name-remote-partner-cluster-name

    Specifies the name of the default heartbeat to which you want to add the custom heartbeat plug-in.

  3. Verify that your changes were made correctly.
    # geoadm status
  4. Repeat the previous steps on a node of the secondary cluster.
Example 16  Adding a Custom Heartbeat Plug-in to the Default Heartbeat

This example adds the custom heartbeat plug-in, command1, to the default heartbeat, hb_cluster-paris~cluster-newyork.

# geohb add-plugin -p query_cmd=/usr/bin/hb command1 hb_cluster-paris~cluster-newyork
# geoadm status