更新日期: 2012.10.20
最新內容更新請參考此篇 [VMware ESXi ghettoVCB 版本問題和錯誤訊息]
一、錯誤訊息
會出現此錯誤訊息,主要是因為當正在使用的虛擬機VM要備份的時後,會先做出一個snapshot檔。然後在備份的中途若有不當的中斷或停止時。此snapshot檔就會無法自動刪除。進而造成下次要備份時出現此錯誤訊息Snapshot found for「host」, backup will not take place。因此錯出現此錯誤訊息時需要手動自行刪除。
~# ./ghettoVCB.sh -f backup
Logging output to “/tmp/ghettoVCB-2011-12-30_15-50-12.log” … Insufficient arguments. 2011-12-30 15:50:13 — info: ========== ghettoVCB LOG START=============== 2011-12-30 15:50:13 — info: CONFIG – VERSION = 2011_11_19_1 2011-12-30 15:50:13 — info: CONFIG – GHETTOVCB_PID = 1428525 2011-12-30 15:50:13 — info: CONFIG – VM_BACKUP_VOLUME = /vmfs/volumes/backup 2011-12-30 15:50:13 — info: CONFIG – VM_BACKUP_ROTATION_COUNT = 3 2011-12-30 15:50:13 — info: CONFIG – VM_BACKUP_DIR_NAMING_CONVENTION= 2011-12-30_15-50-12 2011-12-30 15:50:13 — info: CONFIG – DISK_BACKUP_FORMAT = thin 2011-12-30 15:50:13 — info: CONFIG – POWER_VM_DOWN_BEFORE_BACKUP = 0 2011-12-30 15:50:13 — info: CONFIG – ENABLE_HARD_POWER_OFF = 0 2011-12-30 15:50:13 — info: CONFIG – ITER_TO_WAIT_SHUTDOWN = 3 2011-12-30 15:50:13 — info: CONFIG – POWER_DOWN_TIMEOUT = 5 2011-12-30 15:50:13 — info: CONFIG – SNAPSHOT_TIMEOUT = 15 2011-12-30 15:50:13 — info: CONFIG – LOG_LEVEL = info 2011-12-30 15:50:13 — info: CONFIG – BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2011-12-30_15-50-12.log 2011-12-30 15:50:13 — info: CONFIG – VM_SNAPSHOT_MEMORY = 0 2011-12-30 15:50:13 — info: CONFIG – VM_SNAPSHOT_QUIESCE = 0 2011-12-30 15:50:13 — info: CONFIG – VMDK_FILES_TO_BACKUP = all 2011-12-30 15:50:13 — info: CONFIG – EMAIL_LOG = 0 2011-12-30 15:50:13 — info: 2011-12-30 15:50:16 — info: Snapshot found for 「host」, backup will not take place 2011-12-30 15:50:16 — info: ###### Final status: ERROR: All VMs failed! ###### 2011-12-30 15:50:16 — info: ========== ghettoVCB LOG END ================= |
二、 手動刪除snapshot
請先登入VMware vSphere Client。
然後點選卡住的開台虛擬機右鍵
[linux]→[Snapshot]→[Snapshot Manager]→[ghettoVCB-snapshot-2012-01-05]→[Delete]
刪除之後,在重新備份就可以了。
如果想更加了解 VMware esx ( i ) ghettoVCB 的進階使用方式可參考下面的文章
VMware esxi 備份ghettoVCB.sh基本設定說明
VMware esxi 備份ghettoVCB.sh進階設定說明
VMware esxi 備份還原ghettoVCB-restore.sh 設定說明
VMware ESX(i)使用VMware vSphere Client做OVF備份與還原
感謝分享snapshot錯誤的解決方式
希望有幫助到你