Follow these steps to test the disaster recovery environment.
Before you make the backup server the new
production server, ensure the original production server is down
(not live). If you make the backup server the new production server
while the original production server is still live, you can experience
significant issues.
After completing your test of the failover
scenario (backup environment), you need to revert the server to
its original state, which you can do through the UI or by modifying
the configuration file.
(
Multi-tenant
) When
using Live Backup in a multi-tenant deployment, each host machine
has a backup server. When testing the disaster recovery environment,
follow these steps to test each host machine separately, including
the main account machine.
If you want to use Cortex XSOAR to backup the
server, do the following:
On the live production server, select
Settings
Advanced
Backups
Switch Hosts
.
(
Multi-tenant
) - For a multi-tenant deployment,
go to
Settings
Account
Management
Hosts
.
If you want to switch for the main host instead, go to
Settings
Account Management
Main Hosts
. Select the desired
host, click the
Live Backup
button, and then
Switch
Hosts
.
When prompted, complete the online
Switch Hosts
instructions.
Ensure that the production server is not live.
(
Multi-tenant
) - Ensure that the production server
for this machine is not live.
Go to the backup server and follow the on-screen instructions to
make the backup server the production server.
In the backup server environment, go to
Settings
About
Troubleshooting
.
For the
External Host Name
key, update
the value to the host name of the backup server (the new production server).
The backup server is unaware of its external host name.
After
a successful switch, the backup server is now live.
If you want to use a configuration file to test the DR
environment, do the following:
On the production server, stop the server:
sudo service demisto stop
Open the
/etc/demisto.conf
file
on the production server. If the
Server.dr.enabled
property
is in the file, change it to
true
. If it
is not in the file, add
Server.dr.enabled
and
set it to
true
.
Start the server and verify it is in disaster recovery
mode. You should see
This is currently the backup server
.
On the backup server, stop the server:
sudo service demisto stop
Open the
/etc/demisto.conf
file
on the backup server. If the
Server.dr.enabled
property
is in the file, change it to
false
. If it
is not in the file, add
Server.dr.enabled
and
set it to
false
.
Start the backup server.
The original production server is now the backup server
and the original backup server is now the production server. Access
the new production server using its IP address to check that the
server is up and running.
To revert to the original settings, repeat the steps
above.
When following the instructions, remember the backup server
is now the production server and the production server is now the
backup server.