Avatar of Nishant
Nishant
 asked on

decrease hard disk size on a virtual machine

I am not able to decrease the hard disk size on a virual machine, its currently set to 675 gb and when i try to change it from machine settings, i am not able to do it. Its a secondary drive (Non OS) with some really important data on it. The actual size of the virtual drive is 300 Gb and i see the remaining as unallocated space. Whats the best way to do it? Please help.
VMware

Avatar of undefined
Last Comment
Nishant

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jmcg

Only one way? How about adding a virtual disk of the desired size, copy the data to it, then delete the no-longer-used-too-big virtual disk. This only works when there's space available for the swing disk, but it's more straightforward than bringing in converter.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

@jmcg
only one supported method to shrink

supported!!!!

You could use clonezilla, ghost, symantec backup, but if a Domain Controller, Exchange Server, get's a bit more difficult, many different ways!

you could do it this way, in 15 minutes, but it's not supported....

HOW TO: Shrink a VMware Virtual Machine Disk (VMDK) in 15 minutes
Nishant

ASKER
Andrew, i am following your instructions to decrease the size of the hard drive 2, there is one step that says "Migrate or Copy the virtual machine to another datastore". After i save the file, do i need to move the vm to a different datastore, unfortunately, i just have a single datastore.

Please suggest.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Andrew, i am following your instructions to decrease the size of the hard drive 2, there is one step that says "Migrate or Copy the virtual machine to another datastore". After i save the file, do i need to move the vm to a different datastore, unfortunately, i just have a single datastore.

Please suggest.

If you are following, my 15 minute article, yes you need to move it to another datastore. If you have a single datastore, the pointers will not be re-written.

Let me check, if you can do it another way.
gheist

You can make clone under different name
Nishant

ASKER
Thanks for your help Andrew.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.