Solved

How to shrink a VMware ESXi server virtual disk

Posted on 2011-02-15
4
2,390 Views
Last Modified: 2012-05-11
I have a server running free vSphere 4 (ESXi4).

I have allocated 200GB to the server C: on thin provision.  Windows 2008 server shows C: as using only 28GB, Windows Disk Manager shows a 200GB disk but I am not able to shrink the windows volume below 100GB.

In VSphere client, I see the vmdk file file as about 28GB, but when I download, it becomes 200GB on my PC.

How do I shrink the server volume to 30GB? and reduce the vmdk file to the same size? (30GB)

Thanks.

It shows
0
Comment
Question by:sidartra
  • 2
  • 2
4 Comments
 
LVL 5

Assisted Solution

by:alreadyinuse
alreadyinuse earned 250 total points
Comment Utility
Here is a link that will show more information as to why you might only be able to shrink 50%

http://www.undermyhat.org/blog/2010/08/tip-how-to-shrink-a-volume-beyond-half-its-size-using-diskpart-or-disk-manager/

Here is a link i use for growing a volume, have not used the shrink commands. But we use only diskpart and not the GUI and have better success.

http://www.techotopia.com/index.php/Extending_and_Shrinking_Windows_Server_2008_Partitions_and_Volumes

Now does your environment use share storage or do you have more than one VMFS volume? If so you could right click the VM and choose the migrate option. Then select storage motion or change datastore and you should have the option to resize the disks.
0
 
LVL 2

Accepted Solution

by:
omesie earned 250 total points
Comment Utility
If Windows is already using the disk and you can't shrink the actual windows disk, you may need to run a P2V import.
i.e. re-import the same VM to a new one where it will give you the option to resize all disks.
I've had to do this in the past and seems the fastest way without messing about.
also good for when you want to remove an entire disk for cloning.

e.g. I have a file server with a 30GB C: and 700GB D: . For testing purposes, I only wanted the C: drive.
You can do that with a clone (it creates the D: then deletes later), but you can with the P2V tool.
0
 
LVL 2

Assisted Solution

by:omesie
omesie earned 250 total points
Comment Utility
oops, meant Can't do that with a clone.
0
 
LVL 5

Assisted Solution

by:alreadyinuse
alreadyinuse earned 250 total points
Comment Utility
As stated above the migrate will allow you to perform customizations, the VM may need to be powered off if you want to change the drive size and also you would need more than one VMFS volume to do a storage motion procedure.

The P2V is also an option as stated above and you could do this hot, but if the data is dynamic and will change that might be an issue. Although the newest converter from Vmware advertises a last sync of data before cutover.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now