{"id":3787,"date":"2012-06-11T15:18:54","date_gmt":"2012-06-11T13:18:54","guid":{"rendered":"https:\/\/ingmarverheij.com\/?p=3787"},"modified":"2012-06-11T15:27:23","modified_gmt":"2012-06-11T13:27:23","slug":"virtual-sqlserver-impaired-by-residual-snapshot-after-veeam-backup","status":"publish","type":"post","link":"https:\/\/ingmarverheij.com\/en\/virtual-sqlserver-impaired-by-residual-snapshot-after-veeam-backup\/","title":{"rendered":"Virtual (SQL)server impaired by residual snapshot after Veeam backup"},"content":{"rendered":"<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/Understanding-snapshot-management-technology-vmware.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" align=\"left\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/Understanding-snapshot-management-technology-vmware_thumb.png\" width=\"119\" height=\"91\" \/><\/a><\/p>\n<p>Recently I had to troubleshoot a SQL server that performed nightly batch jobs for a management information system. Under normal conditions this required 6.5&#160; hours but this was suddenly increased to 11.5 hours. An increase of 75%!<\/p>\n<p>Because of this delay the information wasn\u2019t presented on time with a lot of implications.&#160; Several departments where asked what has changed in the past days, of course the answer was \u201cnothing\u201d. <\/p>\n<p><!--more--><\/p>\n<h2>Point in time<\/h2>\n<p>The delay of the batch was introduced since the 6th of June (increasing from 400 to 600+ minutes):<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/Job-duration-before1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/Job-duration-before_thumb1.png\" width=\"454\" height=\"231\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<h2>VMware vSphere Client<\/h2>\n<h3>Performance<\/h3>\n<p>The performance metrics of the virtual machines showed a decrease in both processor and disk performance while the network was hardly affected. <\/p>\n<p>This is unexpected since the content of the batch job is unchanged, and the same applies for the infrastructure. No (major) changes are executed that justify the decrease in performance<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-CPU.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-CPU_thumb.png\" width=\"154\" height=\"77\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-Disk.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-Disk_thumb.png\" width=\"154\" height=\"77\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-Network.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-Network_thumb.png\" width=\"154\" height=\"77\" \/><\/a><\/p>\n<h3>Storage<\/h3>\n<p>There was a sudden increase (of ~ 600GB) in allocated disk space, with a substantial amount for snapshots. Aha!<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-Storage-Before.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-Storage-Before_thumb.png\" width=\"154\" height=\"77\" \/><\/a><\/p>\n<h3>Snapshot<\/h3>\n<p>Unless a change is performed (and a rollback is required) no snapshot should be present. However there was a snapshot called \u201cConsolidate Helper- 0\u201d .<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/Snapshots-for-APP178_2012-06-08_12-09-38.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/Snapshots-for-APP178_2012-06-08_12-09-38_thumb.png\" width=\"154\" height=\"110\" \/><\/a><\/p>\n<p>This snapshot was residual after a failed Veeam backup (as described Jim Jones in <a href=\"https:\/\/4sysops.com\/archives\/vmware-backups-troubleshoot-the-consolidate-helper-0-backup-error\/\">this article<\/a>).<\/p>\n<p>&#160;<\/p>\n<h2>Veeam Backup &amp; Replication<\/h2>\n<p>To verify that the snapshot indeed was a leftover of a failed backup I verified the backup log. And indeed, after performing a successful backup on the 4th the backup of 5th of june ended with a <em>warning:<\/em><\/p>\n<pre>Removing snapshot\nUnable to connect to the remote server \nNo connection could be made because the target machine actively refused it xxx.xxx.xxx.xxx:443 \nVeeam Backup will attempt to remove snapshot during the next job cycle, but you may consider removing snapshot manually. \nPossible causes for snapshot removal failure: \n- Network connectivity issue, or vCenter Server is too busy to serve the request \n- ESX host was unable to process snapshot removal request in a timely manner \n- Snapshot was already removed by another application<\/pre>\n<p>The backup on the 6th of june could not be completed at all and ended with an <em>error:<\/em><\/p>\n<pre>Initializing target session\nRemoveSnapshot failed, snapshotRef &quot;snapshot-35436&quot;, timeout &quot;3600000&quot; \nUnable to access file <unspecified filename> since it is locked<\/pre>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/CUsersIngmar-VerheijDocumentsWerkKlantenCordaan2012-06-08-Performance_2012-06-11_15-32-46.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/CUsersIngmar-VerheijDocumentsWerkKlantenCordaan2012-06-08-Performance_2012-06-11_15-32-46_thum.png\" width=\"154\" height=\"122\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/CUsersIngmar-VerheijDocumentsWerkKlantenCordaan2012-06-08-Performance_2012-06-11_15-32-33.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/CUsersIngmar-VerheijDocumentsWerkKlantenCordaan2012-06-08-Performance_2012-06-11_15-32-33_thum.png\" width=\"154\" height=\"122\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/CUsersIngmar-VerheijDocumentsWerkKlantenCordaan2012-06-08-Performance_2012-06-11_15-32-41.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/CUsersIngmar-VerheijDocumentsWerkKlantenCordaan2012-06-08-Performance_2012-06-11_15-32-41_thum.png\" width=\"154\" height=\"122\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<h2>Result<\/h2>\n<p>After removing the snapshot the storage space was reclaimed<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-Storage-After1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/APP178-Performance-Storage-After_thumb1.png\" width=\"154\" height=\"68\" \/><\/a><\/p>\n<p>  <br clear=\"all\" \/>and the time required to perform the batch job was back to normal<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/Job-duration-After1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/06\/Job-duration-After_thumb1.png\" width=\"454\" height=\"231\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<h2>Moral of the story<\/h2>\n<p>Be careful with snapshots of virtual machines. The impact on the performance can be dramatic and the time-to-fix can be quite a while if you\u2019re unaware of this. <\/p>\n<p>&#160;<\/p>\n<p>More information :<\/p>\n<ul>\n<li><a href=\"https:\/\/www.ibm.com\/developerworks\/mydeveloperworks\/blogs\/pcclm\/entry\/how_do_virtual_machine_snapshots_work_in_vmware1?lang=en\">How do Virtual Machine Snapshots work in VMware<\/a><\/li>\n<li><a href=\"https:\/\/itknowledgeexchange.techtarget.com\/it-consultant\/vmware-and-snapshots\/\">VMWare and snapshots<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Recently I had to troubleshoot a SQL server that performed nightly batch jobs for a management information system. Under normal conditions this required 6.5&#160; hours but this was suddenly increased to 11.5 hours. An increase of 75%! Because of this delay the information wasn\u2019t presented on time with a lot of implications.&#160; Several departments where [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[302],"tags":[456,173,457,76],"class_list":["post-3787","post","type-post","status-publish","format-standard","hentry","category-performance-testing","tag-snapshot","tag-sql","tag-veeam","tag-vmware"],"_links":{"self":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/comments?post=3787"}],"version-history":[{"count":2,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3787\/revisions"}],"predecessor-version":[{"id":3795,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3787\/revisions\/3795"}],"wp:attachment":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/media?parent=3787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/categories?post=3787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/tags?post=3787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}