Quantcast
Channel: VMware Communities : All Content - ESXi
Viewing all articles
Browse latest Browse all 8313

How to delete files locked by no process on a standalone ESXi 6.5 host?

$
0
0

I'm running ESXi 6.5 on a standalone Mac Pro: no federation or management software besides its own little web server and ssh.

 

After reboot and with no VMs running, trying to delete some dead VM files (with or without -i) results in this for each one:

 

  rm: can't remove 'vmware-3.log': Input/output error

 

Running vmfsfilelockinfo -p vmware-3.log reports that it's only this host has a lock (unsurprising, given that it's standalone):

 

vmfsfilelockinfo Version 2.0

Looking for lock owners on "vmware-3.log"

"vmware-3.log" is locked in Exclusive mode by host having mac address ['00:3e:e1:cd:9b:2b']

Trying to use information from VMFS Heartbeat

Host owning the lock on file is 192.168.19.106, lockMode : Exclusive

Total time taken : 4.1667826610000702 seconds.

 

# vim-cmd hostsvc/net/info | grep "mac ="

               mac = (string) [

         mac = "00:3e:e1:cd:9b:2b",

 

Running lsof shows no process with any interest in this file:

 

# lsof |grep wa.*3.*log

66709       swapobjd              SOCKET_UNIX_DATA            3   /dev/log duplex msg l:1 r:24

 

So it looks like this lock only exists in the imagination of the file system and/or kernel: there are no VMs running on this host.

 

I tried touch * as suggested elsewhere. No effect.

 

I want to delete the file - how best to proceed?

 

Thanks!


Viewing all articles
Browse latest Browse all 8313

Trending Articles