.. _Backing Up and Restoring Management Database: 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**. .. only:: ac .. image:: /images/stor_image1_7_ac.png :align: center :class: align-center .. only:: vz .. image:: /images/stor_image1_7_vz.png :align: center :class: align-center 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. .. _Restoring Management Database from Backup: 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 -i \ -f /mnt/vstorage/webcp/backup/ where ```` and ```` 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.