ESXI datastore size

Dear All,
I have a VM running on ESXI 4 server , the data store capacitys is 200 GB and the free size is 23.33 GB

while the VM itself has 2 drives :

C with 9.8 GB used space and free space 1.01 GB
D with 79.7 GB used space and free space 87.7 GB

so i dont need all the data store capcity to be deticated to this VM as i am planning to have another VM on this server.

What i want to do is limit the datastore capacity assigned to this VM.

I am using Vsphere client to manage this ESXI sever.I am new to the VMware tools so i need a detailed steps of how can i do this as i couldnt reach any result through the search.

Thanks for help.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul SolovyovskySenior IT AdvisorCommented:
Since you've already given the VM the partition size you can't limit it to less.  
If this a Windows 2008 VM you can resize the partition but the volume will still be the same size.  What I have done in the past is to use VMware vConverter to resize the can do this to a network share and convert to a Windows VM.  Then you can use vConverter to to take that Windows VM and convert back to ESXi VM with different size volumes.

Are you saying you don't need all the size that you've allocated on the D: drive? What you can do is create another hard disk for your VM for the size you're actually needing. Copy all your data from D: to this new 'partition', delete/remove D:, rename your new partition D: if you so choose, then delete the D: hard disk from the VM settings. You will then recover space from that D: on your datastore. Another option is to do as "paul..." suggested above.

Given that you have the free space, I would do the following.  Using Vmware converter, clone the virtual machine to another virtual machine.  During the process you can select to resize the logical volume.  Whatever size you specify on the logical volume, it will resize the VMDK on the destination VM.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.