Solved

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

Posted on 2014-09-25
8
268 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 56

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 56

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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 56

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now