CloudStack SSVM啟動(dòng)條件源碼閱讀與問(wèn)題解決方法
CloudStack SSVM啟動(dòng)條件源碼閱讀與問(wèn)題解決方法:
在CloudStack建立zone的時(shí)候,經(jīng)常遇到SSVM不啟動(dòng),或者根本就沒(méi)有SSVM的情況,分析CloudStack日志,會(huì)發(fā)現(xiàn)有“Zone 1 is not ready to launch secondary storage VM yet”打印,意思是zone還未準(zhǔn)備好啟動(dòng)SSVM。
通過(guò)查詢CloudStack源代碼,發(fā)現(xiàn)啟動(dòng)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;
如果沒(méi)有獲取到,會(huì)打印如下警告:
Warn: Zone host is ready, but secondary storage vm template 3 is not ready on secondary storage: 1
解決辦法:檢查system template是否已經(jīng)下載完成(注意,要下載自己環(huán)境的hypervisor的system template)。
獲取zone的二級(jí)存儲(chǔ)。
select * from host where type = 'SecondaryStorage' and data_center_id = 1; # host id is 3
如果沒(méi)有獲取到,會(huì)打印如下警告:
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的關(guān)聯(lián)。
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.
如果沒(méi)有獲取到,會(huì)打印如下警告:
Warn: Zone host is ready, but secondary storage vm template 3 is not ready on secondary storage: 1
如果secondary storage是NFS,可以通過(guò)mount來(lái)檢查secondary storage是否能夠正常工作,如果secondary storage沒(méi)有問(wèn)題,則只能等待CloudStack自動(dòng)關(guān)聯(lián)上。
獲得host的主存儲(chǔ)。
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;
主存儲(chǔ)數(shù)量需要大于0,如果等于0,會(huì)打印如下警告:
Warn: Primary storage is not ready, wait until it is ready to launch secondary storage vm
沒(méi)有問(wèn)題后,CS會(huì)打印:Zone 1 is ready to launch secondary storage VM。 CS將會(huì)啟動(dòng) start secondary storage VM工作。
感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!
相關(guān)文章
CloudStack SSVM啟動(dòng)條件源碼閱讀與問(wèn)題解決方法
這篇文章主要介紹了CloudStack SSVM啟動(dòng)條件源碼閱讀與問(wèn)題解決方法的相關(guān)資料,需要的朋友可以參考下2016-11-11CloudStack 創(chuàng)建主存儲(chǔ)失敗解決方案
這篇文章主要介紹了CloudStack 創(chuàng)建主存儲(chǔ)失敗解決方案的相關(guān)資料,這里對(duì)創(chuàng)建主存儲(chǔ)失敗的解決方法做了具體的說(shuō)明,需要的朋友可以參考下2016-11-11CloudStack 安裝及使用過(guò)程中常見(jiàn)問(wèn)題匯總
這篇文章主要介紹了CloudStack 安裝及使用過(guò)程中常見(jiàn)問(wèn)題匯總的相關(guān)資料,需要的朋友可以參考下2016-11-11