- Prerequisite:
During the upgrade of ZStack, the core files and database of the current ZStack are backed up to the corresponding directory by default.
- Procedure:
- Back up the core files in ZStack of the previous version.
cp /usr/local/zstack/upgrade/2017-11-09-15-41-52 /root -r - Back up the database of the previous version.
cp /usr/local/zstack/db_backup/2017-11-09-15-42-43/backup.sql /root - Back up the database again.
zstack-ctl dump_mysql - Delete the current ZStack environment.
zstack-ctl stop rm -rf /usr/local/zstack - Use the previous installation package to directly install ZStack.
bash ZStack-installer-3.10.0.bin -D - Perform recovery by using the core files backed up in Step 1.
zstack-ctl stop mv /usr/local/zstack/apache-tomcat/webapps/zstack /usr/local/zstack/apache-tomcat/webapps/zstack-bk cp /root/2017-11-09-15-41-52/zstack /usr/local/zstack/apache-tomcat/webapps -r chown zstack:zstack /usr/local/zstack/apache-tomcat/webapps/zstack -R - Restore the database backed up in Step 2.
cat /root/backup.sql |mysql -u root -p zstack.mysql.password zstack - Start the ZStack management node service. Then, ZStack is successfully restored to the previous version.
zstack-ctl start
- Back up the core files in ZStack of the previous version.
During the upgrade of ZStack, if the upgrade fails due to secondary development or database adjustment, how can I restore the original ZStack? Print
Created by: ZStack Support
Modified on: Fri, 25 Mar, 2022 at 3:54 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.