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 ZStackCause:
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 repoSolution:
wget http://cdn.zstack.io/product_downloads/iso/ZStack-Cloud-x86_64-DVD-5.4.0-h84r.isozstack-upgrade ZStack-Cloud-x86_64-DVD-5.4.0-h84r.isoPrerequisite for restoration:
cp /usr/local/zstack/upgrade/2017-11-09-15-41-52 /root -rcp /usr/local/zstack/db_backup/2017-11-09-15-42-43/backup.sql /rootzstack-ctl dump_mysqlzstack-ctl stop rm -rf /usr/local/zstackbash ZStack-Cloud-installer.bin -Dzstack-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 -Rcat /root/backup.sql |mysql -u root -pzstack.mysql.password zstackzstack-ctl start
Note: If you set this parameter on the details page of a cluster, this global setting does not take effect on the cluster.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.
Note: If you set this parameter for certain host, this advanced setting of cluster does not take effect on the host.。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 itSolution 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 APIsSolution 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 statuszstack-ctl stop/start/stop_ui/start_ui/start_node/stop_node/restart_node/zstack-ctl configured_collect_logzstack-ctl dump_mysqlzstack-ctl restore_mysql -f back.gz --mysql-root-password passwordzstack-ctl change_ipzstack-ctl show_configurationzstack-ctl show_ui_configurationzstack-ctl install_license -f license_key.txtzstack-ctl reset_passwordzstack-ctl change_mysql_password --root-password zstack.mysql.password --user-name zstack --new-password password
Note: The zstack-ctl command has multiple subcommands. For detailed information about what these subcommands are and how to use them, see CTL Command Manual.