• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 200
  • Last Modified:

Hyper V Pause - Critical Disk Space Issue

I have a major time sensitive issue. I need to get this server online so they can work until later today I can provide a more permanent fix. The Main server 2012 has 25 GB free. When I start the vmachine it goes down to like 30MB. I moved files from the virtual machine to free 25 GB of space but that didn't effect the numbers on the main server.
0
cnl83
Asked:
cnl83
5 Solutions
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
You have to compact the VHD.
0
 
cnl83Author Commented:
Am I going to lose any data?
0
 
CESNetwork AdministratorCommented:
You could run TreeSize on the host server to see where space is being consumed and then delete unnecessary files:

https://www.jam-software.com/freeware/

You could also run CCleaner if you still trust it
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Go to the Settings of the VM in HyperV Manager, go to the VHD(x) in question (state MUST be off, not saved!)  Click on Edit and then follow the wizard to Compact (this will take some time, but if memory serves USUALLY not more and 15-30 minutes, though clearly it depends on the size and type of the disk).
0
 
cnl83Author Commented:
The vmachine is the only thing on that drive. Funny thing is that when I look at the properties it shows the flies are 420gb but the drive itself shows 446GB used.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
You shouldn't, but that's why you have backups, RIGHT?

The process doesn't normally lose data, but you're mucking around with disks (virtual or otherwise) - it's unwise not to be prepared for the POSSIBILITY that something goes wrong.
0
 
cnl83Author Commented:
It says edit is not available because checkpoints exist for this virtual machine. Can I just delete the checkpoint?
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Once you get it running, go to Disk Manager of the VM and shrink the partition used so that it's at least 10% smaller than the total physical space.  This should prevent the dynamic VHD from growing to a point that this happens.  Then, get yourself new drives and you can expand the partition and (if necessary) the VHD.  (because of the way things get written to disk, the VHD can, at times, grow and be much larger than the actual size used.  By limiting partition size, you should be preventing that (I've done this with long term success on a number of systems).
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Yes, WHY are you using Checkpoints?!  No Production server should use Checkpoints!  Stop!

That said, I ALWAYS get paranoid about checkpoints.  I would try to Export the VM to another drive as a backup JUST TO BE SAFE.  But Deleting should do the trick *if* I remember correctly.
0
 
cnl83Author Commented:
Now I got a major problem. I clicked snapshot to see if there was a dialog for snapshots. I tried to start the machine to see if I can backup an sql file but it says windows failed to start a


File: \boot\bcd\
status 0xc000014c
the boot configurationd ata for your pc is missing or contains errors.
0
 
cnl83Author Commented:
thats all I did was click snapshot
0
 
cnl83Author Commented:
Im sorry checkpoint! not snapshot
0
 
Tom CieslikIT EngineerCommented:
You can't just delete checkpoint. You must stop server to do it first, then you can delete. If you delete you can loose part of information so server will not start anymore.

I hope you have everyday backup so you can recover from. If not then is going to be problem for you.
0
 
cnl83Author Commented:
I deleted the checkpoint and it started normally. So I just need to compact that disk right?
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
I'm not sure about a saved/paused-Critical situation, HOWEVER, in 2012 R2 and later you can delete checkpoints while the VM is running (merger takes longer).
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Compact, yes but you'll need to shutdown the VM first.  And Again, I always prefer erring on the side of caution - BACKUP FIRST!
0
 
cnl83Author Commented:
Thanks for everyone's help. I deleted the checkpoint, then compacted the disk and it freed up 120GB!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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