Modifying the Disaster Recovery Configuration
After you have initially configured the disaster recovery setup, you may need to modify the Junos Space cluster at either sites such as addition or removal of nodes from your Junos Space setup, change IP addresses of interfaces, change device management interfaces, load balancer details (VIP address and password), and change VIP address of dedicated services such as FMPM or database. You may also need to modify disaster recovery parameters such as backup and restore settings, heartbeat settings, and failure detection settings.
You use the jmp-dr toolkit config update
command
to:
Reinitiate MySQL or PgSQL replication at a site and to the standby site if you added or removed dedicated nodes and update these changes at the standby site.
Update the changes in cluster configuration (addition or removal of load balancer nodes), at both sites.
Refer to Modifying Applications and Nodes on a Disaster Recovery Setup for more information about modifying nodes.
You use the options along with jmp-dr toolkit config update
command to modify backup and restore settings, heartbeat settings,
failure detection settings, update load balancer details (VIP address
and password), and SCP timeout settings, and update these changes
at the peer site.
You must update the changes to the load balancers at both
sites by using the --user-core
option before modifying
and updating the other sections of disaster recovery such as heartbeat
settings, notification settings, failure detection settings, file
backup and restore settings.
Table 1 lists the options and the group of disaster recovery configuration parameters included with the option.
Configuration Update Option |
Description |
---|---|
|
Load balancer VIP and password, and SCP timeout settings |
|
Configuration and RRD files backup settings |
|
Configuration and RRD files replication to standby site settings |
|
Watchdog heartbeat settings |
|
Email notification settings |
|
Failure detection settings |
To modify the disaster recovery configuration:
- Log in to the CLI of the Junos Space node at the active
site on which the VIP or the eth0:0 interface is configured.
The Junos Space Settings Menu is displayed.
- Enter 6 (if you are using a
hardware appliance) or 7 (if you are using
a virtual appliance) at the Junos Space Settings Menu prompt to run
shell commands.
The following is a sample output from a virtual appliance:
admin@10.206.41.183's password: Last login: Mon Aug 17 06:17:58 2015 from 10.206.41.42 Welcome to the Junos Space network settings utility. Initializing, please wait Junos Space Settings Menu 1> Change Password 2> Change Network Settings 3> Change Time Options 4> Retrieve Logs 5> Security 6> Expand VM Drive Size 7> (Debug) run shell A> Apply changes Q> Quit R> Redraw Menu Choice [1-7,AQR]: 7
- Enter the administrator password.
- Stop the disaster recovery process on both sites. To do
so, type
jmp-dr stop
at the shell prompt and press Enter. - Perform the following steps to modify the disaster recovery
configuration at sites.
Use the
jmp-dr toolkit config update
command to:Update the addition or removal of load balancer nodes.
Reinitiate MySQL or PgSQL replication at a site (after adding or removing dedicated nodes).
Update changes to VIP address of FMPM node or database node of a site, at both sites.
Update the changes to IP address of the nodes of a site, at both sites.
Update the addition or removal of eth3 interface for device management or change in the IP address of the eth3 interface, at both sites.
Update the change of IP address version for device management (IPv4 to IPv6 or IPv6 to IPv4) of a site, at both sites.
Log in to the CLI of the Junos Space VIP node at the site where you made the modifications.
Type
jmp-dr toolkit config update
at the shell prompt and press Enter.Type No and press Enter to view the cluster modifications.
The modified cluster configuration is displayed in JSON format.
Press Enter to accept the changes.
The following is a sample output when the disaster recovery configuration is updated after adding a dedicated MySQL node.
[user1@host]# jmp-dr toolkit config update If admin password of any node belonging to remote site is changed or if a new node with different admin password is added then please use option --user-core. Continue? Yes The modified user configuration in JSON format is as follows: { "user_mysql_hasDedicatedDb": { "lhs": false, "rhs": true }, "user_mysql_peerVip": { "lhs": "10.206.41.225", "rhs": "10.206.41.84" }, "user_mysql_peerNodes": { "lhs": "10.206.41.226,10.206.41.227", "rhs": "10.206.41.85,10.206.41.86" } } Do you want to apply these changes? Yes Check status of DR remote site: up Stop mysql replication if applicable [ OK ] Update mysql repUser & repAdmin [ OK ] Update firewall [ OK ] Update ntp [ OK ] Update mysql configuration if applicable [ OK ] Update services (such as jboss-dc, httpd, etc.) [ OK ] The configuration change is updated only at current site, please ensure to update at the remote site accordingly. The `toolkit config` command is done
The disaster recovery configuration file at the local site is updated with the modified configuration of the cluster.
Log in to the CLI of the Junos Space VIP node at the peer site to update the modifications made at the local site.
Type
jmp-dr toolkit config update
at the shell prompt and press Enter.Type No and press Enter to view the modified cluster configuration at the remote site.
The modified configuration is displayed in JSON format.
Press Enter to accept the changes.
The disaster recovery configuration file at the peer site is updated with the modified configuration of the cluster at the local site.
To modify the heartbeat settings at a site:
Log in to the CLI of the Junos Space VIP node at the site where the heartbeat settings must be modified.
Type
jmp-dr toolkit config update --user-watchdog-heartbeat
at the shell prompt and press Enter.Type No and press Enter to modify the heartbeat settings.
The disaster recovery configuration parameters to modify heartbeat settings are displayed.
The following is a sample screen output.
? If admin password of any node belonging to remote site is changed or if a new node with different admin password is added then please use option --user-core. Continue? Yes ######################### # # DR Watchdog # ######################### # heartbeat ? What's the number of times to retry heartbeat message? 4 ? What's the timeout of each heartbeat message (seconds)? 5 ? What's the heartbeat message interval between sites (seconds)? 30
Modify the heartbeat settings.
The modified heartbeat settings are displayed in JSON format.
Press Enter to accept the changes.
The heartbeat settings are modified when the command is executed.
The following is a sample screen output.
The configuration change is updated only at current site, please ensure to update at the remote site accordingly. Command completed.
Log in to the CLI of the Junos Space VIP node at the peer site to update the modifications made at the local site.
Type
jmp-dr toolkit config update --user-watchdog-heartbeat
at the shell prompt and press Enter.Type No and press Enter to view the modified heartbeat settings at the local site.
The modified heartbeat settings are displayed in JSON format.
Press Enter to accept the changes.
The heartbeat settings are updated when the command is executed.
To modify the notification settings at a site:
Log in to the CLI of the Junos Space VIP node at the site where the notification settings must be modified.
Type
jmp-dr toolkit config update --user-watchdog-notification
at the shell prompt and press Enter.Type No and press Enter to modify the notification settings.
The disaster recovery configuration parameters to modify notification settings are displayed.
Modify the notification settings.
The modified notification settings are displayed in JSON format.
Press Enter to accept the changes.
The notification settings are modified when the command is executed.
Log in to the CLI of the Junos Space VIP node at the peer site to update the modifications made at the local site.
Type
jmp-dr toolkit config update --user-watchdog-notification
at the shell prompt and press Enter.Type No and press Enter to view the modified notification settings at the local site.
The modified notification settings are displayed in JSON format.
Press Enter to accept the changes.
The notification settings are updated when the command is executed.
To modify the failure detection settings at the active site:
Log in to the CLI of the Junos Space VIP node at the active site.
Type
jmp-dr toolkit config update --user-watchdog-failureDetection
at the shell prompt and press Enter.Type No and press Enter to modify the failure detection settings.
The disaster recovery configuration parameters to modify failure detection settings are displayed.
Modify the failure detection settings.
The modified failure detection settings are displayed in JSON format.
Press Enter to accept the changes.
The failure detection settings are modified when the command is executed.
The following is a sample screen output.
? If admin password of any node belonging to remote site is changed or if a new node with different admin password is added then please use option --user-core. Continue? Yes ######################### # # DR Watchdog # ######################### # failureDetection ? Do you want to use custom failure detection? No ? What's the threshold percentage to trigger failover? 50 ? What's the arbiters list file (note: please refer to example in /var/cache/jmp-geo/doc/samples/arbiters.list)? /var/cache/jmp-geo/doc/arbiters.list The modified user configuration in JSON format is as follows: { "user_watchdog_failureDetection_arbiters": { "lhs": "/var/cache/jmp-geo/config/arbiters.list", "rhs": "/var/cache/jmp-geo/doc/arbiters.list" } } ? Do you want to apply these changes? Yes Check status of DR remote site: up Update MySQL configuration if applicable [ OK ] Update services (such as jboss-dc, httpd, etc.) [ OK ] The configuration change is updated only at current site, please ensure to update at the remote site accordingly. Command completed.
Log in to the CLI of the Junos Space VIP node at the peer site to update the modifications made at the active site.
Type
jmp-dr toolkit config update --user-watchdog-failureDetection
at the shell prompt and press Enter.Type No and press Enter to view the modified failure detection settings at the local site.
The modified failure detection settings are displayed in JSON format.
Press Enter to accept the changes.
The failure detection settings are updated when the command is executed.
To modify the file backup settings at a site:
Log in to the CLI of the Junos Space VIP node at the site where the file backup settings must be modified.
Type
jmp-dr toolkit config update --user-file-backup
at the shell prompt and press Enter.Type No and press Enter to modify the file backup settings.
The disaster recovery configuration parameters to modify file backup settings are displayed.
Modify the file backup settings.
The modified file backup settings are displayed in JSON format.
Press Enter to accept the changes.
The file backup settings are modified when the command is executed.
Log in to the CLI of the Junos Space VIP node at the peer site to update the modifications made at the local site.
Type
jmp-dr toolkit config update --user-file-backup
at the shell prompt and press Enter.Type No and press Enter to view the modified file backup settings at the local site.
The modified file backup settings are displayed in JSON format.
Press Enter to accept the changes.
The file backup settings are updated when the command is executed.
To modify the file restore settings at a site:
Log in to the CLI of the Junos Space VIP node at the site where the file restore settings must be modified.
Type
jmp-dr toolkit config update --user-file-restore
at the shell prompt and press Enter.Type No and press Enter to modify the file restore settings.
The disaster recovery configuration parameters to modify file restore settings are displayed.
Modify the file restore settings.
The modified file restore settings are displayed in JSON format.
Press Enter to accept the changes.
The file restore settings are modified when the command is executed.
Log in to the CLI of the Junos Space VIP node at the peer site to update the modifications made at the local site.
Type
jmp-dr toolkit config update --user-file-restore
at the shell prompt and press Enter.Type No and press Enter to view the modified file restore settings at the local site.
The modified file restore settings are displayed in JSON format.
Press Enter to accept the changes.
The file restore settings are updated when the command is executed.
Use the
--user-core
option to:Update the modified VIP address of the load balancers of a site at the peer site.
Update the modified password of the load balancers of the standby a site at the active site.
Note:You can use the
--user-core
option to update the modified password of the active site at the standby site.Refer to Modifying the Network Settings of a Node in the Junos Space Fabric in the Junos Space Network Management Platform Workspaces Feature Guide for more information about modifying the VIP address of the load balancers.
Modify the SCP timeout settings at a site.
Log in to the CLI of the Junos Space VIP node at the site where the load balancer details are modified or where the SCP timeout settings must be modified.
Type
jmp-dr toolkit config update --user-core
at the shell prompt and press Enter.Press Enter to update the load balancer modifications or modify the SCP timeout settings.
The disaster recovery configuration parameters to modify load balancer settings are displayed.
Modify the load balancer settings.
The modified load balancer settings are displayed in JSON format.
Press Enter to apply the changes.
The load balancer settings are modified when the command is executed.
The following is a sample screen output.
[user1@host]# jmp-dr toolkit config update --user-core ######################### # # Load Balancers # ######################### ? What's the vip for load balancers at the standby site? 10.206.41.101 ? What are the unique admin passwords for load balancer nodes at the standby site (separated by comma, no space)? $ABC123 ? What's the scp timeout value (seconds)? 120 Check status of DR remote site: up Update MySQL configuration if applicable [ OK ] Update services (such as jboss-dc, httpd, etc.) [ OK ] The configuration change is updated only at current site, please ensure to update at the remote site accordingly. Command completed.
Log in to the CLI of the Junos Space VIP node at the peer site.
Type
jmp-dr toolkit config update --user-core
at the shell prompt and press Enter.The modified load balancer settings are displayed in JSON format.
Press Enter to accept the changes.
The load balancer settings are modified when the command is executed.
- Start the disaster recovery process on both sites from
the active site. To do so, type
jmp-dr start
at the shell prompt and press Enter.