To perform an NSP DR switchover in a CLI
Purpose
|
CAUTION Service disruption |
Performing this procedure causes a temporary loss of network visibility, which may be service-affecting.
You must perform the procedure only with the assistance of technical support during a scheduled maintenance period.
When the System Health dashboard is not accessible, perform this procedure to manually switch the primary and standby NSP cluster roles.
Note: You require root user privileges on the NSP cluster host in each data center.
Note: All commands should be run on a control node, such as node1 or node2.
Note: A leading # character in a command line represents the root user prompt, and is not to be included in a typed command.
Steps
1 |
Perform To identify the NSP cluster DR roles to identify each NSP cluster role. |
2 |
Log in as the root user on a control node in the active NSP cluster. |
3 |
Open a console window. |
4 |
Enter the following : # kubectl exec -it $(kubectl get pods -n nsp-psa-restricted | awk '/nsp-role-manager/ {print $1;exit}') -n nsp-psa-restricted -c role-manager -- /opt/nsp/os/rolemgr/bin/rmgrctl toStandby ↵ The active cluster assumes the standby role. |
5 |
Log in as the root user on a control node in the original standby NSP cluster. |
6 |
Open a console window. |
7 |
Enter the following : # kubectl exec -it $(kubectl get pods -n nsp-psa-restricted | awk '/nsp-role-manager/ {print $1;exit}') -n nsp-psa-restricted -c role-manager -- /opt/nsp/os/rolemgr/bin/rmgrctl toActive ↵ The standby cluster assumes the primary role. |
8 |
Enter the following periodically to display the status of the clusters as the roles change: # kubectl exec -n $(kubectl get pods -A | awk '/nsp-role-manager/ {print $1;exit}') -it $(kubectl get pods -A | awk '/nsp-role-manager/ {print $2;exit}') -c role-manager -- /opt/nsp/os/rolemgr/bin/rmgrctl statusAll ↵ Output like the following is displayed when the role changes are complete: Site: primary_cluster_name Status: active Since: timestamp
Site: standby_cluster_name Status: standby Since: timestamp |
9 |
When the role changes are complete, close the open console windows. End of steps |