{"id":19,"date":"2010-10-20T02:30:00","date_gmt":"2010-10-20T02:30:00","guid":{"rendered":"https:\/\/kristau.net\/blog\/?p=19"},"modified":"2010-10-20T02:30:00","modified_gmt":"2010-10-20T02:30:00","slug":"removing-extra-vswp-files-from-vmware-vsphere-4-x","status":"publish","type":"post","link":"https:\/\/kristau.net\/blog\/19\/","title":{"rendered":"Removing Extra .vswp Files from VMware vSphere 4.x"},"content":{"rendered":"<h1>Overview<\/h1>\n<p>When a virtual machine (VM) is shut down, part of that process is the deletion of its .vswp or virtual machine swap file. If, however, the host on which the VM is running crashes, the .vswp file may not get removed. When the VM powers back up, it will create a new .vswp file and leave the old one in place. If there are several host crashes, this can start to eat up datastore space, robbing your VMs of space for snapshots or causing issues if you\u2019ve over-allocated your storage.<\/p>\n<h1>Procedure<\/h1>\n<p>First off, a warning. If you delete the <em>active<\/em> .vswp file I don\u2019t know what will happen, but I\u2019m sure it will be <strong>Very Bad Indeed<\/strong>. Therefore, the <ins>most important part of this procedure is to identify the newest or youngest .vswp file created<\/ins>. This should be the one with the latest time stamp on it.<\/p>\n<p>Another way to guarantee you identify the correct .vswp file is to shutdown the virtual machine properly. This will remove the active .vswp file, leaving behind only the extra ones you no longer need. To minimize confusion, make sure there are no snapshots of the VM prior to shutting it down.<\/p>\n<p>Once you\u2019ve identified the active .vswp file or shut the VM down to remove it, you can then use the vCenter client to browse your VM\u2019s datastore and remove the extra .vswp file or files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview When a virtual machine (VM) is shut down, part of that process is the deletion of its .vswp or virtual machine swap file. If, however, the host on which the VM is running crashes, the .vswp file may not get removed. When the VM powers back up, it will create a new .vswp file [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[97,195,210],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-technology","category-virualization","tag-hints-tips-tricks","tag-technology-2","tag-vmware"],"_links":{"self":[{"href":"https:\/\/kristau.net\/blog\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kristau.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kristau.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kristau.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kristau.net\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/kristau.net\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/kristau.net\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kristau.net\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kristau.net\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}