Cloudstack Environment Redeployment:
Recently, the company's project needs, due to change the project needs to redeploy the environment, after some official website inquiries, and forums, blog information inquiries, finally resolved, here say how to achieve.
In the development of applications based on Cloudstack, often encountered to reinstall the Cloudstack, if all reload, too slow, so found a simple solution, only need to remove the storage SR and redeploy the Cloudstack database.
To implement the specific steps:
1), Stop Cloudstack service. Service cloud-management stop.
2), to MySQL query select uuid from Storage_pool; Use the method in http://www.jb51.net/article/96848.htm to remove the stored Sr.
3), delete cloudstack database, drop DB cloud; Drop database cloud_usage;
4), Redeploy CS database cloud-setup-databases Cloud:ctrix@localhost--deploy-as=root:ctrix
5, install the system template (different hypervisor please install different system template)/usr/lib64/cloud/agent/scripts/storage/secondary/cloud-install-sys-tmplt-m Home/secondary-u http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2-h xenserver-f
6), Service cloud-management start
Visit again, there will be a lovely welcome interface, the world is clean, start again.
Environment: The Red Hat virtual machine (cloudmanagement) installed in VMware under WINDOWS2008, the host is a two-set XenServer machine.
Thank you for reading, I hope to help you, thank you for your support for this site!