補覺鳴詩

學海無涯


  • 首頁

  • archive

  • 關於我

  • 搜尋

citrix xenserver 故障處理、改 host-uuid

時間: 2019-12-15   |   分類: xenserver   | 字數: 255 字 | 閱讀: 1分鐘 | 閱讀次數:

移除外接設備、網路

 

取得 host-uuid

xe host-uuid
cat /etc/xensource-inventory | grep -i installation_uuid

 

轉 standalone

把自己提升為 master
xe pool-emergency-transition-to-master uuid=
reboot

 

網路不通

console 畫面 emergency network reset
reboot

 

設定 management IP

 

ssh 、 xen center 管理
xe host-list
移除自己以外的 host
xe host-forget uuid= 可以用 tab 代出
或是
xe pool-eject host-uuid=

如果遇到無法移除
查看該 host 使用中 VM
xe vm-list resident-on=

停止 VM (遇到移不掉無所謂)
xe vm-reset-powerstate uuid= –force

然後利用 xencenter 轉為 standalone
或是用指令
xe pool-list
xe pool-param-set name-label=”” uuid=
reboot

 

=============================================
移除所有 Storage Repository
列出清單
xe sr-list

找出 pbd UUID
xe pbd-list sr-uuid=

找出 unplug UUID
xe pbd-unplug uuid= (非 sr-uuid )

移除 Storage Repository
xe sr-forget uuid=

=============================================

改 host-UUID
修改 /etc/xensource-inventory INSTALLATION_UUID
改名 mv /var/xapi/state.db /var/xapi/state1.db
reboot

xe host-list
會列出兩個 host UUID
xe host-forget uuid=<舊的 UUID>  可以用 tab 代出

執行 xe pool-emergency-transition-to-master
reboot

 

=============================================
xe service 沒顯示網卡 -> emergency network reset

 

 

comments powered by Disqus >
Owan

Owan

愛貓如癡

131 日誌
29 分類
37 標籤
GitHub
© 2010 - 2022 補覺鳴詩
Powered by - Hugo v0.96.0 / Theme by - NexT
0%