If you are currently using VMware vSphere and you are utilizing CBT (Change Block Tracking) for you backups you may be at risk of bad backups. Luckily this issue only effects vmdk files that have grown over 128GB in size, so this should narrow down your scope of affected backups. This issue can be reproduced by expanding a virtual disk (vmdk) file with Change Block Tracking (CBT) enabled. Your virtual machine may be at risk if the vmdk file was extended to a size greater than 128 G. Which would incorrectly calculate the in-use blocks in the vmdk file.
This affects esxi hosts versions 4.x and 5.x and there is no currently no fix or update; There is however a workaround.
Workaround:
Go to each of the affected VMs and disable and then re-enable Change Block Tracking (CBT) on the virtual machines.
How to Disable CBT:
- Power off the virtual machine.
- Right-click the virtual machine and click Edit Settings.
- Click the Options tab.
- Click General under the Advanced section and then click Configuration Parameters. The Configuration Parameters dialog opens.
- Set the ctkEnabled parameter to false for the corresponding SCSI disk.
How to Enable CBT
- Right-click the virtual machine and click Edit Settings.
- Click the Options tab.
- Click General under the Advanced section and then click Configuration Parameters. The Configuration Parameters dialog opens.
- Click Add Row.
- Add thectkEnabled parameter and then set its value to true.
- Click Add Row, add scsi0:0.ctkEnabled, and set its value to true.
Note: scsi0:0 in scsi0:0.ctkEnabled indicates the SCSI device assigned to the hard disk that is added to the virtual machine. Every hard disk added to the virtual machine is given a SCSI device that appears similar to scsi0:0, scsi0:1, or scsi 1:1. - In the home directory of the virtual machine, verify that each hard disk contains a vmname-ctk.vmdk file.
Sources:
http://www.reddit.com/r/vmware/comments/2keko3/major_bug_in_vmwares_cbt_function_causes_data/
Leave a Reply