Storware Backup and Disaster Recovery Guide

Storware Backup and Recovery software allows to perform backup and disaster recovery for virtual machines running on Virtuozzo Infrastructure. The goal of this guide is to simplify Storware integration with Virtuozzo.

Minimum requirements

Storware Backup & Recovery server

  • 64-bit 4 cores processor
  • 4 GB RAM
  • 20 GB free disk space for the operating system and Storware Backup and Recovery installation

Storware Backup & Recovery node

  • 64-bit 4 cores processor
  • 6 GB RAM
  • 20 GB free disk space for the operating system and Storware Backup and Recovery installation
  • Free disk space for data staging. To estimate the free space requirement, use the following equation: (size of the biggest virtual machine) * (number of parallel backup threads)

Deploying and configuring Storware Backup & Recovery

Prerequisites

1. Deploy two virtual machines with CentOS 8 or 9 on your Virtuozzo Infrastructure cluster: one VM for the Storware Backup & Recovery server and one VM for the Storware Backup & Recovery node.

2. Connect to the created VMs via SSH.

3. In both VMs, create the /etc/yum.repos.d/vProtect.repo file with the following content:

1
2
3
4
5
# Storware Backup & Recovery - Enterprise backup solution for virtual environments repository
[vprotect]
name = vProtect
baseurl = https://repo.storware.eu/storware/current/el9/
gpgcheck = 0

Server installation steps

1. Install the Storware Backup & Recovery server by running:

1
# dnf -y install vprotect-server

2. Prepare the database root password and run the command:

1
# vprotect-server-configure

3. Start the Storware Backup & Recovery server service (it can take around a minute for the server to start):

1
# systemctl start vprotect-server

4. After the server service starts, the server will be listening on port 8181. Open port 8181 on the firewall, so the node and the administrator can access the server. You can also redirect the default HTTPS port 443 to 8181 for easier management.

To open port 8181 using the system firewall, run:

1
2
# firewall-cmd --add-port=8181/tcp --permanent
# firewall-cmd --complete-reload

You can also use port 8080 for the server service. To open it, use these commands:

1
2
# firewall-cmd --add-port=8080/tcp --permanent
# firewall-cmd --complete-reload

To forward the default HTTPS port (443) to port 8181, you can use the following script:

1
# /opt/vprotect/scripts/ssl_port_forwarding_firewall-cmd.sh

Node installation steps

1. Install the Storware Backup & Recovery node by running:

1
# dnf -y install vprotect-node

2. Register the node with the following command and provide a password when prompted:

1
# vprotect node -r <node_name> <admin_user> https://<server_address>/api

Where:

  • node_name is the name under which the node will appear in the system
  • admin_user is the login of the administrative user
  • server_address is address of the server installed in the previous steps

Example for the default local installation:

1
# vprotect node -r node1 admin https://localhost:8181/api

If you use port 8080:

1
# vprotect node -r node1 admin https://localhost:8080/api

3. Start the Storware Backup & Recovery node service:

1
# systemctl start vprotect-node

4. Run the script to configure the OS for the node, which includes changing the QEMU user/group to vprotect, disabling SELinux, adding Storware Backup & Recovery to the disk group and sudoers policy to allow it to run privileged commands:

1
# vprotect-node-configure

5. Reboot the Storware Backup & Recovery VM to apply the OS-specific settings:

1
# reboot

Post-installation steps

1. Wait for the installation to complete successfully.

2. Log in to the Storware Backup & Recovery server using https://IP_OF_YOUR_MACHINE with the local node registered and running. By default, Storware Backup & Recovery has one admin account admin with the password vPr0tect.

3. Prepare your staging space on the Storware Backup & Recovery node, as described in Staging space configuration.

4. Configure access to the hypervisors and backup destinations, as described in Initial Configuration.

Configuring the backup destinations on the Storware Backup & Recovery node

Note: NFS storage is needed for replicating virtual machines between different clusters (from one cluster to another).

1. Set up a file system, as described in File system.

2. Set up NFS storage:

2.1. Deploy the NFS server (for example, on your Virtuozzo Infrastructure cluster).

2.2. Create a share.

2.3. Go to the VM with the Storware agent and run:

1
2
# mkdir /destination_nfs
# chown vprotect:vprotect -R /destination_nfs/

2.4. Add this line to the /etc/fstab file to automatically mount the new file system after reboot:

1
<share_ip>:/storware /destination_nfs nfs defaults  0 0

2.5. Run the following commands:

1
2
3
# mount /destination_nfs/
# systemctl daemon-reload
# reboot

Configuring the backup destination on the Storware Backup & Recovery admin panel

1. Log in to the admin panel (UI).

2. Go to the Backup DestinationsFS screen.

3. Create a File System (Synthetic) and specify your NFS share.

storware settings

4. Assign the created backup destination to the node.

storware nodes

Adding a new virtualization provider

Important: Select the virtualization provider Virtuozzo.

1. Log in to the Storware Backup & Recovery server at https://IP_OF_YOUR_MACHINE.

2. Go to SettingsGlobal SettingsLicense and add your license key.

3. Go to Virtual EnvironmentVirtual Providers and add the virtual provider. Fill in the fields for hypervisor manager. For example:

Note: The node configuration must be created and selected for each node. To create a new node configuration, go to NodesNodes Configurations and click Create. Then, you need to assign the created node configuration to the node.

storware virtual provider

4. Click Save.

5. Check test connectivity.

6. Execute the inventory synchronization.

7. Add the backup destinations:

Adding non-default domains to the Storware Backup & Recovery admin panel

You need to create and grant <username> the System administrator role in the Default domain. Storware Backup & Recovery will use this account to back up and restore virtual machines in any child project within the Default domain. To do this, run:

1
2
3
4
# openstack --insecure user create <username> --password <password>
# openstack --insecure user set --project admin --project-domain Default --domain Default <username>
# openstack --insecure role add --domain Default --user <username> --user-domain Default compute --inherited
# openstack --insecure role add --domain Default --user <username> --user-domain Default admin --inherited

To manage backups of virtual machines in other domains, run the following command for each domain:

1
# openstack --insecure role add --domain <domain_name> --user <username> --user-domain Default admin --inherited

Important! You need to disable the Use domain-scoped authorization option. To do this, go to Virtual EnvironmentVP and click Settings.

storware general settings

Only one domain should be used for authentication. For example:

storware statistics

Changing the inventory synchronization interval

Inventory synchronization is a scan for changes in the VM inventory on a Virtuozzo Infrastructure cluster. The default synchronization interval is 8 hours.

To change this interval, go to the SettingsGlobal screen and specify your value in the Periodic inventory synchronization interval field.

storware global settings

Please contact us if you have any questions.