TECHRUNBOOK · PRACTICAL GUIDE

VMware VMDK Locked: Troubleshooting Runbook

Troubleshoot virtual disk lock conditions that prevent VM power operations, consolidation or file access.

Practical RunbookTechnical Troubleshooting
Practical Runbook10 StepsIssues → Solutions → Recommendations
Have a question about this runbook?Post your issue to the TechRunbook Community and get help from other IT professionals.
Ask the Community →
!Issue

Troubleshoot virtual disk lock conditions that prevent VM power operations, consolidation or file access.

Solution

Start with Identify the affected VMDK and work through the six diagnostic checks in order.

Recommendations

Record results before changing configuration and validate the original symptom after each controlled change.

TechRunbook approach: Test one dependency at a time, record the result and only then change the configuration.

Quick checks

Start with the basic checks in this runbook before moving to deeper troubleshooting.

  • Confirm the affected service or component is available.
  • Check recent configuration or connectivity changes.
  • Run the relevant commands and compare the result with the expected state.
01

Identify the affected VMDK

Record the VM, datastore and exact VMDK path from the error before changing the environment.

02

Check VM and snapshot state

Check for active snapshots, consolidation warnings and concurrent VM operations.

03

Identify lock ownership

Use supported ESXi diagnostic methods to identify which host or process holds the file lock.

04

Check host state

Determine whether another ESXi host or process still has the VM or disk open.

05

Preserve the VM files

Do not manually delete VMDK, lock or snapshot files simply to clear an error. Preserve evidence first.

06

Verify the VM operation

After resolving the lock owner, retry the affected operation and verify the virtual disk remains consistent.

07

Useful commands

Run these checks from an appropriate administrative session and replace example values with your environment.

Lock check

vmkfstools -D /vmfs/volumes/<datastore>/<vm>/<disk>.vmdk

Open files

lsof | grep <vmdk-name>
08

Quick troubleshooting path

Use this sequence to isolate the failing dependency before changing production configuration.

  1. Identify the affected VMDK → Record the VM, datastore and exact VMDK path from the error before changing the environment.
  2. Check VM and snapshot state → Check for active snapshots, consolidation warnings and concurrent VM operations.
  3. Identify lock ownership → Use supported ESXi diagnostic methods to identify which host or process holds the file lock.
  4. Check host state → Determine whether another ESXi host or process still has the VM or disk open.
  5. Preserve the VM files → Do not manually delete VMDK, lock or snapshot files simply to clear an error. Preserve evidence first.
  6. Verify the VM operation → After resolving the lock owner, retry the affected operation and verify the virtual disk remains consistent.
09

What good troubleshooting looks like

Good infrastructure troubleshooting is evidence-driven. Capture the original state, test the dependency that can prove or disprove your hypothesis, make the smallest safe change and repeat the original test.

Example workflow
Symptom → hypothesis → direct test → result → controlled change → validation → documentation
10

Frequently asked questions

What should I check first?

Start with the exact symptom and validate the dependency closest to the failure in this VMware runbook.

Should I change production configuration immediately?

No. Capture the current state first, test the suspected dependency and make one controlled change at a time.

How should I document the fix?

Record the symptom, commands used, result, configuration change and validation result so the procedure can be repeated.

+

Related TechRunbook guides

Was this runbook helpful?

↑ Top