6.7. Backing Up and Restoring Management Database

Node information, statistics, and configurations are stored in a database on the management node (the one with the admin panel). Backups of this database are created automatically every day. If the management node is not highly available, restoring such a backup recovers the node in case of failure or database corruption.

Important

Database backups cannot be restored if management node high availability is enabled and/or if the compute cluster is deployed. For this reason, it is highly recommended to set up management node HA before deploying the compute cluster.

To back up the database manually, open the SETTINGS > Management node > Backup screen and click BACKUP NOW.

../_images/stor_image1_7_ac.png

Once backup is completed, the Last backup date will be refreshed.

Warning

Do not rename the backup file! Otherwise you will not be able to restore the management database from it.

6.7.1. Restoring Management Database from Backup

You can restore a management node database from backup on the same management node or any node assigned to the cluster.

Warning

The vstorage-ui-backend service must be up and running only on one node in a cluster. Thus, when restoring a management node database on another storage node, make sure the service is stopped on the current management node or the node itself is offline.

Run the following script on the node where the MN database will be restored:

# /usr/libexec/vstorage-ui-backend/bin/restore-management-node.sh \
-x <public_net_iface> -i <private_net_iface> \
-f /mnt/vstorage/webcp/backup/<backup_file>

where <public_net_iface> and <private_net_iface> are interfaces assigned the Public and Private networks, respectively. If required, you can specify the same network interface in both parameters. If the -f option is omitted, the management node database will be restored from the latest backup.

To access the admin panel, use the public IP address of the node with the restored MN database.