View Only
  • 1.  Shrink Disk

    Posted Feb 12, 2010 04:29 PM

    I've got a vm running on an ESX 4 server. It's got a 60 GB hard drive but only using 10GB. I'd like to shrink the size of the disk, but I don't want to corrupt anything doing it. Is there a good way to do this?



  • 2.  RE: Shrink Disk
    Best Answer

    Posted Feb 12, 2010 04:34 PM

    If you use VMware converter you can safely shrink the disk.

  • 3.  RE: Shrink Disk

    Posted Feb 12, 2010 05:34 PM

    So do I Export back to the same vCenter > resize the disk and give it a different name in vCenter > then delete the original?



  • 4.  RE: Shrink Disk

    Posted Feb 12, 2010 05:43 PM

    That would work

  • 5.  RE: Shrink Disk

    Posted Feb 12, 2010 08:16 PM

    Is there a way to do it without creating a whole new virtual machine?

  • 6.  RE: Shrink Disk

    Posted Feb 12, 2010 08:46 PM

    shrinking a disk is best done using converter as stated. Any other method, to me, just would not be safe.

  • 7.  RE: Shrink Disk

    Posted Feb 12, 2010 09:21 PM

    Assuming you mean to conver the disk to Thin as in thin provisioning, rather than actually change the size under Edit settings for the VM, you can do this with svMotion.

    If you actually want to shrink the disk, so the guest sees a smaller disk... Not sure.

    If you are in Windows, I believe you can defrag (probably need a 3rd-party tool to move everything to the front of the partition), then use diskpart (or Disk Mgmt if you're on 2008) to shrink the partition. Then, you might be able to use VMware tools to shrink the VMDK file.

    Of course, I haven't tried it myself yet. It's a fairly common technique, though most often applied when the OS is offline by using a LiveCD or mounting the HDD/VMDK to another system/VM.

    Happy virtualizing!


    Please consider awarding points to helpful or correct replies.

  • 8.  RE: Shrink Disk

    Posted Feb 18, 2010 09:51 PM

    Sounds good. I used converter and it worked. Thanks.