Created
June 22, 2012 12:14
-
-
Save CrackerJackMack/2972401 to your computer and use it in GitHub Desktop.
PEW PEW reset cloudstack as a fresh install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/init.d/cloud-management stop | |
mysql -ppassword -e 'drop database cloud' | |
mysql -ppassword -e 'drop database cloud_usage' | |
cloud-setup-databases cloud:password@localhost --deploy-as=root:password | |
rm -rf /var/log/cloud/management/* | |
cloud-setup-management | |
/etc/init.d/cloud-management start |
for cloudstack 4.1 on rhel compatible
205 /etc/init.d/cloudstack-management stop
206 mysql -e 'drop database cloud'
207 mysql -e 'drop database cloud_usage'
216 cloudstack-setup-databases cloud:password@localhost --deploy-as=root
217 cloudstack-setup-management
218 /etc/init.d/cloudstack-management start
for cloudstack 4.1 on *rpm compatible
# systemctl stop cloudstack-management.service
# mysql -e 'drop database cloud'
# mysql -e 'drop database cloud_usage'
# cloudstack-setup-databases cloud:password@localhost --deploy-as=root:12345
# cloudstack-setup-management
# systemctl start cloudstack-management.service
# systemctl status cloudstack-management.service
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cheers this just saved me some time!