Solved

I can't create new or expand existing VHD in Hyper-V

Posted on 2014-09-25
8
287 Views
Last Modified: 2014-12-06
Hi!

I've been trying to add a new VHD to an existing VM but am experiencing problems. when I try to add the new disk the Hyper-V manager hangs in the creating new disk step. I've then tried to expand an existing disk and then suffers a hang when the Hyper-V manager is discovering the current disk I want to expand. I've made sure there is enough free space available where I want to create the VHD. I've also tried this using a different managing machine and the 5nine Hyper-V manager but am experiencing similar problems.

The VM who's disks I'm trying to modify is a SBS 2011 and is the only DC and DNS on the network. The Hyper-V machine is a Server 2012 Core.

Any suggestions on what might be wrong?

Regards
Alex
0
Comment
Question by:joebilek
  • 5
  • 3
8 Comments
 
LVL 57

Expert Comment

by:Cliff Galiher
ID: 40345721
Are you sure it is hanging? If the VHD being created or expanded is static. The system actually writes every sector at creation or expansion time. That can take quite awhile. Patience...
0
 
LVL 1

Author Comment

by:joebilek
ID: 40345832
Considering it's a server in active production the most I have given it is about 60 minutes for creating a 50 GB disk. What would be a reasonable amount of time to wait?

Having created disks in other Hyper-V environments I'm not used to this step taking more than a few minutes.
0
 
LVL 57

Expert Comment

by:Cliff Galiher
ID: 40345844
It is all about I/O. Trying to expand 50GB on 7.2k disks in RAID5 while other VMs are running on the same spindles? 60 minutes is a pipe-dream. In all but test labs with dynamically expanding disks is "a few minutes" realistic. So how long it should take...I can't say. I don't know the server or workloads. But I can guess by your response that your expectations may be a bit... aggressive.
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 1

Author Comment

by:joebilek
ID: 40346005
I'll try a nightly update giving it plenty of time to create a new 50 GB disk and will return here if there are further problems.

Please note though that I can see the file having been created at full size on the Hyper-V Core machine after just a minute or so.
0
 
LVL 57

Expert Comment

by:Cliff Galiher
ID: 40346050
That's just an NTFS journal entry. It takes almost no time. But since the virtual disk is static, the system still has to write the VHD information to the actual areas allocated, and that takes much longer.

Think of it like renting a storage unit. The space is yours the moment you sign the contract. And you can look at the contract and see the size of the space you rented. But if you are going to store stuff, you have to go to the unit and install shelving. The shelves will start empty, but setting up shelves still takes time.

The VHD may not hold data, but it still has a structure and format that mist be written, block by block.
0
 
LVL 1

Author Comment

by:joebilek
ID: 40349377
I'll try it out and will let you know if giving it more time will solve it.
0
 
LVL 1

Accepted Solution

by:
joebilek earned 0 total points
ID: 40475423
Created a new dynamic vhd instead which was done in seconds and used it instead.
0
 
LVL 1

Author Closing Comment

by:joebilek
ID: 40484404
Solved our problem
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…

821 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