A virtual machine (VM) fails to power on after an ESXi host failure, reboot, or a failed migration/vMotion operation.
You encounter the following error in the vSphere Client: Module 'Disk' power on failed. Cannot open the disk '/vmfs/volumes/####/####/####.vmdk' or one of the snapshot disks it depends on.
In the /vmfs/volumes/datastore/vmfolder/vmware.log, entries similar to the following are observed:
File system specific implementation of LookupAndOpen[file] failedObject type requires hosted I/Ofailed to open (The specified virtual disk needs repair)An unexpected failure of the ESXi host, an unclean shutdown, or an interrupted I/O operation (such as a failed migration) can cause the virtual disk metadata to enter a "needs repair" state. This prevents the hypervisor from mounting or locking the virtual disk file.
To resolve this issue, you must verify the integrity of the VMDK file and perform a repair using the vmkfstools utility.
Caution: Ensure you have a valid backup of the VMDK descriptor and flat files (including all delta/snapshot files) before proceeding.
cd /vmfs/volumes/datastore_name/vm_folder_name/vmkfstools -x check VM_NAME.vmdkDisk needs repair, proceed to step 4.Disk is error free, the issue may be related to file locks or stale tasks.vmkfstools -x repair VM_NAME.vmdk