Quantcast
Channel: VMware Communities : Popular Discussions - VMware ESX 4
Viewing all articles
Browse latest Browse all 36074

Cannot delete corrupt vswp file

$
0
0

 

Hi,

 

 

I have an "ESX 4.0.0 build-193498" system which I am trying to recover after a power outage.

 

 

One of my VMs won't power on because of a problem with the swap file.  The vmware.log file shows:

 

CreateVM: Swap: generating normal swap file name.
Swap file path: '/vmfs/volumes/4b1faea6-92cc9ea4-f107-002481cfa48a/Cobra(AD)/Cobra(AD)-0e63a01e.vswp'
Msg_Post:Error
http://msg.vmmonVMK.creatVMFailed Could not power on VM : Not Found
http://msg.monitorLoop.createVMFailed Failed to power on VM----



...

 

The output of 'ls -lah  /vmfs/volumes/4b1faea6-92cc9ea4-f107-002481cfa48a/Cobra(AD)/Cobra(AD)-0e63a01e.vswp' is:

 

?----


?    ?       ?           ?  Cobra(AD)-0e63a01e.vswp

 

So it looks like I have a corrupt file on the '/vmfs/volumes/4b1faea6-92cc9ea4-f107-002481cfa48a' file system.

 

 

I believe that removing the swap file will cause the system to create a new one the next time the VM is powered up.  However, if I try to delete the file I get an error

 

rm Cobra(AD)-0e63a01e.vswp
rm : cannot lstat 'Cobra(AD)/Cobra(AD)-0e63a01e.vswp': No such file or directory

 

So I can't run my VM and I can't remove the corrupt file which is stopping the VM from running.

 

 

How do I get my VM running again? Is there some way to delete this corrupt file?  Or to check the /vmfs file system (googling around suggests that fsck cannot be applied to /vmfs).

 

 

Regards,

 

 

Gavin

 

 


Viewing all articles
Browse latest Browse all 36074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>