How to Recover a Management Node from an Unexpected Failure
-
- The prerequisite is that the local management node has been configured for automatic database backup of other nodes.
Execute crontab -e to edit the database backup
30 */2 * * * zstack-ctl dump_mysql --host root@10.0.50.0 --d --keep-amount 24Database cloud-ctl dump_mysql /var/lib/zstack/from-zstack-remote-backup/ needs to prepare SSH password-free access from the management node to 10.0.50.0 in advance.
- Copy the latest database backup from the 10.0.50.0 database backup machine to the new node.
- On the new node, execute bash ZStack-installer.bin -E to install a NexaVM version consistent with the original database backup.
- Use the new node’s NexaVM request code to apply for a license and update it.
On the new node, execute cloud-ctl restore_mysql -f zstack- --mysql-root-password password - cloud-ctl start
- The prerequisite is that the local management node has been configured for automatic database backup of other nodes.
-
undefined nexus marked this topic as a regular topic