Skip to content

Instantly share code, notes, and snippets.

@CrackerJackMack
Created June 22, 2012 12:14
Show Gist options
  • Save CrackerJackMack/2972401 to your computer and use it in GitHub Desktop.
Save CrackerJackMack/2972401 to your computer and use it in GitHub Desktop.
PEW PEW reset cloudstack as a fresh install
/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
@iainlbc
Copy link

iainlbc commented Feb 25, 2013

Cheers this just saved me some time!

@mtward
Copy link

mtward commented Jul 20, 2013

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

@xuanyuanaosheng
Copy link

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