You can restore a management node database from backup on the same management node or any node in the storage cluster.
- If management node high availability is enabled, you cannot restore database backups by using the script. In this case, contact the technical support team.
vstorage-ui-backendservice must be running on a single node in the storage cluster. If the management node database is restored on a different node, the previous management node must be re-deployed.
- The management database is backed up automatically or manually, as described in Backing up management database.
To restore a management node database from backup
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>
<private_net_iface>are interfaces assigned the public and private networks. If required, you can specify the same network interface in both parameters.
-foption specifies the path to the backup file. If omitted, the management node database will be restored from the latest backup.
For example, if the network interface eth0 is connected to the Public network, the network interface eth1 is connected to the Private network, and you want to restore the management node database from the backup backup-20211026000001.tar, run:
# /usr/libexec/vstorage-ui-backend/bin/restore-management-node.sh -x eth0 -i eth1 \ -f /mnt/vstorage/webcp/backup/backup-20211026000001.tar
To access the admin panel, use the public IP address of the node with the restored MN database.