We help IT Professionals succeed at work.

Shrink virtual HDD vmware Vsphere 5.0

kistenstein
kistenstein asked
on
Hi all
I've a Vmware Vsphere Server 5.0. An employee has a year ago created a vm with 200gb space for a debian vm. A week ago he has extend the disk to 300gb. He hasn't modified the disk in the debian os. I do not want to use 300gb. How could I shrink the vmdk Disk to 200gb again without problem?

Thanks
Comment
Watch Question

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017
Commented:
VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017
Commented:
or create a new 200GB disk, attached to the VM, clone the contents using G4L, and then remove and delete the original 300GB disk.

http://sourceforge.net/projects/g4l/
If you are worried about actual disk space usage, you can always convert it to use thin provisioning.  You can do this with a vMotion.  The OS doesn't know the difference and still things it has 300GB.  However, you are only using the disk space that the OS actually needs.  

If you attempt to convert or use Quest's tool, you run the risk of loosing or corrupting data.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.