Solved

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

Posted on 2015-02-13
5
238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 122
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 122

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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

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.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

621 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