Hyper-V VHD Shows 100% Disk Space Used After Adding Space – How to Fix

hyper-vhyper-v-server-2012-r2

Hyper-V Host is 2012 R2 with several guests.

My primary guest is a TFS server using a 100G VHD. I wasn't really keeping track of it that close and at some point the VHD hit 100% space used. I expanded the size by 20G, but the space used remained at 100%.

So I begin trying to understand how to fix the issue by asking why did the 20G I added not leave me with open space on the VHD?

Best Answer

You added space to the VHD. You didn't, however, change the partition table on that disk so that the file system on the disk can use the extra space. So, to the guest OS, it looks like a disk with one partition and some empty space that could be used for another partition. You can either add another partition (which would be an odd choice) and then format it with a second file system, at which point you'll see two drive letters (if you're using them) and all the space will be available. Or, more usefully, you can extend the partition that exists, at which point the existing file system will use the extra space.