This article provides instructions on performing a file system metadata check using the vSphere On-disk Metadata Analyzer (VOMA).
For large-scale environments, such as VDI deployments, 'Invalid metadata' errors are often linked to transient storage connectivity issues rather than physical metadata corruption. Before proceeding with VOMA, verify the health of the storage fabric, switches, and pathing to rule out transient I/O inconsistencies.
VOMA can be used to check the following:
Run VOMA if you experience any of the following:
Invalid argumentError: Read-only file system during write on /dev/disks/naa.xxxSetPtableGpt: Unable to commit to diskvmkernel: 25:21:39:57.861 cpu15:1047)FS3: 130: <START vm.vswp>vmkernel: 25:21:39:57.861 cpu15:1047)Lock [type 10c00001 offset 52076544 v 69, hb offset 4017152vmkernel: gen 109, mode 1, owner ########-#########-####-############ mtime 3420]vmkernel: 25:21:39:57.861 cpu15:1047)Addr <4, 1011, 10>, gen 36, links 1, type reg, flags 0x0, uid 0, gid 0, mode 600vmkernel: 25:21:39:57.861 cpu15:1047)len 3221225472, nb 3072 tbz 0, zla 3, bs 1048576vmkernel: 25:21:39:57.861 cpu15:1047)FS3: 132: <END vm.vswp>vmkernel: 0:00:20:51.964 cpu3:1085)WARNING: Swap: vm 1086: 2268: Failed to open swap file '/volumes/########-#########-####-############/vm/vm.vswp': Invalid metadatavmkernel: 0:00:20:51.964 cpu3:1085)WARNING: Swap: vm 1086: 3586: Failed to initialize swap file '/volumes/########-#########-####-############/vm/vm.vswp': Invalid metadatacpu11:268057)WARNING: HBX: 599: Volume ########-#########-####-############ ("<Datastore name>") may be damaged on disk. Corrupt heartbeat detected at offset 3305472: [HB state 0 offset 6052837899185946624 gen 15439450 stampUS 5 $The vSphere On-disk Metadata Analyzer (VOMA) scans the VMFS volume metadata and highlights inconsistencies. Note: VOMA only checks for metadata corruption; it does not check for underlying storage or disk physical errors.
Prerequisites & Safety Warnings
All virtual machines on the affected datastore must be powered off or migrated to another datastore.
For VMFS-5/VMFS-6, the datastore must be unmounted on all ESXi 7.x, 8.x, and 9.x hosts. (Note: When attempting to run VOMA against a volume that is still being accessed, VOMA will fail and report the MAC address of the actively heartbeating host).voma -m vmfs -d /vmfs/devices/disks/naa.#################:1Checking if device is actively being used by other hostsFound 1 actively heart beating hosts on device '/vmfs/devices/disks/naa.#################:1'1): MAC Address ##:##:##:##:##:##
Impact/Risks
Procedure
esxcli storage vmfs extent listvoma -m vmfs -f check -a -d /vmfs/devices/disks/naa.#################:1 -s /tmp/analysis.txtNotes
Error: Missing LVM Magic. Disk doesn't have a valid LVM DeviceError: Failed to Initialize LVM MetadataVOMA Command Syntax Options
| Option | Description |
-m or --module | Specify the module: vmfs or lvm. When vmfs is specified, the lvm check is also performed. (Default is vmfs). |
-f or --func | Specify the function to perform, such as check. |
-d or --device | Device/disk to be inspected (the LUN NAA ID and partition). |
-s or --logfile | Used to specify the output log file. |
-v or --version | Display the VOMA version. |
-h or --help | Displays the VOMA command help message. |
If VOMA detects corruption, engage Broadcom Support to attempt a repair. In circumstances where the metadata corruption is irreversible, VMware recommends restoring from a backup or consulting with a data recovery organization as VMware does not perform data recovery. For more information, see Data recovery services for data not recoverable by VMware Technical Support.