Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've seen many posts about this folder on the serverfault.com site but none helped me solve my issue. I have at least 20 servers with fully packed system partitions (I don't know why, but all system partitions have been configured with 30GB), The operating system on all servers is Windows server 2008 R2, no SP1 is installed and therefor the tools are non-existent (compcln.exe and vsp1clean.exe), in addition to that i'm not allowed to install SP1 on the servers. Where ever it was possible i deleted many "$NT..." folders from the Windows directory and in some servers it did solve the free space issue, but on the rest of the servers I couldn't find any "$NT..." folders to delete. Shadow copy is disabled on all servers as well as system restore. The windows cleanup tool is missing from the right click menu -> properties window of the disk. I understand that tempering with the WinSxS folder manually is not recommended. Is there a solution to my problem?

share|improve this question
    
1. Windows Server doesn't have System Restore. 2. If youy want to run the disk cleanup wizard you'll need to install the Desktop Experience feature. 3. Is there adjacent free space on the disk that you can extend the volume into? –  joeqwerty Oct 31 '12 at 14:29
    
Tried Winstatdir? –  HopelessN00b Oct 31 '12 at 15:41
    
@joeqwerty : No, it's a physical disk. –  Itai Ganot Oct 31 '12 at 19:14
    
@HopelessN00b : I'm using TreeSize, does it matter? –  Itai Ganot Oct 31 '12 at 19:15
1  
@ItaiGanot No, whatever utility to find volume utilization works fine. I didn't read thoroughly enough; the solution to your problem is "buy new disks." –  HopelessN00b Oct 31 '12 at 19:30

4 Answers 4

up vote 4 down vote accepted

The solution to your problem is to buy bigger disks. After 10 years of updates, my servers still on Server 2003 are running their 30 GB volumes out of space on a regular basis.

And Windows 2008 R2 on a 30 GB volume? Forget about it; they just need more space. And if your disks are full, sounds like new server hardware's going to be damn near required as well. You can bit the bullet now or later. Now is cheaper.

Personally, I tend to favor a mirror RAID for the OS disk, and where needed, a 4-disk RAID 10 for the data partition (since practically every server made in the last 10 years supports at least 6 physical disks), but either way, this type of situation is why it's best to keep your data and OS volumes on different disks.

share|improve this answer
    
There's no doubt that this is the best solution and I totally agree with you that 30GB is not enough for a system disk these days, but my company made it very clear that they will not buy new servers in the near future and I'm actually looking for a "magic" solution because at the moment the servers, which are fully production servers and cannot be down for even 10 minutes, are not fully operative because of the free space issue. –  Itai Ganot Oct 31 '12 at 19:43
    
@ItaiGanot my company made it very clear that they will not buy new servers in the near future Well, you need to make it equally clear to them (tactfully) that the issues they're having are a result of these servers not having big enough disk drives. Period. If they don't want to buy new servers or new disk drives (and take an outage to mover the systems over), they will continue to have these problems, and that's just all there is to it. They want magic, tell them to hire a wizard, not an IT professional. –  HopelessN00b Oct 31 '12 at 19:48
    
Hehe, ok then, thanks for all the advice! –  Itai Ganot Oct 31 '12 at 19:59

I solved it by moving that folder to another partition. My server is Windows 2008 R2, and is DC. Here's the steps:

  1. Logon as administrator. Copy C:\windows\winsxs to z:\windows\winsxs. Drive Z is on a different partition.
  2. Create a link for the new folder. In Command Prompt, excute "mklink /j c:\windows\winsxs_1 z:\windows\winsxs". It creates a link with name winsxs_1.
  3. Restart the server with Winodws 2008 R2 Installation Disk. When it starts, select Repair your OS, NOT Install. It will pop up the System Recovery Options window. Select the option "Use recovery tools that can help fix problems starting Windows". It lists the OS installed on this server. Write down the drive letter. Your C drive may not be C at this time. Mine is drive G. Then click Next.
  4. Use Command Prompt. Go to the drive that your OS was installed. And go to Windows folder. Rename Windows\winsxs to be winsxs_original. Rename the link windows\winsxs_1 to be winsxs.
  5. Exit the command windows, and restart the server.
  6. Logon as administrator. Find windows\winsxs_original. Take ownership. And grant administrator to have full control.
  7. Restart the server again. When it's fully started, try update/install/uninstall. And then check which folder has been updated. In my case, z:\windows\winsxs is updated. That means the OS is using the new location. Now you can delete c:\windows\winsxs_original.
share|improve this answer

Per this technet article you should be able to copy the proper clnmgr files out of the winsxs folders.

In order to use cleanmgr.exe you’ll need to copy two files that are already present on the server, cleanmgr.exe and cleanmgr.exe.mui.

For Windows Server 2008 R2 64-bit the two files are found in the following locations

C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe

C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui

Once you’ve located the files move them to the following locations:

Cleanmgr.exe should go in %systemroot%\System32.

Cleanmgr.exe.mui should go in %systemroot%\System32\en-US.

You can now launch the Disk cleanup tool by running from the run dialogue box, the start menu or the command prompt.

share|improve this answer

I agree with the guys who are saying 30 GB is not enough for Windows 2008 R2, but I had the same issue you are facing in the past and I couldn't do anything other than deleting some files. A utility called WinDirStat helped me a lot in identifying which folder is taking too much space. In my case, it was IIS Log files and was hidden from System Tools like clean up. So, I deleted them manually and it was a good temporary solution.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.