Failover to Standby and restart Primary How To

From Swivel Knowledgebase
Revision as of 14:10, 17 April 2012 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Overview

This article explains how to failover the Virtual IP (VIP) to the Standby server for a pair of Active/Active appliances and has primarily been written to supplement other articles that might require these steps to be performed.

Aside from the actual process of failing over the VIP, it also details some status checks which can be performed on the command line to check that the VIP has gone across. It then explains how to restart Tomcat on the Primary server.

If your appliances do not have the CMI menu system please see: Failover to Standby and restart Primary Pre CMI How To.

Prerequisites

You will need to obtain the command line password from Swivel support.


Check Heartbeat status on Standby

  • You should notice that the Heartbeat menu option has a status of Running;

If Heartbeat has a status of Running on the Standby, you can be confident that when you stop Heartbeat on the Primary it will failover the VIP to the Standby. If it doesn't, then check to see if Heartbeat is running on the Primary. If it isn't running on either machine then it's probable that you aren't even using the VIP.


Stop Heartbeat on Primary:

  • This should take up to 30 seconds or so to failover;
  • Note: to select a menu option, type the number of the menu option and press enter;
  • Select the Heartbeat menu option;
  • Select the Stop menu option;


Verify that the VIP has gone across to the Standby

There are a few ways this can be verified...

  • Access the PINsafe Administration Console via web browser using the VIP. You should notice that the server name at the top right hand corner is now that of the Standby server;
  • From the Main Menu of the CMI on the Standby select the Advanced Menu menu option;
    • Select the Command Line menu option;
    • When prompted enter the password for the command line;
    • Type the command ifconfig and press enter;
    • You should observe that the Standby has a network interface entry labelled eth0:0 in addition to eth0, eth1 and lo. eth0:0 is the VIP. Perform the same check on the Primary to ensure that this no longer exists when you perform the ifconfig command there;
    • To exit from the command line type the exit command and press enter. This will return you to the CMI;


Validate the failover has been successful

  • Attempt to login to access devices that PINsafe has been integrated with;

If all is well proceed to restart Tomcat on the Primary:

  • Login via SSH to the Primary using the following article PuTTY How To Guide;
  • Note: to select a menu option, type the number of the menu option and press enter;
  • Select the Tomcat menu option;
  • Select the Restart menu option;

If Tomcat restarts successfully, proceed to start Heartbeat on the Primary to initiate the failback.


Start Heartbeat on Primary

  • This should take up to 30 seconds or so to failback;
  • Login via SSH to the Primary using the PuTTY How To Guide;
  • Note: to select a menu option, type the number of the menu option and press enter;
  • Select the Heartbeat menu option;
  • Select the Start menu option;


Verify that the VIP has gone back to the Primary

There are a few ways this can be verified...

  • Access the PINsafe Administration Console via web browser using the VIP. You should notice that the server name at the top right hand corner is now that of the Primary server;
  • From the Main Menu of the CMI on the Primary select the Advanced Menu menu option;
    • Select the Command Line menu option;
    • When prompted enter the password for the command line;
    • Type the command ifconfig and press enter;
    • You should observe that the Primary has a network interface entry labelled eth0:0 in addition to eth0, eth1 and lo. eth0:0 is the VIP. Perform the same check on the Standby to ensure that this no longer exists when you perform the ifconfig command there;
    • To exit from the command line type the exit command and press enter. This will return you to the CMI;


Validate the failback has been successful

  • Attempt to login to access devices that PINsafe has been integrated with;