You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The following script can be used to switch between the primary and secondary roles for an SDNC server.

Pre-condition:

 1. The script “sdnc.failover” has dependencies on script “sdnc.cluster”, “sdnc.isPrimaryCluster” and “switchVoting.sh”. These scripts should be placed in the same directory of a "master" server of a cluster.

 2. Run as "ubuntu" instead of "root".


To execute:

(1)    Download the scripts to the "master" server and make them executable. Make sure to run as “ubuntu”.

(2)    Type “./sdnc.failover” in the command line.


Expected results:

(1)    Return result as “success”. The clustering role should be changed from “active” to “standby”, or vice versa. Type “./sdnc.cluster” to confirm.

(2)    Return result as “failure”. The clustering role should not be changed.


sdnc.clustersdnc.failoversdnc.isPrimaryClusterswitch_voting_resp.jsonswitchVoting.sh

  • No labels