Hyper V Pause - Critical Disk Space Issue

cnl83
cnl83 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013
Commented:
You have to compact the VHD.

Author

Commented:
Am I going to lose any data?
CESNetwork Administrator

Commented:
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
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013

Commented:
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).

Author

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.
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013

Commented:
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.

Author

Commented:
It says edit is not available because checkpoints exist for this virtual machine. Can I just delete the checkpoint?
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013
Commented:
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).
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013
Commented:
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.

Author

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.

Author

Commented:
thats all I did was click snapshot

Author

Commented:
Im sorry checkpoint! not snapshot
Tom CieslikIT Engineer
Distinguished Expert 2017
Commented:
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.

Author

Commented:
I deleted the checkpoint and it started normally. So I just need to compact that disk right?
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013

Commented:
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).
Technology and Business Process Advisor
Most Valuable Expert 2013
Commented:
Compact, yes but you'll need to shutdown the VM first.  And Again, I always prefer erring on the side of caution - BACKUP FIRST!

Author

Commented:
Thanks for everyone's help. I deleted the checkpoint, then compacted the disk and it freed up 120GB!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial