Cloudstack How the environment is redeployed _cloudstack

Source: Internet
Author: User
Tags mysql query cloudstack

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.