国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

CloudStack SSVM啟動條件源碼閱讀與問題解決方法

2019-11-02 16:27:28
字體:
來源:轉載
供稿:網友

CloudStack SSVM啟動條件源碼閱讀與問題解決方法:

 在CloudStack建立zone的時候,經常遇到SSVM不啟動,或者根本就沒有SSVM的情況,分析CloudStack日志,會發現有“Zone 1 is not ready to launch secondary storage VM yet”打印,意思是zone還未準備好啟動SSVM。

通過查詢CloudStack源代碼,發現啟動SSVM前有如下檢查:

        獲取Zone里的template。

        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;   

        如果沒有獲取到,會打印如下警告:

        Warn: Zone host is ready, but secondary storage vm template  3 is not ready on secondary storage: 1

        解決辦法:檢查system template是否已經下載完成(注意,要下載自己環境的hypervisor的system template)。

        獲取zone的二級存儲。

        select * from host where type = 'SecondaryStorage' and data_center_id = 1;  # host id is 3

        如果沒有獲取到,會打印如下警告:

        Warn: No secondary storage available in zone 1, wait until it is ready to launch secondary storage vm

        解決辦法:為zone 1建立secondary storage pool。

        獲取template和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.

        如果沒有獲取到,會打印如下警告:

        Warn: Zone host is ready, but secondary storage vm template  3 is not ready on secondary storage: 1

        如果secondary storage是NFS,可以通過mount來檢查secondary storage是否能夠正常工作,如果secondary storage沒有問題,則只能等待CloudStack自動關聯上。

        獲得host的主存儲。

        SELECT p.data_center_id,  count(ph.host_id) count  FROM storage_pool p, storage_pool_host_ref ph WHERE p.id = ph.pool_id AND p.data_center_id = 1 GROUP by p.data_center_id;

        主存儲數量需要大于0,如果等于0,會打印如下警告:

        Warn: Primary storage is not ready, wait until it is ready to launch secondary storage vm

沒有問題后,CS會打?。篫one  1 is ready to launch secondary storage VM。 CS將會啟動 start secondary storage VM工作。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 双柏县| 蒙城县| 乌拉特中旗| 贵州省| 云林县| 临沭县| 汝城县| 巴彦县| 县级市| 九龙城区| 依兰县| 祁东县| 安仁县| 华容县| 普定县| 项城市| 威海市| 广元市| 甘泉县| 汉寿县| 乐都县| 老河口市| 古浪县| 江津市| 集安市| 卢氏县| 襄垣县| 鄂伦春自治旗| 财经| 兴文县| 城市| 侯马市| 光泽县| 宁安市| 随州市| 中西区| 苏州市| 安丘市| 汉中市| 皋兰县| 商河县|