Virtualization

ESXi VM snapshot consolidation fails with 'consolidate helper failed' after NFS export option change

Environment

Environment

vSphere/ESXi 7.0 hosts using NFSv3 datastore exported from a Linux file server. Datastore mounts were re-exported by storage admin with updated export options (root_squash enabled) during a maintenance window. A VM with existing snapshots shows 'Needs Consolidation'.

Symptoms

Symptoms

Attempting 'Consolidate' in vSphere fails with 'consolidate helper failed'; VM remains powered and responsive but snapshot chain size grows and datastore free space decreases. Storage vMotion and snapshot removal fail with file open errors.

Observations

Observations

Host vmkernel logs show permission denied opening .vmdk.delta files. On the NFS server, exported root UID mapping now maps to nobody (root_squash), changing file owner view. esxcli storage nfs list shows datastore mounted read-write. Manual file operations on the NFS server show owner is nobody and ESXi processes cannot rename files.

Already attempted

Already attempted

Tried to re-run consolidation multiple times, restarted management agents on ESXi host, attempted storage rescan; did not unmount datastore. Contacted storage admin who confirmed export options changed but said they kept read-write flag.

Question

Question

How to safely consolidate snapshots and restore normal operations without data corruption; what reversible steps let ESXi regain file ownership access to the VMDK chain?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
sara_solve Answer
user
Posted 1mo ago • 0 confirmations

Don’t edit VMDKs yet. First confirm the NFS export change: check /etc/exports on the NAS and look for root_squash or new anon UID mapping. If root_squash was enabled, restore the previous export options (allow root from ESXi hosts) and remount the datastore on ESXi (esxcli storage nfs remove/add). Before any action, copy the affected VMDKs off to temporary storage so you have a fallback. Once permissions are back to what ESXi expects, retry 'Consolidate'. If stale NFS locks exist, coordinate with the storage admin to clear them during a maintenance window. If you can’t restore export settings, plan a storage vMotion to a healthy datastore after taking backups and escalate to storage vendor. Avoid ad-hoc file renames on the NFS server without a backup.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1mo ago• Trouble ID

Most likely causes

NFS export now enables root_squash (or changed UID mapping) so ESXi root lacks permission to modify VMDK files 90%
Stale NFS file locks held by another host preventing rename operations 60%
VAAI/NFS offload or lockd incompatibility after export option changes 30%

Summary

Consolidation requires ESXi to rename/merge delta files on the NFS share. If the NFS export enforces root_squash or changed UID mapping, ESXi's root processes lose permission to manipulate files, producing 'consolidate helper failed'. Other possible contributors are stale NFS locks from another host or NFS server-side filesystem level ACLs. Re-mounting with correct options or restoring previous export ownership mapping typically resolves it, but careless file moves risk VMDK corruption. A controlled approach with backups or offline maintenance is necessary.

Suggested Fixes

Diagnostic step 1
Do not attempt manual VMDK edits without a backup. Take a consistent snapshot of the datastore (storage-level) or copy affected VMDKs to safe storage before further changes.
Diagnostic step 2
Ask storage admin to restore previous export options (disable root_squash or ensure ESXi root UID is mapped), then remount the datastore on ESXi hosts: esxcli storage nfs remove && esxcli storage nfs add ...
Diagnostic step 3
If remount not possible, temporarily mount the NFS export on a Linux jump host as root and verify file ownership/permissions; adjust to give ESXi UID/GID ownership to VMDK files.

Continue troubleshooting

Matched from the title, description and tags