ESXi Cannot open the disk ‘/vmfs/volumes/…’ or one of the snapshot disks it depends on.

An error was received from the ESX host while powering on VM sub.domain.com.
Failed to start the virtual machine.
Module DiskEarly power on failed.
Cannot open the disk ‘/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com-000002.vmdk’ or one of the snapshot disks it depends on.

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com-000002.vmdk
# Disk DescriptorFile
version=3
encoding=”UTF-8″
CID=5fdb3838
parentCID=91a1b14e
isNativeSnapshot=”no”
createType=”vmfsSparse”
parentFileNameHint=”sub.domain.com-000001.vmdk”
# Extent description
RW 976777216 VMFSSPARSE “sub.domain.com-000002-delta.vmdk”

# Change Tracking File
changeTrackPath=”sub.domain.com-000002-ctk.vmdk”

# The Disk Data Base
#DDB

ddb.longContentID = “6d06c2adf18d4b5ca7ae92e65fdb3838″

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com-000001.vmdk
# Disk DescriptorFile
version=3
encoding=”UTF-8”
CID=91a1b14e
parentCID=30b6f4a5
isNativeSnapshot=”no”
createType=”vmfsSparse”
parentFileNameHint=”sub.domain.com.vmdk”
# Extent description
RW 976777216 VMFSSPARSE “sub.domain.com-000001-delta.vmdk”

# Change Tracking File
changeTrackPath=”sub.domain.com-000001-ctk.vmdk”

# The Disk Data Base
#DDB

ddb.longContentID = “7b3898b4ec1820ab22f165ff91a1b14e”

 

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com.vmdk
# Disk DescriptorFile
version=3
encoding=”UTF-8″
CID=91a1b14e
parentCID=ffffffff
isNativeSnapshot=”no”
createType=”vmfs”

# Extent description
RW 976777216 VMFS “sub.domain.com-flat.vmdk”

# Change Tracking File
changeTrackPath=”sub.domain.com-ctk.vmdk”

# The Disk Data Base
#DDB

ddb.adapterType = “lsilogic”
ddb.deletable = “true”
ddb.geometry.biosCylinders = “60801”
ddb.geometry.biosHeads = “255”
ddb.geometry.biosSectors = “63”
ddb.geometry.cylinders = “60801”
ddb.geometry.heads = “255”
ddb.geometry.sectors = “63”
ddb.longContentID = “7b3898b4ec1820ab22f165ff91a1b14e”
ddb.thinProvisioned = “1”
ddb.toolsVersion = “9349”
ddb.uuid = “60 00 C2 9b 7c 5c a8 15-b2 03 9f dc ba 38 56 60”
ddb.virtualHWVersion = “8”

 

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com.vmdk

CID=91a1b14e

replace to

CID=30b6f4a5

ESXi snapshot command

vim-cmd vmsvc/getallvms

vim-cmd vmsvc/snapshot.create 119 test
vim-cmd vmsvc/snapshot.get 119
vim-cmd vmsvc/snapshot.removeall 119

 

  • snapshot.create
  • snapshot.dumpoption
  • snapshot.get
  • snapshot.remove
  • snapshot.removeall
  • snapshot.revert
  • snapshot.setoption
  • get.snapshotinfo

ESXi task job status

vim-cmd vimsvc/task_list
ManagedObjectReference) [
‘vim.Task:haTask-137-vim.VirtualMachine.consolidateDisks-516821853‘,
‘vim.Task:haTask-ha-host-vim.HostSystem.acquireCimServicesTicket-516825125’
]

watch -d -n 60 ‘vim-cmd vimsvc/task_info haTask-137-vim.VirtualMachine.consolidateDisks-516821853 | grep -E “name|entityName|state|progress”‘