這個問題僅出現在storage vMotion時,遷移是彈出報錯框——Call “VirtualMachine.Relocate” for object “VM-NAME” on vCenter Server “vCenter-Name” failed。
找到VMWare KB,說明vStorage API備份後VPX_DISABLED_METHODS未刪除,經檢查確實存在問題的VM有NB_LAST_BACKUP標誌。再按照KB裏所述SQL,找到VPX_DISABLED_METHODS相關行,刪除後問題解決。
- Stop the vCenter Services.
- Take a backup of the vCenter Server database.
- Run this command against the vCenter Server database.
1
select
*
from
VPX_VM
WHERE
FILE_NAME
LIKE
'%Virtual-Machine-Name%'
- Take note of the numerical ID value returned by the above SQL stmt, as this will be required in the SQL stmt in steps 5 and 6.
- Run this command against the vCenter Server database, to confirm the stale entry:
1
select
*
from
VPX_DISABLED_METHODS
WHERE
ENTITY_MO_ID_VAL =
'vm-<ID from step 4>'
- To remove the stale entry run this command against the vCenter Server database:
1
delete
from
VPX_DISABLED_METHODS
WHERE
ENTITY_MO_ID_VAL =
'vm-<ID from step 4>'
- Start vCenter Server Services, then retry the Storage vMotion.