In this brief tutorial we show the simple steps to reset the Changed Block Tracking (CBT) for vSphere virtual machines.

CBT is a fundamental parameter withing a VMware ESXi virtual machine, since it allows, when enabled, us to perform incremental and differential backups of VMware virtual machines. Virtual machines running on ESXi hosts can keep track of disk sectors that have changed. This function is called Changed Block Tracking (CBT) and allows each backup procedure to download only those parts of the VM disk that have actually been modified since the last backup.  This increases performance and optimizes the space required. Additionally, the backup procedures performed using CBT allows us to have multiple recovery points of a VM, based on the number of backups we have configured.

See also: Backup ESXi, vCenter, ESXi Free and Replication with Iperius

Note: before performing this procedure, you must make sure that the virtual machine is not running on a snapshot.

For more information, see the related VMware articles:

 

To reset CBT on a vSphere virtual machine, follow the following steps:

  • Open vSphere Web Client.
  • Right-click on the virtual machine and click on Power Off.
  • Right-click on the virtual machine, click on Manage Snapshots. Make sure there are no active snapshots. If there are snapshots, consolidate them.
    reset-cbt-consolidate-snapshots
  • Right-click on the virtual machine and click Edit Settings.
    edit-settings-vm-esxi
  • Click on the Options tab (VM Options), select the General section and then click on Configuration Parameters -» “Edit configuration”
    edit-vmware-esxi-vm-configuration

  • Disable CBT for the virtual machine by setting the ctkEnabled value to FALSE.
  • Disable CBT for individual virtual disks connected to the virtual machine by setting the scsix: x.ctkEnabled value for each virtual disk connected to FALSE (where scsix: x is the SCSI controller and SCSI device ID of the virtual disk).
  • Access the folder on the datastore that contains the virtual machine (right click on the datastore and then on “Browse Datastore”).
  • Make sure there are no snapshot files (.delta.vmdk) present in the virtual machine folder.
  • Delete the -CTK.VMDK files in the virtual machine folder.
  • In vSphere Web Client, right click on the virtual machine and click on Power -» Power On.
  • If you use a backup application that uses the Changed Block Tracking feature (see: Backup of ESXi, vCenter, ESXi Free and Replica with Iperius Backup), you must reactivate the CBT manually.

 

Note: the first backup that is performed after restoring the CBT is a full backup. All subsequent incremental / differential backups will refer to the IDs of the changes generated after the full backup.

 

Re-enable CBT for incremental backup of virtual machines:

This procedure may be necessary if, for example, errors occur during incremental or differential backups. After performing this operation,  if we need to perform incremental or differential backups, we will have to re-enable the CBT by resetting it to true. Of course, for this operation it will be necessary to make sure that there are no active snapshots and perform the operation with the virtual machine turned off.

 

How to restart Iperius virtual machine backups after a CBT error:

If an error occurs in the backup of the virtual machines within Iperius, and the error is with the CBT, it will be necessary to perform a further operation (as well as reset the CBT in the virtual machine settings) on the destination folders of the incremental/differential backup. Also, since it must refer to a previous backup with a specific CBT value, Iperius cannot “append” new backups to the existing ones, because the CBT has been reset, so it will continue to return the error. You will then need to delete or rename the existing backup folders and then perform a new backup from scratch.

 

For more information:

(Italian, French, German, Spanish, Portuguese (Brazil))



How to reset CBT (Changed Block Tracking) on VMware ESXi virtual machines
Iperius Backup Team
*****************************************

PLEASE NOTE: if you need technical support or have any sales or technical question, don't use comments. Instead open a TICKET here: https://www.iperiusbackup.com/contact.aspx

*****************************************

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*****************************************

PLEASE NOTE: if you need technical support or have any sales or technical question, don't use comments. Instead open a TICKET here: https://www.iperiusbackup.com/contact.aspx

*****************************************