I have a snapshot that the SAN is saying is corrupted. I'm trying to delete it, but no go. I used "delete all" from within the VI client, to no avail. I tried to then consolidate the snapshot, but it failed because of file corruption. I don't care to save the data, I just want the corrupted file gone.
/vmfs/volumes/dd362778-b976554f/ICS LibreNMS # vim-cmd vmsvc/snapshot.get 24
Get Snapshot:
/vmfs/volumes/dd362778-b976554f/ICS LibreNMS # vim-cmd vmsvc/snapshot.removeall 24
Remove All Snapshots:
/vmfs/volumes/dd362778-b976554f/ICS LibreNMS # ls -ah
. ICS LibreNMS-000001.vmdk ICS LibreNMS.nvram ICS LibreNMS.vmx vmware-2.log
.. ICS LibreNMS-aux.xml ICS LibreNMS.vmdk ICS LibreNMS.vmxf vmware.log
ICS LibreNMS-000001-delta.vmdk ICS LibreNMS-flat.vmdk ICS LibreNMS.vmsd vmware-1.log
/vmfs/volumes/dd362778-b976554f/ICS LibreNMS # ls -hal
total 51662828
drwxr-xr-x 1 root root 14 May 31 03:47 .
drwxr-xr-x 1 root root 73 May 30 23:57 ..
-rw------- 1 root root 94.4G Jun 4 16:16 ICS LibreNMS-000001-delta.vmdk
-rw------- 1 root root 328 May 10 04:44 ICS LibreNMS-000001.vmdk
-rw-r--r-- 1 root root 13 May 31 01:59 ICS LibreNMS-aux.xml
-rw------- 1 root root 128.0G May 31 03:47 ICS LibreNMS-flat.vmdk
-rw------- 1 root root 8.5K May 30 21:45 ICS LibreNMS.nvram
-rw------- 1 root root 557 May 31 02:00 ICS LibreNMS.vmdk
-rw-r--r-- 1 root root 77 May 31 00:09 ICS LibreNMS.vmsd
-rwxr-xr-x 1 root root 2.8K May 30 21:45 ICS LibreNMS.vmx
-rw-r--r-- 1 root root 370 Apr 4 2020 ICS LibreNMS.vmxf
-rw-r--r-- 1 root root 531.4K Jan 25 09:57 vmware-1.log
-rw-r--r-- 1 root root 377.1K May 9 06:07 vmware-2.log
-rw-r--r-- 1 root root 185.7K May 30 21:45 vmware.log
Which vmdk is configured in the vmx ?
If it is
LibreNMS.vmdk
and losing 94 gb of data is ok then delete
-rw------- 1 root root 94.4G Jun 4 16:16 ICS LibreNMS-000001-delta.vmdk
-rw------- 1 root root 328 May 10 04:44 ICS LibreNMS-000001.vmdk
-rw-r--r-- 1 root root 77 May 31 00:09 ICS LibreNMS.vmsd
Dont do this if LibreNMS.vmdk or LibreNMS-flat.vmdk is the corrupted file.