Archive

Posts Tagged ‘vmkfstools’

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: , , , ,

Migrating ESX Thick disk to Thin disk (ESX 5.1 is always special)

March 11th, 2013 2 comments

So, Β in previous article I cleanup Linux virtual machine , zeroed all empty space. Thick file is 42 GB, lets see how it big I can make it.

Read more…

Categories: Linux Tags: , , , ,