天天看點

備份VM後VPX_DISABLED_METHODS未删除,導緻vMotion失敗

 這個問題僅出現在storage vMotion時,遷移是彈出報錯框——Call “VirtualMachine.Relocate” for object “VM-NAME” on vCenter Server “vCenter-Name” failed。

Stop the vCenter Services.

Take a backup of the vCenter Server database.

Run this command against the vCenter Server database.

1

<code>select</code> <code>*</code><code>from</code> <code>VPX_VM</code><code>WHERE</code> <code>FILE_NAME</code><code>LIKE</code> <code>'%Virtual-Machine-Name%'</code>

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:

<code>select</code> <code>*</code><code>from</code> <code>VPX_DISABLED_METHODS</code><code>WHERE</code> <code>ENTITY_MO_ID_VAL =</code><code>'vm-&lt;ID from step 4&gt;'</code>

To remove the stale entry run this command against the vCenter Server database:

<code>delete</code> <code>from</code> <code>VPX_DISABLED_METHODS</code><code>WHERE</code> <code>ENTITY_MO_ID_VAL =</code><code>'vm-&lt;ID from step 4&gt;'</code>

Start vCenter Server Services, then retry the Storage vMotion.

本文轉自 waydee 51CTO部落格,原文連結:http://blog.51cto.com/waydee/957221,如需轉載請自行聯系原作者