Recovery Procedure
On Rack-1
-
Verify that roles of both instances on Rack-1 are in STANDBY_ERROR.
show role instance-id 1 result "STANDBY_ERROR"
show role instance-id 2 result "STANDBY_ERROR"
-
Initiate reset role for both instances on Rack-1 to STANDBY. This step transitions the roles from STANDBY_ERROR/STANDBY_ERROR to STANDBY/STANDBY.
geo reset-role instance-id 1 role standby geo reset-role instance-id 2 role standby
-
Verify that roles of both instances have moved to STANDBY on Rack-1.
show role instance-id 1 result "STANDBY"
show role instance-id 2 result "STANDBY"
-
Initiate switch role for instance-id 1 on Rack-2 to STANDBY with failback-interval of 30 seconds. This step transitions the roles of Rack-2 from PRIMARY/PRIMARY to STANDBY_ERROR/PRIMARY and Rack-1 from STANDBY/STANDBY to PRIMARY/STANDBY.
geo switch-role instance-id 1 role standby [failback-interval 0]
-
Verify that roles of both instances on Rack-2 are in STANDBY_ERROR/PRIMARY.
show role instance-id 1 result "STANDBY_ERROR"
show role instance-id 2 result "PRIMARY"
-
Verify that roles of both instances on Rack-1 are in PRIMARY/STANDBY.
show role instance-id 1 result "PRIMARY"
show role instance-id 2 result "STANDBY"
-
Initiate reset role for instance-id 1 on Rack-2 to STANDBY. This step transitions the roles of Rack-2 from STANDBY_ERROR/PRIMARY to STANDBY/PRIMARY.
geo reset-role instance-id 1 role standby
-
Verify that the roles of Rack-2 are in STANDBY/PRIMARY.
show role instance-id 1 result "STANDBY"
show role instance-id 2 result "PRIMARY"
On Rack-2
-
Verify that roles of both the instances on Rack-2 are in STANDBY_ERROR.
show role instance-id 1 result "STANDBY_ERROR"
show role instance-id 2 result "STANDBY_ERROR"
-
Initiate reset role for both instances on Rack-2 to STANDBY. This step transitions the roles from STANDBY_ERROR/STANDBY_ERROR to STANDBY/STANDBY.
geo reset-role instance-id 1 role standby geo reset-role instance-id 2 role standby
-
Verify that the roles of both the instances move to STANDBY on Rack-2.
show role instance-id 1 result "STANDBY"
show role instance-id 2 result "STANDBY"
-
Initiate switch role for instance-id 2 on Rack-1 to STANDBY. This step transitions roles of Rack-1 from PRIMARY/PRIMARY to PRIMARY/STANDBY_ERROR and Rack-2 from STANDBY/STANDBY to STANDBY/PRIMARY.
geo switch-role instance-id 2 role standby [failback-interval 0]
-
Verify that roles of instances on Rack-1 are in PRIMARY/STANDBY_ERROR mode.
show role instance-id 1 result "PRIMARY"
show role instance-id 2 result "STANDBY_ERROR"
-
Verify that roles of instances on Rack-2 are in STANDBY/PRIMARY mode.
show role instance-id 1 result "STANDBY"
show role instance-id 2 result "PRIMARY"
-
Initiate reset role for instance-id 2 on Rack-1 to STANDBY. This step transitions the roles of Rack-1 from PRIMARY/STANDBY_ERROR to PRIMARY/STANDBY.
geo reset-role instance-id 2 role standby
-
Verify that roles of instances on Rack-1 are in PRIMARY/STANDBY.
show role instance-id 1 result "PRIMARY"
show role instance-id 2 result "STANDBY"