Home » Blog » Running out of Disk Space on your System-Partition?

Running out of Disk Space on your System-Partition?

Yesterday I was running out of disk space on a productive Windows Server 2012 R2 Server wich is acting as a Hyper-V Host.

Check the Virtual Memory Settings

It seems to be obvious, but when it is late in the evening you might not think of it. Check the setting of the Virtual Memory. For a Hyper-V Host you should not use the 1.5 to double of the physical memory isntalled. You should instead use the 1.5 to double of the amount physical RAM needed by the parent partition. So as a rule of thumb you could set it to 6 or 8 GB. After a restart the new setting is active.

windows.old?

If you have upgraded your server before, you might have a windows.old folder, which has the old installation in it. Simply delete it does not work. The owner of the folder is "system". Take ownership as administrator, set the appropriate rights and delete it.

WinSXS - Windows Side-by-Side folder

The WinSXS folder holds the installation files for all installations and is about 6 GB in size. To size it down, you could user some Powershell-Commands.

The following command shows you all available features and which one are already installed.

Get-WindowsFeature

After that we remove all unused commands with

Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $False } | 
Uninstall-WindowsFeature –Remove

Do a restart. Wait a few minutes, Windows does some...

On my lab I get

So the command has brought a free space of 1248 MB for me.

By the way, if you are interested in the command which displays the free space, here it is:

Get-WmiObject -Class Win32_LogicalDisk | 
Select -Property DeviceID, @{Name=’FreeSpaceMB’;
Expression={$_.FreeSpace/1MB} } | Format-Table -AutoSize

How should we deal with the new situation? My first guess was, that Windows will prompt for the CD-path. If you see the yellow bar don't oversee the link "specify analternate source path" at the bottom.

>ou can also use Powershell

get-windowsfeature -name snmp* | 
install-windowsfeature -source wim:d:\sources\install.wim:2

This command installs all features beginning with snmp assuming the install.wim is in d:\sources. :2 is the index of the version - standard

For further information I recommend this Article from the Canadian IT Pro Connection.

Memory: 2 mb, MySQL: 0.0011 s, 1 request(s), PHP: 0.0513 s, total: 0.0525 s, document retrieved from cache.