A general system error occurred: Missing datatstore for backing file ds:///vmfs

This Error appear when we do vmotion on vcenter from host A to host B

Completely error “A general system error occurred: Missing datatstore for backing file ds:///vmfs
/volumes/datastore-name/vm-name(id-vmname)/vm-name
(id-vmname).vmdk

Symtoms :

•Changes are not recognized in vCenter Server when you edit a virtual machine’s .vmx file.
•If you use the Remove from Inventory option to remove the virtual machine, you must re-add it manually with the datastore browser which generates a new Inventory ID

Cause :

The virtual machine’s .vmx configuration file can be reloaded from the command line. This operation does not generate a new Inventory ID (Vmid) for the virtual machine and allows it to stay in the same resource pool.

You can do migrate without powering off the vm’s.

Do this Step as below :
1. ssh session to host which vm have error / direct to console and cli to host
2. Do this command cli as below :
vim-cmd vmsvc/getallvms | grep -i name-of-vm
3. You can see which vm that you grep like this “shown the number of inventory id inventory-vmx-id
inventory-vmx-id vm-name(id-vmname)[datastore-name] vm-name (id-vmname)/vm-name id-vmname).vmx Operating System Guest vmx-08

4. You have reload the inventory id,
vim-cmd vmsvc/reload inventory-vmx-id

example command line :

vm name have error : avenger007(10a96b15-a18d-4ca7-a460-9f1c0ddbc919)

~ # vim-cmd vmsvc/getallvms |grep -i avenger007
339      avenger007(10a96b15-a18d-4ca7-a460-9f1c0ddbc919)[DATASTORE01] avenger007 (10a96b15-a18d-4ca7-a460-9f1c0ddbc919)/Windows-WINSRV-R2-2008-ENT-64bit(10a96b15-a18d-4ca7-a460-9f1c0ddbc919).vmx windows7Server64Guest vmx-08
~ # vim-cmd vmsvc/reload 339

note : inventory id = 339

If you have many vm’s happen you just ssh to your each host then do

vim-cmd vmsvc/getallvms | grep -i name-of-vm
vim-cmd vmsvc/reload inventory-vmx-id

I hope my blog can help solve your problem

KB Link “http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026043”

Thanks

Purwandi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s