{"id":4043,"date":"2024-01-23T12:27:00","date_gmt":"2024-01-23T12:27:00","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=4043"},"modified":"2024-01-23T12:27:01","modified_gmt":"2024-01-23T12:27:01","slug":"vmdk-failed-to-clone-copy-invalid-change-tracker-error-code-7228","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=4043","title":{"rendered":"VMDK Failed to Clone (copy) &#8211; Invalid Change Tracker Error Code (7228)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When attempting to copy (clone) a VMDK, we were experiencing the issue that a copy of a VMDK would get to about 100% then fail. Performing via the Web UI or via the CLI (from a host directly) would give the same issue.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vmkfstools -i \"\/vmfs\/volumes\/datastore1\/vm1\/\r\nvm1_1.vmdk\" \"\/vmfs\/volumes\/datastore1\/vm1-backup\/vm1_1.vmdk\"\n\rDestination disk format: VMFS zeroedthick\r\nCloning disk '\/vmfs\/volumes\/datastore1\/vm1-backup\/vm1_1.vmdk'...\r\nClone: 100% done.Failed to clone disk: Invalid change tracker error code (7228).<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We attempted this on another VM and it worked fine, it turned out this VM was not backed up with a third-party backup software product, and that pointed to the issue CBT (change block tracking) being the issue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Resolution<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Disable CBT for the virtual machine by setting the ctkEnabled value to FALSE.<\/li>\n\n\n\n<li>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).<\/li>\n\n\n\n<li>Find the datastore containing the virtual machine (right click on the datastore and then on \u201cBrowse Datastore\u201d).<\/li>\n\n\n\n<li>Ensure no snapshot files (.delta.vmdk) present in the virtual machine folder.<\/li>\n\n\n\n<li>Delete the -CTK.VMDK files in the virtual machine folder.<\/li>\n\n\n\n<li>Boot up the machine, wait for it to start fully. Then gracefully shut it down.<\/li>\n\n\n\n<li>Now retry the clone again, it should work.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ll likely need to reenable the CBT again before you start backing up. And of course, the backup (and CBT) will consider this a full backup the next time it is backed up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional Information<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>https:\/\/sbin-jodie.blogspot.com\/2019\/03\/clone-vmdk-fails-on-change-tracker.html<\/li>\n\n\n\n<li>https:\/\/www.iperiusbackup.net\/en\/how-to-reset-cbt-changed-block-tracking-on-vmware-esxi-virtual-machines\/<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When attempting to copy (clone) a VMDK, we were experiencing the issue that a copy of a VMDK would get to about 100% then fail. Performing via the Web UI or via the CLI (from a host directly) would give the same issue. We attempted this on another VM and it worked fine, it turned &#8230; <a title=\"VMDK Failed to Clone (copy) &#8211; Invalid Change Tracker Error Code (7228)\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=4043\" aria-label=\"Read more about VMDK Failed to Clone (copy) &#8211; Invalid Change Tracker Error Code (7228)\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-4043","post","type-post","status-publish","format-standard","hentry","category-vmware"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4043"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4043\/revisions"}],"predecessor-version":[{"id":4044,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4043\/revisions\/4044"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}