Enabling Changed Block Tracking (CBT) for VMs that have been migrated from ESX3.
In order for Tivoli Storage Manager TSM to perform an incremental backup of VMs.
Until these changes are made the backups will perform, but will be entire fulls each time.
With ref to these 2 KBs
Changed Block Tracking (CBT) on virtual machines
Enabling Changed Block Tracking (CBT) on virtual machines
As part of the migration process it is recommended to follow these steps:
1. VM is located on the vSphere4 host ready to be migrated to vSphere5. Power down VM.
2. Migrate VM to new vSphere5 host and datastore.
3. Leave the VM powered off on the new host and edit its settings adding the line ctkEnabled = "TRUE"
4. Power on VM and upgrade the VM Tools – this will reboot the VM.
5. Power off VM and upgrade the VM H/W
Step 3 Details:
The easiest way to add the extra line is to do it from the GUI when the VM is powered off: Click on the "Configuration Parameters..." button in the VM Edit Settings - Options - General...
Now Power on the VM…
Additional Information:
The actions above are editing the vmx file which can be found in the the VM’s working location
Eg
[DATASTORE_004] XPIE8_1/
With the VM powered off you can putty in to the VMs datastore location and manually edit the vmx file:
vmfs/volumes/4ba56729-6dd5tg6u-6194-001e6yh79a10/XPIE8 # cd /vmfs/volumes/DATASTORE004/XPIE8/
make a backup of the vmx file
cp *.vmx original.vmx
Edit the vmx
/vmfs/volumes/4ba56729-6dd5tg6u-6194-001e6yh79a10/XPIE8 # vi XPIE8.vmx
And add the line
ctkEnabled = "TRUE"
(now use vi commands: shift G for bottom of file, i for insert new text, type ctkEnabled = "TRUE" , then ESC, type :wq )
Power on the VM
If you have been successful you will see ctk files have been created….
You can check this using the following commands , in this example vm003prod is used as the example::
/vmfs/volumes/51b888a4-97643c51-e5r2-94r33c0f4359/vm003prod # grep -i ctk vm003prod.*
vm003prod.vmdk:changeTrackPath="vm003prod-ctk.vmdk"
vm003prod.vmx:scsi0:0.ctkEnabled = "true"
vm003prod.vmx:scsi0:1.ctkEnabled = "true"
vm003prod.vmx:scsi0:2.ctkEnabled = "true"
vm003prod.vmx:ctkEnabled = "true"
/vmfs/volumes/51b888a4-97643c51-e5r2-94r33c0f4359/vm003prod # ls -l
-rw------- 1 root root 13 Jun 7 09:36 vm003prod-aux.xml
-rw------- 1 root root 3932672 Jun 7 09:40 vm003prod-ctk.vmdk
-rw-r--r-- 1 root root 78 Jun 7 09:39 vm003prod-ee17dbd8.hlog
-rw------- 1 root root 8589934592 Jun 7 09:36 vm003prod-ee17dbd8.vswp
-rw------- 1 root root 64424509440 Jun 7 10:07 vm003prod-flat.vmdk
-rw------- 1 root root 8684 Jun 7 09:40 vm003prod.nvram
-rw------- 1 root root 591 Jun 7 09:39 vm003prod.vmdk
-rw-r--r-- 1 root root 0 Jun 7 09:36 vm003prod.vmsd
-rwxr-xr-x 1 root root 3739 Jun 7 09:40 vm003prod.vmx
-rw-r--r-- 1 root root 269 Jun 7 09:36 vm003prod.vmxf
-rw------- 1 root root 1310592 Jun 7 09:40 vm003prod_1-ctk.vmdk
-rw------- 1 root root 21464350720 Jun 7 09:39 vm003prod_1-rdm.vmdk
-rw------- 1 root root 559 Jun 7 09:40 vm003prod_1.vmdk
-rw------- 1 root root 1310592 Jun 7 09:40 vm003prod_2-ctk.vmdk
-rw------- 1 root root 21464350720 Jun 7 09:39 vm003prod_2-rdm.vmdk
-rw------- 1 root root 559 Jun 7 09:39 vm003prod_2.vmdk
-rw-r--r-- 1 root root 1760385 Jun 7 09:39 vmware-0.log
-rw------- 1 root root 152182 Jun 7 09:36 vmware-16.log
-rw------- 1 root root 152185 Jun 7 09:36 vmware-17.log
-rw------- 1 root root 152756 Jun 7 09:36 vmware-18.log
-rw------- 1 root root 152937 Jun 7 09:36 vmware-19.log
-rw------- 1 root root 153280 Jun 7 09:36 vmware-20.log
-rw------- 1 root root 1711582 Jun 7 09:36 vmware-21.log
-rw-r--r-- 1 root root 129214 Jun 7 09:41 vmware.log
-rw------- 1 root root 52428800 Jun 7 09:36 vmx-vm003prod-3994541016-1.vswp
No comments:
Post a Comment