Finding VMs With Multiple vmx*vswp Files

By | September 1, 2014

Last month we ran into an issue where VMs were failing vmotion (that was kicked off DRS or otherwise).

The issue seems to occur when the VM has multiple vmx-*.vswp files.

There should only be one file, but for whatever reason (weird HA stuff) a phantom file is created that is there but is not in use.

During the vMotion, it tries to validte both vmx-*.vswp files and chokes since one is there but not really in use.

The fix is to try to rename both files and the one that renames is the bad one.


Below is a script to create a csv file of VMs that have more than one vmx*vswp file.


Leave a Reply

Your email address will not be published. Required fields are marked *