This issue may occur if the size of the base disk does not match the logical size of the redo log.
- To determine the original size of the base disk, look at the .vmdk file corresponding to the delta disk redo log. For example, an entry for a delta disk in the .vmdk file looks like:
RW 2048 VMFSSPARSE "foo-43489354-delta.vmdk"
Note: The disk size is expressed in number of sectors. In this example, the disk size is 2048, or 1MB.
- The corresponding base disk descriptor file
foo.vmdk
looks like:
# Extent description
RW 2048 VMFS "foo-flat.vmdk"
- If you extend the base disk to 2MB, the
foo.vmdk
file looks like:
# Extent description
RW 4096 VMFS "foo-flat.vmdk"
- To reset the logical size of the base disk, replace
4096
with 2048
so that the foo.vmdk
file looks like:
# Extent description
RW 2048 VMFS "foo-flat.vmdk"
Note: Additional datastore space is required to clone the disk.
To resolve this issue, perform one of these options:
Note: The size of the flat file for the base disk is the actual size of the virtual disk. This value divided by 512 must be equal to the RW value in the descriptor files of either the base disk or the snapshots. If this is not true, see option 3.
- If the RW value of the base disk is smaller than that of the snapshot(s), reset that value to the RW value in the snapshot descriptor files.
- If the RW value of the base disk is greater than that of the snapshot(s), keep the new base disk size, and change ALL associated delta disk descriptor files to the new size.
- If the actual size of the base disk flat file (as reported by the kernel) divided by 512 is different from the RW values in the descriptor files of the base disk and the snapshot files, then this is pathological and requires deep analysis. This indicates data corruption.
For information on how to modify a virtual machine disk descriptor file, see Editing configuration files in VMware ESXi and ESX (1017022).
Use this procedure to modify the virtual machine disk properties:
- Shutdown the virtual machine.
- Back-up each vmdk descriptor file in turn, and modify the RW value(s) as requires as detailed above. For example, base vmdk descriptor files, or all associated snapshot descriptor files.
- Clone the disk from the most recent snapshot to a new virtual disk.
Note: Clone the disk, so that in the event of there being an issue, the original file(s) are available.
- Using Edit Settings, remove the existing disk from the virtual machine only (do not remove from disk), and add the new disk to virtual machine.
- Power on the virtual machine.
- When the size has been verified within the virtual machine, delete the original disk and associated snapshot files after confirming the virtual machine is running as expected.
See also: