ZStack Cloud Platform
Single Server, Free Trial for One Year
This chapter provides solutions for errors encountered during fundamental operations in ZStack Cloud.
bash /opt/zstack-installer.bin -E
command to install ZStack Cloud; bash /opt/zstack-installer.bin
command to install ZStack Cloud Community.Fail Reason: /usr/local/zstack is existing. Please delete it manually before installing a new ZStack
Cause:
Now, a ZStack Cloud already exists in the system. Repeated installation is not allowed.
rm -rf /usr/local/zstack; bash zstack-installer.bin -D
command.Solution:
Check the /tmp/zstack_installation.log path. Then try to solve this problem according to error details.
mount: /dev/loop0 is write-protected, mounting read-only /root Current release h79c not matched the new ISO h84r, Use zstack-upgrade -r xxx.iso to update current repo, Use zstack-upgrade -a/--add_repo xxx.iso to add a new repo
Solution:
wget http://cdn.zstack.io/product_downloads/iso/ZStack-Cloud-x86_64-DVD-5.3.28-h84r.iso
zstack-upgrade ZStack-Cloud-x86_64-DVD-5.3.28-h84r.iso
Prerequisite for restoration:
cp /usr/local/zstack/upgrade/2017-11-09-15-41-52 /root -r
cp /usr/local/zstack/db_backup/2017-11-09-15-42-43/backup.sql /root
zstack-ctl dump_mysql
zstack-ctl stop rm -rf /usr/local/zstack
bash ZStack-Cloud-installer.bin -D
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
cat /root/backup.sql |mysql -u root -pzstack.mysql.password zstack
zstack-ctl start
On the main menu of ZStack Cloud, choose . Select the target cluster and enter its details page. Click Advanced Settings on the top row and you can configure Reserved Memory of Host. The default is 1GB.
UpdateResourceConfig category=kvm name=reservedMemory resourceUuid=e2f4836723a2490095768fe611c540b1 value=10G # resourceUuid is the host UUID, while value is the reserved memory size of the host.
ZStack Cloud services will automatically start after the management node (MN) is restarted.
You can check its status by using the systemctl status/start/stop/restart mariadb
command.
ERROR: failed to connect to the mysql server[hostname:10.0.0.18, port:3306, user:zstack, password:zstack.password]
mysql -u zstack -pzstack.password -h 10.0.0.18
.8080 is occupied by some process. Please use netstat to find out and stop it
Solution 2:
Run the netstat -anp|grep 8080
command to find out the occupied 8080 and stop it. Then restart ZStack Cloud.
MN status: Unknown, the management node seems to become zombie as it stops responding APIs
Solution 3:
Insufficient memory may cause such messaging failures. To resolve this issue, allocate more memory and avoid reusing the management node for compute tasks.
ZStack Cloud provides zstack-ctl command to control services and resources.
zstack-ctl status
zstack-ctl stop/start/stop_ui/start_ui/start_node/stop_node/restart_node/
zstack-ctl configured_collect_log
zstack-ctl dump_mysql
zstack-ctl restore_mysql -f back.gz --mysql-root-password password
zstack-ctl change_ip
zstack-ctl show_configuration
zstack-ctl show_ui_configuration
zstack-ctl install_license -f license_key.txt
zstack-ctl reset_password
zstack-ctl change_mysql_password --root-password zstack.mysql.password --user-name zstack --new-password password
The zstack-ctl command has multiple subcommands. For detailed information about what these subcommands are and how to use them, see CTL Command Manual.