8.11.2016

Cleanup Server Free Space

Cleanup Server Free Space

Reference: 



I had a server that was running out of space today. In my fury to assist, I reviewed the following. 

  • inetpub\logs\logfiles\w3svc1 getting very large and safe to delete. It is really only used for IIS security logs and can be purged from time to time. 
  • A scheduled task can be created to purge these logs on a routine basis. 
    • at 12:00 /EVERY:Su Forfiles.exe -p C:\WINDOWS\system32\LogFiles\W3SVC1 -m *.log -d -30 -c \"Cmd.exe /C del @path\"
    • This will trim the logs and run every Sunday.
  • Install Windows Server 2008 R2 KB 2852386, and then install the Server Feature of Desktop Experience which REQUIRES A REBOOT. After rebooting, you can then run Disk Cleanup to clean the WinSys directory which can often take quite a bit of free space.
  • After installing Disk Cleanup tool, you can run a powershell script that will automate the process on a routine schedule. 
  • The next topic of discussion is already mentioned in my blog and it's about reclaim and NetApp White Space with Thin Provisioning and Realigning the disk for maximum performance gains. I've done this at multiple locations and it can be a real benefit to getting speed and space savings. 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.