Freeing space on Windows Server 2008 R2

gib65

Member
Hello,

We are having an issue with disk space being used up on our Windows Server 2008 R2 machine (with SP 1). I've traced the bulk of the space being used to C:\System\WinSxS. My research tells me this is an a system folder that can build up over time. It builds up with every Windows Update. I'm told NOT to just delete things from this folder as it is an important system folder that affects proper Windows functionality.

However, my research also tells that I can clean SOME of the contents of this folder by running Disk Cleanup. In Disk Cleanup, I check "Windows Update Cleanup", and click OK. However, that does nothing. WinSxS is taking up just as much space after this as before.

Disk Cleanup.png

On the other hand, I think this problem goes deeper than just WinSxS taking up space. Every time I'm able to free up some space, it gets used up again. For example, I had a database backup that was taking up 130MB. I deleted that and then installed Desktop Experience (which I'm told is needed to get Disk Cleanup on Windows Server 2008 R2). After that, only 16MB were available on the C: drive. It's possible that Desktop Experience actually uses 114MB but that seems like a lot. Furthermore, only a few seconds after I saw the 16MB on the C: drive, I check again and say 0 bytes available.

Then I was able to get the "Windows Update Cleanup" available in Disk Cleanup which said it could free up 2.5GB. So I checked it and ran Disk Cleanup. When I checked the C: drive, it said there was only 2.3MB of space left. Then I checked again after a few seconds and 0 bytes were left.

Now whenever I run Disk Cleanup, it seems to have no effect on any folders, even with everything checked. (I'm running it from a command prompt with Administrative priveleges: cleanmgr /sageset:65535 & cleanmgr /sagerun:65535).

There seems to be something taking up free space whenever it can. I'm not sure if it's WinSxS or not.

I would very much appreciate if someone could help me troubleshoot this issue.
 

beers

Moderator
Staff member
How much disk do you have allocated to this instance? Is it virtualized?
 

gib65

Member
Yes, after a reboot I had an extra 22MB (Woohoo!).

It is a virtual instance and it has 30GB total (not a lot, I know).
 

beers

Moderator
Staff member
It is a virtual instance and it has 30GB total (not a lot, I know).
What's preventing you from allocating additional disk to the VM?

30 GB is too skimpy for any kind of production environment tbh.
 
Top