Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 776
  • Last Modified:

Hyper-V, shouldn't a dynamic disk grow dynamically?

The host is "Windows Server 2012 Standard" with Hyper-V role enabled.
I created a 50GB "dynamic VHDx" then installed Windows 2003 Server on it for testing. There is only one partition C: drive. On this partition, there is 40GB+ available space after the OS was installed.
Now I connected a USB hard drive to host, made this USB hard drive offline, then attached this USB hard drive to this VM.
Then, I am trying to copy a 70GB file from the USB hard drive to C: drive within this VM, I got an error message saying that I do not have enough space.

So I shut down the VM, "Expanded" the VHDx, Tried to increase C: drive to take the additional space, failed. I would have to create a separate partition for this additional space.

My questions are
- Since I am using Dynamic VHDx, I expect it will grow dynamically to accept a large file when there is not enough space. But it looks like I am wrong. Why?
- I guess I cannot increase C: partition because it holds OS but I should be able to increase a data partition. Is this correct?

Thanks!
0
techcity
Asked:
techcity
2 Solutions
 
Cliff GaliherCommented:
When you specify a size on a dynamic disk, you are specifying a maximum. So a 50GB disk expand up to 50, but not larger. Which means copying a 70GB file will clearly fail. As far as the partition, dynamic disks don't change the underlying limits of the guest OS. If you couldn't expand a partition because of a second partition in a physical install with physical disks, a dynamic disk doesn't suddenly change that rule. The guest doesn't know or see the disk as virtual. It treats it no differently than it would a physical disk. 2003 only allows expanding the system partition under very specific circumstances, so you are likely simply hitting that block. Nothing to do with the fact that your disk is dynamically expanding.
0
 
rindiCommented:
If you increased the size of the virtual disk you will have to boot the VM using a 3rd party partitioning tool, like GParted, in order to also extend the VM's partition. System partitions where the OS is on can't be extended from within the OS directly, only data partitions can be extended that way.

This was changed with newer OS's, like 2008 server or Vista, there you can also extend the system partition directly from within diskmanagement.
0
 
techcityAuthor Commented:
Thanks very much!
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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