This article explains the process of DR configuration on both Active and Standby site.
jmp-dr init –a
[email protected]'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
######################### # # Load Balancers # ######################### What's the vip for load balancers at the standby site? 10.206.41.225 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 # backup for data in file system instead of DB What's the max number of backup files to keep? 3 What are the times of the day to run file backup (0-23)? 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 What are the days of the week to run file backup (0-6)? 0,1,2,3,4,5,6 # restore for data in file system instead of DB What are the times of the day to poll files from the active site (0-23)? 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 What are the days of the week to poll files from the active site (0-6)? 0,1,2,3,4,5,6
######################### # # 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 # notification What's the contact email address of service issues? [email protected] What's the dampening interval between emails of affected services (seconds)? 300 # failureDetection Do you want to use custom failure detection? No What's the threshold percentage to trigger failover? 0.5 What's the arbiters list file (note: please refer to example in /var/cache/jmp-geo/doc/samples/arbiters.list)? /home/admin/user1 Check status of DR remote site: up Prepare /var/cache/jmp-geo/incoming [ OK ] Configure contact email [ OK ] Modify firewall for DR remote IPs [ OK ] Configure NTP [ OK ] Configure MySQL database [ OK ] Configure PostgreSQL database [ OK ] Copy files to DR slave [ OK ] Command completed.
jmp-dr init –s
jmp-dr init -a --skip-user-config
######################### # # Load Balancers # ######################### What's the vip for load balancers at the active site? 10.206.41.220 What are the unique admin passwords for load balancer nodes at the active site (separated by comma, no space)? $ABC123 What's the scp timeout value (seconds)? 120 # backup for data in file system instead of DB What's the max number of backup files to keep? 3 What are the times of the day to run file backup (0-23)? 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 What are the days of the week to run file backup (0-6)? 0,1,2,3,4,5,6 # restore for data in file system instead of DB What are the times of the day to poll files from the active site (0-23)? 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 What are the days of the week to poll files from the active site (0-6)? 0,1,2,3,4,5,6
######################### # # 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 # notification What's the contact email address of service issues? [email protected] What's the dampening interval between emails of affected services (seconds)? 300 Check status of DR remote site: up Load /var/cache/jmp-geo/incoming/init.properties [ OK ] Configure contact email [ OK ] Modify firewall for DR remote IPs [ OK ] Configure NTP [ OK ] Sync jmp-geo group [ OK ] Configure MySQL database [ OK ] Configure PostgreSQL database [ OK ] Command completed.
jmp-dr start
jmp-dr start-a
jmp-dr start-s
[user1@host]# jmp-dr start Stop dr-watchdog if it's running [ OK ] Check status of DR remote site: up Check current DR role: active INFO: => start DR at current site: active Add device management IPs of DR remote site to up devices [ OK ] Setup MySQL replication: master-master [ OK ] Start MySQL dump [ OK ] Setup PostgreSQL replication [ OK ] Start file & RRD replication [ OK ] Open firewall for device traffic [ OK ] Start services(jboss,jboss-dc,etc.) [ OK ] Start dr-watchdog [ OK ] Copy files to DR slave site [ OK ] Update DR role of current site: active [ OK ] INFO: => start DR at DR remote site: standby Stop dr-watchdog if it's running [ OK ] Check status of DR remote site: up Check current DR role: standby Load /var/cache/jmp-geo/incoming/start.properties [ OK ] Stop services(jboss,jboss-dc,etc.) [ OK ] Block firewall for device traffic [ OK ] Reset MySQL init script and stop replication [ OK ] Scp backup file from peer site: /var/cache/jmp-geo/data/db.gz [ OK ] Start MySQL restore [ OK ] Setup MySQL replication and start replication [ OK ] Setup PostgreSQL replication [ OK ] Start files & RRD replication [ OK ] Start dr-watchdog [ OK ] Clean up /var/cache/jmp-geo/incoming [ OK ] Update DR role of current site: standby [ OK ] Command completed. Command completed.
jmp-dr health