{"id":3677,"date":"2012-02-03T17:09:04","date_gmt":"2012-02-03T16:09:04","guid":{"rendered":"http:\/\/vmdamentals.com\/?p=3677"},"modified":"2012-02-03T17:09:04","modified_gmt":"2012-02-03T16:09:04","slug":"snapshot-consolidation-needed-which-with-my-luck-fails","status":"publish","type":"post","link":"https:\/\/www.vmdamentals.com\/?p=3677","title":{"rendered":"Snapshot Consolidation needed &#8211; Which with my luck&#8230; fails"},"content":{"rendered":"<blockquote><p>As I am testing several third party backup tools, this morning I stumbled upon a failed backup. No snapshot present on the VM which could not be backed up &#8211; but a yellow mention in the VI client: &#8220;<strong>Configuration Issues &#8211; Virtual Machine disks consolidation is needed<\/strong>&#8220;. And my luck was, that selecting &#8220;consolidate&#8221; ended in that one brilliant error: <strong>Unable to access file <unspecified filename> since it is locked<\/strong>. Great. Here&#8217;s what was wrong!<\/p><\/blockquote>\n<p><!--more--><br \/>\n<BR><br \/>\n<strong>Root cause<\/strong> <\/p>\n<p>So what is causing this <em>&#8220;needs consolidation&#8221;<\/em> warning? Looking at <a href=\"http:\/\/kb.vmware.com\/selfservice\/microsites\/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=2003638\" title=\"VMware KB: Consolidatinf snapshots in vSphere 5\" target=\"_blank\">VMware KB Article 2003638<\/a>, a need for consolidation is now visible (the need has always been there \ud83d\ude09 ). When this warning pops up, the snapshot is already removed from the VM, but the snapshot files could not be consolidated back into the base disk.<\/p>\n<p>How can you find out if any of your VMs needs snapshots to be consolidated? You can simply add the &#8220;consolidation&#8221; tab to the VI client, find any VMs that require consolidation and kick it off:<\/p>\n<p><a href=\"http:\/\/vmdamentals.com\/?attachment_id=3685\" rel=\"attachment wp-att-3685\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidate-this-560x319.png\" alt=\"\" title=\"Consolidate this!\" width=\"560\" height=\"319\" class=\"aligncenter size-large wp-image-3685\" srcset=\"https:\/\/www.vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidate-this-560x319.png 560w, https:\/\/www.vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidate-this-270x154.png 270w, https:\/\/www.vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidate-this.png 977w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><br \/>\n<BR><br \/>\n<strong>What went wrong in my case?<\/strong><\/p>\n<p>Of course, consolidating the snapshot did not work in my case. Lucky me, I got this error:<\/p>\n<p><a href=\"http:\/\/vmdamentals.com\/?attachment_id=3692\" rel=\"attachment wp-att-3692\"><img decoding=\"async\" src=\"http:\/\/vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidation-fails.png\" alt=\"\" title=\"Consolidation fails!\" width=\"650\"  class=\"aligncenter size-full wp-image-3692\" srcset=\"https:\/\/www.vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidation-fails.png 711w, https:\/\/www.vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidation-fails-270x37.png 270w, https:\/\/www.vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidation-fails-560x78.png 560w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/a><\/p>\n<p>So why is this occuring? A little history: As I was testing a third party solution of &#8220;Brand X&#8221;, this error occured. I will not go into details which backup product this was though \ud83d\ude42<\/p>\n<p>So the backup solution of Brand X was trying to backup a VM. A VMware-level snapshot was made, the base disk was hot-added to the VM that handles the backup. Then the backup was made. <\/p>\n<p>After the backup was made however, the backup solution somehow did not manage to hot-remove the disks from the backup VM. This meant the base disks of the VM being backed up where still locked, hence the failure when trying to consolidate.<br \/>\n<BR><br \/>\n<strong>How it was fixed<\/strong><\/p>\n<p>The solution was, as it is most of the time, simple: I manually removed the base disks from the backup VM (without deleting them from disk of course!), then I retried the consolidation. This time: success!<\/p>\n<p><a href=\"http:\/\/vmdamentals.com\/?attachment_id=3701\" rel=\"attachment wp-att-3701\"><img decoding=\"async\" src=\"http:\/\/vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidation-failed-and-worked-after-fixing-it.png\" alt=\"\" title=\"Consolidation failed... and then worked after fixing the issue\" width=\"650\" class=\"aligncenter size-full wp-image-3701\" srcset=\"https:\/\/www.vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidation-failed-and-worked-after-fixing-it.png 725w, https:\/\/www.vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidation-failed-and-worked-after-fixing-it-270x41.png 270w, https:\/\/www.vmdamentals.com\/wp-content\/uploads\/2012\/02\/Consolidation-failed-and-worked-after-fixing-it-560x85.png 560w\" sizes=\"(max-width: 725px) 100vw, 725px\" \/><\/a><\/p>\n<p>All&#8217;s well that ends well!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I am testing several third party backup tools, this morning I stumbled upon a failed backup. No snapshot present on the VM which could not be backed up &#8211; but a yellow mention in the VI client: &#8220;Configuration Issues &#8211; Virtual Machine disks consolidation is needed&#8220;. And my luck was, that selecting &#8220;consolidate&#8221; ended [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[416,415,417,418,414,49,413,412,225],"class_list":["post-3677","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-consolidate-failed","tag-consolidate-fails","tag-consolidate-snapshot-failed","tag-consolidate-snapshot-fails","tag-consolidation","tag-snapshot","tag-snapshot-consolidation","tag-unable-to-access-file-since-it-is-locked","tag-vmware-snapshot"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/3677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3677"}],"version-history":[{"count":27,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/3677\/revisions"}],"predecessor-version":[{"id":3707,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/3677\/revisions\/3707"}],"wp:attachment":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}