2018年8月17日 星期五

更新ESXi patch error - No image profile is found...

Q:前陣子在客戶端更新 ESXi時遇到更新失敗的狀況,一開始以為是要更新 update profile,後來找出問題是因為 image profile有問題。錯誤訊息如下:
“No image profile is found on the host or image profile is empty. An image profile is required to install or remove VIBs. To install an image profile, use the esxcli image profile install command.”

解決方式

由於來不及截圖紀錄,所以簡單的紀錄一下解決的流程(主要是參考此篇文章的做法【No image profile is found on the host or image profile is empty. An image profile is required to install or remove VIBs. To install an image profile, use the esxcli image profile install command】)
1. 從可以正常更新的 ESXi上複製 imgdb.tgz 至 share storage
cp /bootbank/imgdb.tgz /vmfs/volumes/<datastore>
2. 將 imgdb.tgz 從 share storage 複製到無法更新的 ESXi tmp目錄底下
cp /vmfs/volumes/<datastore> /tmp 
3. 進到 /tmp 目錄並解壓縮 imgdb.tgz
cd /tmp 
tar -xzf imgdb.tgz
4. 將解壓縮出來的 profile files檔案覆蓋至有問題的 profile目錄
cp /tmp/var/db/esximg/profiles/* /var/db/esximg/profiles/ 
5. 將解壓縮出來的 VIB files檔案覆蓋至有問題的 VIB目錄
cp /tmp/var/db/esximg/vibs/* /var/db/esximg/vibs/ 
6. 刪除損毀的 imgdb.tgz
rm /bootbank/imgdb.tgz
7. 將好的 imgdb.tgz複製到 /bootbank底下
cp /tmp/imgdb.tgz /bootbank/ 
8. 備份設定檔
/sbin/auto-backup.sh
9. ESXi重新開機
10. 重新在更新一次 patch

沒有留言:

張貼留言