Solved

Expanding the space on the C driver of a 2008R2 server on ESXi

Posted on 2015-02-13
5
224 Views
Last Modified: 2015-03-12
Is this possible?   I know it is with Zen but when I add space to the vmdk file for the C drive on a windows 2008R2 machine and try to expand it's grayed out.
0
Comment
Question by:wannabecraig
  • 2
  • 2
5 Comments
 
LVL 119
ID: 40607689
Yes, it's very possible.

Please note if you have a snapshot or IDE disks, you cannot expand the virtual disk, and it will be grayed out, and you will need to resolve that issue.

Do you have a snapshot - check my EE Article

HOW TO: VMware Snapshots :- Be Patient

Once you have Extended the virtual disk, you will also need to alter the OS partition inside the VM, using Disk Management, and Extend Volume,

see my EE Article

HOW TO:  Resize a VMware (VMDK) Virtual Disk
0
 
LVL 1

Author Comment

by:wannabecraig
ID: 40607833
HI,

I've extended the Volume in VMware, they dives are in  SAN, they're SAS, not IDE.
The 'Disk 0' has no 30GB of unallocated space.
The 'extend volume' is still grayed out.
0
 
LVL 1

Author Comment

by:wannabecraig
ID: 40607838
0
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40607850
Okay, I see you already have extended the virtual disk, and hence the unallocated space.

The reason you cannot use EXTEND volume, is because there is NO SPACE, to extend the volume into, because it needs to be contiguous, e.g. next to the C: volume.

Just as an aside, using Partitions in VMs, is old school, because you get into issue like this....

So options:-

1. Add a new virtual disk (VMDK) to the VM, move the data from D: to this new disk, call it O:, once you have removed all the data from D:, delete the partition, and re-assign drive letter O: to D:.

1. Then you will be able to Extend C:.

OR, you will need to use Third Party tools, as per my EE Article, Gparted Util, and MOVE the D: partition down the disk (to the unallocated area), this will shift the unallocated area to next to C:, and then Expand C:, using  Gparted Util or Disk Management.
0
 
LVL 88

Expert Comment

by:rindi
ID: 40607855
You need the free space to be right behind C:, and not D: (it must be between C:\ and D:\).

You will need to boot the VM from a 3rd party tool like GParted, then first move D:\ to the end of the disk, and after that you can extend your System Partition using either GParted or Windows Diskmanagement.

http://distrowatch.com/table.php?distribution=gparted

But your disk setup isn't the best way to handle things when in a VM. Normally you don't partition a virtual Disk into system and data partitions (or similar. You rather use 1 Virtual Disk for your OS, another for the Data and so on. It makes management much easier. So rather than moving partitions around like I mentioned above, it would make sense to create a new Virtual Disk and copy your Data partition to that. Then delete the data partition and use your complete first Virtual disk just for your OS.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
changing harddisk on computer in corporate 10 43
VMWARE 13 62
Whitelisting applications 2 20
Where to find file on SBS 2008 4 22
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

808 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