• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1048
  • Last Modified:

Hyper-V Increasing hard drive size

Hi,

I am running windows server 2003 as a virtual machine (Hyper-V). I have reached capacity (30gb) on my allocated disk space (on the virtual machine)

I have stopped the virtual server in Hyper-V, right clicked and used the expand option to double the drive capacity (now shows as 60gb). After restarting the server and going into disk management, I now have my c drive and 30gb of unallocated space.

I have tried using the DISKPART command to extend the partition (extend size=2000) but I keep getting the message "The volume you have selected may not be extended. Please select another volume and try again"

Is there any way to get round this, any tool i can use (preferably free) which will simply merge to the two partitions and not affect anything in the process?

Thank You, looking forward to finding a solution!
0
Antikythera
Asked:
Antikythera
  • 3
  • 2
  • 2
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
1. Power Off the Server,
2. Download the following iso cdrom from

http://gparted.sourceforge.net/download.php

3. Mount the iso cdrom in the virtual machine.

4. Wait for the cdrom to boot.

5. Expand the partition.

(see instructions if not clear

http://www.howtogeek.com/howto/windows-vista/using-gparted-to-resize-your-windows-vista-partition/)

6. Shutdown and restart VM.

7. Done.

8. Please ensure you have a valid backup before altering partitions.

0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Another method for your consideration.

You cannot use diskpart to extend the system partition (C: drive).

But you can attach this 60GB C:\ to another Virtual Machine, boot that virtual machine with this disk attached, and Extend the parition in that Virtual Machine.

i.e. extend the D:\ drive or Disk 1 (2) of that machine.

Shutdown, detach, and reboot original machine, and it will be extended.
0
 
Greg HejlCommented:
hancock has it right

also make sure you compact and make the drive fixed

make sure you are using data disks for server data (don't store anything but OS on C:\ vhd)
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
AntikytheraAuthor Commented:
Hi Hancocka,

If i use the second solution, what is the process to dettach the drive from the virtual machine and to then attach is as a secondary drive to a secondary virtual machine?

Once it is attached do i then simply use the diskpart command to extend the partition?

Thank You
0
 
Greg HejlCommented:
you can use extend volume in disk management
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
yes, use the same function as before. diskpart.
0
 
AntikytheraAuthor Commented:
thanks
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now