Cloudstack SSVM Start condition source code reading and problem solving method _cloudstack

Source: Internet
Author: User
Tags cloudstack

Cloudstack SSVM Start condition source code reading and problem solving method:

When Cloudstack establish Zone, often encounter SSVM does not start, or there is no SSVM situation, analysis Cloudstack log, will find "Zone 1 is not ready to launch secondary VM Yet "print, meaning zone is not ready to start SSVM.

By querying the Cloudstack source code, it is found that the following check before starting SSVM:

Get the template in zone.

Select A.* from Vm_template A, host h where H.type = ' Routing ' and h.data_center_id = 1 and A.type = ' System ' and a . Hypervisor_type = H.hypervisor_type Limit 1;

If it is not obtained, the following warning is printed:

Warn:zone host is ready, but secondary storage VM Template 3 isn't ready on secondary storage:1

Workaround: Check to see if system template has been downloaded (note that you want to download the hypervisor system template for your own environment).

gets the level two storage of the zone.

SELECT * from host where type = ' secondarystorage ' and data_center_id = 1; # Host ID is 3

If it is not obtained, the following warning is printed:

Warn:no secondary storage available in zone 1, wait until it are ready to launch secondary VM

Solution: Establish secondary storage pool for zone 1.

Gets the association of template and host.

SELECT * from template_host_ref where host_id = 3 and template_id = 1 and download_state = ' downloaded '; # host ID and template ID is query by before.

If it is not obtained, the following warning is printed:

Warn:zone host is ready, but secondary storage VM Template 3 isn't ready on secondary storage:1

If the secondary storage is NFS, you can check that the secondary storage work properly by using the mount, and wait for secondary to automatically associate if storage is not a problem.

Gets the host's primary storage.

SELECT p.data_center_id, Count (ph.host_id) count from Storage_pool p, storage_pool_host_ref ph WHERE p.id = Ph.poo l_id and p.data_center_id = 1 GROUP by p.data_center_id;

The number of primary storage needs to be greater than 0, if equal to 0, print the following warning:

warn:primary storage is isn't ready, wait until it are ready to launch secondary VM

When there is no problem, CS will print: Zone 1 is ready to launch secondary storage VM. CS will start the start secondary storage VM work.

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.