Hystax disaster recovery installation and configuration
You can configure recovery of data and IT infrastructure in case of unexpected incidents using the Hystax Acura — Disaster Recovery service without pausing application operation. Using the service allows you to optimize the following metrics:
- Recovery Point Objective (RPO) — the time between the creation of the last backup and the moment the disaster occurs. It can be configured individually for each resource.
- Recovery Time Objective (RTO) — the time between the reaction to a disaster and the infrastructure recovery. The service allows you to minimize this metric.
After completing all the steps of the instructions, you will:
- Create an account in Hystax Acura — Disaster Recovery via VK Cloud.
- Install the agent on the VM and perform data replication for it.
- Create a backup infrastructure using a recovery plan.
- Recover the backed-up infrastructure in VK Cloud.
By using the service, you agree to the license agreements of the Marketplace and Hystax Acura — Disaster Recovery services.
-
Register in VK Cloud.
-
Set up two-factor authentication (2FA) for the account on whose behalf the restored infrastructure will be deployed.
-
Create a VM for which recovery will be applied. The
Ubuntu-DRVM running Ubuntu 18.04 will be used as part of the quick start. -
Connect the Hystax Acura — Disaster Recovery service.
Wait for the installation to complete — an email with a login and password will arrive. The service will be deployed at https://dr.mcs-cloud.ru (the Hystax Acura console).
-
Sign in to the Hystax Acura console using the login and password you received.
-
Click the Install replication agents button.
-
At the Agent selection step, select Linux and click the Next button.
-
At the Agent settings step, specify the parameters:
- Machines group:
Default. - Select target Linux distribution:
Debian/Ubuntu (.deb package). - Snapshot driver deployment type:
DKMS.
- Machines group:
-
Click the Next button.
-
Install the agent on the target VM, following the instructions for the Ubuntu distribution.
After the agent is installed, the
Ubuntu-DRVM will appear on the main page of the Hystax Acura console with the Unprotected status. -
Expand the
Ubuntu-DRVM menu in the Machines Groups list and select the Edit Replication schedule option. In the window that opens, specify the parameters:- Use custom Replication schedule settings: select the option.
- Volume availability zone:
MS1. - Volume type:
CEPH-HDD.
-
Click the Save button.
-
Expand the
Ubuntu-DRVM menu and select the Start Protection option. -
Wait for the operation to complete — the VM status will change to Protected.
-
Click the Create DR plan button.
-
In the Name field, specify the plan name
DR-plan. -
Go to the Expert tab and click the Generate DR plan from all machines button.
A JSON file with the
Ubuntu-DRVM will be generated. -
Adjust the plan according to the requirements for recovering the VM after failures:
- In the
subnet_idparameter, specify the network identifier for theUbuntu-DRVM. - In the
flavorparameter, specify the name of the VM template; check it using theopenstack flavor listcommand.
For a detailed description of the parameters, see the official Hystax Acura documentation.
- In the
-
Click the Save button.
-
Go to the Recover section.
-
Select the
DR-planplan and click the Next button. -
In the Cloud Site Name field, specify the value
VK-Cloud-infraand click the Run Recover button.Creation of the backup infrastructure will begin.
-
If the process completes successfully,
VK-Cloud-infrawith the Active status will appear in the Cloud Site block. -
If the process completes with errors, restart it:
- In the Cloud Sites block, click the Delete button for the process that completed with an error, and confirm the deletion.
- In the DR plans block, click the Edit button for the
DR-planplan. - Make the necessary changes (in basic or expert mode).
- Click the Save button.
- Run the plan again.
-
-
Go to the Failback section.
-
At the Select target cloud type step, select the OPENSTACK option and click the Next button.
-
At the Select target environment step, select the New OpenStack option and specify the parameters:
- Cloud name:
VK Cloud. - Keystone API endpoint: the Keystone value from the list of endpoints; for VK Cloud —
https://infra.mail.ru:5000/v3/. - User domain: the User Domain Name value from the project settings.
- Username: the name of a user with API access and a role no lower than Project Administrator.
- Password: the user's password.
- Target project domain: the Project Domain ID value from the project settings.
- Target project ID: the Project ID value from the project settings
- Service Network: the UUID of the network into which the VM will be deployed.
- Floating IP Network: the
ext-netexternal network.
- Cloud name:
-
Click the Next button.
-
At the Select resource step, select
VK-Cloud-infrafrom the From Cloud Site list. -
Click the Next button.
-
At the Failback settings step, specify the name of the infrastructure being restored.
-
Click the Start Failback button.
The infrastructure in VK Cloud will be brought to a state matching
VK-Cloud-infra.
Find the restored VM in VK Cloud (<PROJECT_PID>_cloud_agent), perform arbitrary operations on it.
Running VMs consume computing resources. If you no longer need them: