Archive

Posts Tagged ‘vmdk’

Shrink Thin disk in ESX 5 (jelly-shot)

March 11th, 2013 No comments

just summary 😉

  1. fill with zeros empty space in runing VM OS
  2. Windows – SDelete from Sysinternal LINK
  3. Linux – fill up each mount point/partition with command
    dd if=/dev/zero of=ZEROFILE bs=1000000 ; rm -f ZEROFILE


  4. Check real size of allocated data in VM

    du -h MyVM.vmdk


  5. From ESX shell , run command to shrink vmdk disk (shutdown VM first)
    vmkfstools --punchzero MyVM.vmdk
  6. Check real size of allocated data in VM after (should be less)

    du -h MyVM.vmdk


  7. log off
  8. If not Thin provisioned disk, use another post 😉
Categories: Linux Tags: , , , ,

Shrink Thick Linux virtual disk (vmdk) in ESX

March 11th, 2013 No comments

I have thick provisioned server, and I need move it and shrink it. As Thick option provides flat file of full size , even if OS is few GB, I have full size vmdk file ;( which is harder to copy around.  Thin provisioned vmdk disk is possible shrink via ESX shell command ( vmkfstools –punchzero *.vmdk) but what to do if disk is in Thick state ? Its possible, but little bit more complicated.

Excellent post to explain in depth dafuq – http://blogs.vmware.com/vsphere/2012/03/thin-provisioning-whats-the-scoop.html

Read more…

Categories: Linux Tags: , , ,