Geo Switch Role

To switch the GR role, initiate the command on the primary rack (for example, role PRIMARY to STANDBY only), and use the following command.

geo switch-role { role primary | standby  instance-id gr_instanceId [ failback-interval  failback_interval ] } 

NOTES:

  • role role —Specify the new role for the given site.

    The roles can be primary or standby . It’s mandatory to trigger manual switchover from primary role for a specific GR instance ID.

  • instance-id gr_instanceId —Specify the GR Instance ID

  • failback-interval is an optional command to provide backward compatibility of upgrades between releases. The recommended value of failback-interval is 0.

Important

geo switch-role command triggers manual failover from one site to another site for specific instance ID. The site which triggers the failover changes from the PRIMARY role to the STANDBY_ERROR role. In between, the site which triggers the failover, sends a failover (Trigger GR) message to another site. The other site which receives the failover message changes from the STANDBY role to the PRIMARY role.

Note

failback-interval is deprecated from current release and will be discontinued from the subsequent releases.