Link to home
Start Free TrialLog in
Avatar of snowdog_2112
snowdog_2112Flag for United States of America

asked on

URGENT!! VMware shrink disk - space requirements

I plead ignorance up front on this.

I've got a virtual disk of 120Gb - single file, resizable, only 60GB inside the disk are used.  I'm low on disk space on the HOST drive.

I'd like to shrink the vdisk down to 70gb or 80gb.  From the reading on the shrink, it looks like I need free disk space on the host equal to that of the vdisk.  Well...I've got a 120gb vdisk and 200mb free on the host drive.

What can I do to free up the 60GB of unused space in that vdisk?
Avatar of David Beveridge
David Beveridge
Flag of Australia image

Backup the vm
Delete the vm
Re-Import the vm using converter.
You may want to create a new small vm to test the procedure out on before deleting your main vm
Avatar of snowdog_2112

ASKER

So then is it true that the shrink requires free disk space equal to the vdisk?
I'm not sure about that, I don't thiink so.  However,
You didn't even say what flavour of VMware you have.  Is it  ESX?
Sounds like you pre-allocated the space for the disk.
Pre-Allocated disk space cannot be shrunk.
But when you (re)import a machine you can resize a disk.

Shrinking is more about reclaiming the space used by deleted files
in a Virtual Disk in a non-pre-allocated disk.
SOLUTION
Avatar of David Beveridge
David Beveridge
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
VMware server 1.5 build 80187.

I created the disk to expand as needed, knowing that the source drive size would push the available disk space on the VM host.  (Another mystery is why it allocated 120GB during the conversion when there was no more than 70GB on the disk).

The drives were not split in 2GB chunks - is the 2GB chunk method preferred?  I have 1 file that is 120GB.

Hmmm...I could do another P-to-V conversion, or V-to-V in this case, and reallocate the drive.  Before I do, though, what is the "best practice" on vdisks? I have some SAS RAID 1 drives on the host, if that impacts the recommended configuration.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It's a production/test server in that it is my own internal server.  (the cobbler and his shoes, ya know!)

My concern was having a bunch of 2GB files to manage if I needed to move them.  I realize that moving the data is not trivial with 60GB of data, but I understand that it's going to take an HD of some sort.  I wouldn't want to burn a basketfull of DVD's or sneaker-net a 2GB thumbdrive back and forth just to move the data in any event.

Is a second V-to-V conversion an option for me (understanding that I'll still need 70+GB for the conversion)?

Thanks for the input!!
Thanks guys!
Thanks for the grading.

I've never done a V-to-V conversion, but I don't think you need to do it.  vmware-vdiskmanager (see post above) will convert the disk to a specified type.  This can be split/single, and growable or physical - it's up to you.

Steve :)