
In short
- Find the layer that failed: storage device, partition table, VMFS metadata or the VM files.
- Use read-only commands first; never create a new datastore on the same device.
- Flat VMDK files can be extracted even from damaged VMFS; snapshot chains must be rebuilt in the right order.
Four layers, four kinds of failure
| Layer | Symptom | Read-only check |
|---|---|---|
| Storage device (RAID, LUN) | Device missing or dead path | esxcli storage core device list, esxcli storage core path list |
| Partition table | Device present, no VMFS partition | partedUtil getptbl /vmfs/devices/disks/naa.xxx |
| VMFS metadata | Datastore inaccessible or not mounted | esxcli storage vmfs extent list, voma -m vmfs -f check |
| VM files | Datastore fine, VM will not start | Descriptor and flat files, snapshot chain |
Check the layers from the bottom up. A datastore that is "inaccessible" because the RAID controller lost a disk needs a completely different approach from one with damaged VMFS metadata.
Datastore detected as a snapshot
After a SAN firmware update, a LUN copy or a change of LUN ID, ESXi can see the VMFS signature as belonging to another device and refuses to mount it automatically. esxcli storage vmfs snapshot list shows such volumes. You can mount them while keeping the signature (esxcli storage vmfs snapshot mount) or write a new signature (resignature). Mounting with the existing signature changes nothing on disk and is the safer first step; resignaturing changes the datastore UUID and every VM must then be re-registered.
VMFS metadata damaged
VOMA (vSphere On-disk Metadata Analyzer) checks VMFS read-only in check mode: voma -m vmfs -f check -d /vmfs/devices/disks/naa.xxx:1. The datastore must be unmounted on all hosts. Save the output. VOMA also has fix modes; use them only on a copy of the LUN, because a repair that goes wrong can remove the very metadata needed to find the VM files.
Also save /var/log/vmkernel.log and /var/log/hostd.log from the time the datastore was lost; they usually show I/O errors, lost paths or lock problems.
The VM files
A virtual disk consists of a small text descriptor (name.vmdk) and the data file (name-flat.vmdk). Snapshots add delta files (name-000001-delta.vmdk on VMFS 5, name-000001-sesparse.vmdk on VMFS 6) whose descriptors point to their parent through the parentCID.
- A missing descriptor can be recreated if the flat file is intact: the disk size and geometry must match exactly.
- A broken snapshot chain shows up as "The parent virtual disk has been modified since the child was created". Do not use "Delete all snapshots" or consolidation while the chain is broken: it merges in the wrong order. Copy all files of the VM first.
- If the datastore is full, a VM with snapshots stops and asks a question in the client. Free space on the datastore rather than deleting delta files.
What not to do
- Do not create a new datastore on the device, even if the client offers it.
- Do not run VOMA in fix mode, or partedUtil setptbl, on the only copy.
- Do not delete delta or sesparse files to "free space".
- Do not reinstall ESXi onto the disk that also holds the datastore.
How we recover it
- The disks or the LUN are imaged; a failed RAID underneath is rebuilt first, see Dell PERC shows a foreign configuration: import, clear or stop?.
- The VMFS volume is analysed on the image; if its metadata is damaged, the file descriptors and the allocation of each VMDK are rebuilt from the remaining structures.
- Flat files and snapshot deltas are extracted and the chain is consolidated in the correct order.
- The guest file systems (NTFS, ext4, XFS) and databases inside are checked, and the VMs are delivered as VMDK files or as individual files.
Example: datastore lost after a SAN update
A wholesaler in Wiener Neustadt updates the firmware of its iSCSI storage. Afterwards the ESXi host shows the datastore as missing. esxcli storage vmfs snapshot list lists it with "Can mount: true". Mounting it with the existing signature brings back all eight VMs within minutes. Nothing had to be recovered, but only because nobody accepted the client's offer to create a new datastore on the "empty" LUN.
See virtual machines data recovery, server data recovery and Ransomware attack: the first hour, the reporting duties and the recovery.
Frequently asked questions
Can encrypted or ransomware-damaged VMDK files be recovered?
Often in part. Many ransomware families encrypt only sections of large VMDK files, so the guest file system can be rebuilt from the untouched areas. See our ransomware guide.
Is VOMA check mode safe?
Check mode only reads, but the datastore must be unmounted on all hosts. Fix modes write to the volume and belong on a copy.
Do you need the ESXi host?
No. We need the disks or an image of the LUN, plus the RAID or SAN details. The host itself is not needed.
Is your data important?
Do not try anything that could make the fault worse. The diagnosis is free and you get a fixed quote before any work starts.





