Solved

Hyper-V regaining disk space?

Posted on 2014-12-06
6
210 Views
Last Modified: 2015-02-27
Ok so basically I have a 3.63TB Physical storage partition on my Windows 2012 server storing VHD files for x2 Virtual machines x1 VHDX for the Server OS and x1 VHDX for the Storage.

I've recently had a few issues restoring data within side the VM I had to restore 300GB worth of data then delete and start again etc and noticed the physical storage has hardly any space left and I need to restore the data back inside the VM again but need to make more space before doing so.
Obviously with all the changes that's gone on it's as though it's not reduced the actual VHDX for the storage just made it grow which by the way set as a Differencing virtual hard disk at 896GB and the parent is fixed at 2TB.

I've tried compacting both the vhdx and the avhdx which has made no difference to the their File size.
It's as though I need to defrag the avhdx file to get the space back but I'm not sure and haven't had to mess about much with Hyper-V in this type of scenario before.

Any help or advice would be appreciated.

Many Thanks
0
Comment
Question by:CRL ltd
  • 3
  • 3
6 Comments
 
LVL 14

Assisted Solution

by:brendanmeyer
brendanmeyer earned 500 total points
ID: 40485115
is there a reason why its a differencing file? is it a snapshot you want to keep?
0
 
LVL 1

Author Comment

by:CRL ltd
ID: 40485127
not really no
0
 
LVL 14

Assisted Solution

by:brendanmeyer
brendanmeyer earned 500 total points
ID: 40485136
you can try

VM settings
-> Vhd settings
-> tools (i think)
and there should be a compacting option -- (not shrinking)
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 1

Author Comment

by:CRL ltd
ID: 40485370
ok since compacting the VHDX files and running a Defrag on them it's made no difference to the storage size and now all of a sudden when I boot the VM the local disk E: shows as RAW and I can't access the data?
0
 
LVL 1

Author Comment

by:CRL ltd
ID: 40485392
I can't even mount the AVHDX file but can mount the parent file? I'm confused. I had to reconnect it to the parent and clicked ignore ID mismatch which is what's done it I'm guessing?

What should I do as next step? point the VM to the parent file instead?
0
 
LVL 14

Accepted Solution

by:
brendanmeyer earned 500 total points
ID: 40490526
I would restore the file from backup.

unsure what you can do next.
what else have you tried?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hard link? Symbolic link? Something else to trick cloud drive? 19 84
Convert Hyper-V VM from Gen1 to Gen2 6 98
Hypervisor 1 U 10 37
Internet explorer, Windows server 2012 8 30
If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…

830 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