Recovering Disk Space on the C: Drive in Small Business Server 2008
Modified on: Wed, Feb 3, 2016 at 9:12 AM
SBS 2008 installs all of its features using a single volume (C:), there are tools available to move some of the data to other locations, but a number of folders that remain in the C: volume can continue to grow if left unchecked, this can potentially eat all the available disk space on the C: drive. Once the C: drive reaches certain low space thresholds, some services will stop functioning properly on the server, while others will change their behavior to prevent data loss. Usually, administrators realize they have a problem when e-mail flow is impacted, under low disk space conditions, due to theExchange Back Pressure features, mail flow will stop. Users may experience some of the following errors or non-delivery-reports: Error 0x800CCC6C,SMTP_452_NO_SYSTEM_STORAGE, or452 4.3.1 Insufficient system resources.
These are some of the steps that can be performed to help recover and prevent these issues.
By default, all IIS hosted web sites have logging enabled, this can lead to some large folders in C:\inetpub\logs\LogFiles(Review this post in case you have moved your log files). You may also want to specifically stop logging all together for certain web sites, in particular, the “WSUS Administration” web site (Site Id 1372222313). For this, perform the following steps:
Launch IIS Manager from Administrative Tools.
Expand Server, Sites, and select the WSUS Administration web site.
On the feature panel, click to open Logging.
Click Disable in the Actions panel (rightmost panel)
Repeat the steps for any other web site. Please note that logging may be needed for troubleshooting or auditing purposes on sites that are public facing, this is usually not the case on the WSUS Administration site.
Some of the SBS 2008 log files can grow to very large sizes, all SBS logs are stores in this folder (and subfolders): C:\Program Files\Windows Small Business Server\Logs\. Some of the logs that will grow the most and may need trimming are:
Console.log, this log will continue to grow while the SBS Console is running.
*.evtx files, these are the event logs before the setup of the server completed, they can be safely removed if the server has been in production and had no setup issues.
W3wp.log, in the C:\Program Files\Windows Small Business Server\Logs\WebWorkplace folder. This is the log for Remote Web Workplace.
The C:\Program Files\Windows Small Business Server\Logs\MonitoringServiceLogs folder. These are the logs for the Windows SBS Manager service.
POP3 Connector Badmail directory
If you are using the POP3 Connector, you may end up with emails that failed to be delivered (rejected by the local Exchange server) in C:\Program Files\Windows Small Business Server\Data\badmail. This folder will be automatically trimmed to 400mb once it reaches 450mb once a week.
The licensing log can consume a significant amount of hard disk space
In WSUS, you can delete unused updates and update revisions, computers not contacting the server, unneeded update files, expired updates and superseded updates. In order to accomplish this, you have to manually go through the WSUS Server Cleanup Wizard. To run the Server Cleanup Wizard :
In the WSUS administration console (launch it from the Administrative Tools), select Options, and then Server Cleanup Wizard.
By default this wizard will remove unneeded content and computers that have not contacted the server for 30 days or more. Select all possible options, and then click Next.
The wizard will begin the cleanup process, and will present a summary of its work when it is finished, depending on the server performance, this may take a very long time. Click Finish to complete the process.
Active Directory Certificate Services transaction log files
When completing a critical or system state backup of the C: volume, a new transaction log will be generated under thec:\windows\system32\certlog\ folder. Removing these logs is only safe as long as the CA database file is consistent. In order to remove these logs and reclaim disk space, follow these steps:
Open the Services MMC and stop the Active Directory Certificate Services service.
Make a backup copy of ALL the file contents present in the c:\windows\system32\certlog\ folder.
Delete EDB.CHK and all the files that have an extension of .LOG (*.LOG)
Restart the Active Directory Certificate Services service.
Windows Component Clean Tool
The Windows Component Clean Tool (COMPCLN.exe) can be used to remove the files that are archived after Windows Vista SP2 or Windows Server 2008 SP2 is applied. It also removes the files that were archived after Windows Vista SP1 was applied, if they are found on the system. Running this tool is optional.
Installing Windows Server 2008 service packs increases the amount of disk space that is used by the operating system. This space is used to archive files so that the service pack can be uninstalled. Typically, you should run COMPCLN.exe if you want to reclaim this disk space after applying SP2 and if you will not need to uninstall SP2.
NOTE: You cannot uninstall Windows Vista SP2 or Windows Server 2008 SP2 after you run this tool on an image.
Move Data Wizards
We are not going to focus on these wizards on this post, but as a reference, SBS 2008 provides an automated way of moving the following:
Move Exchange Server Data: which moves both the exchange database file as well as your exchange transaction logs for all storage groups.
Move Windows SharePoint Services Data: Moves the SharePoint Content and Configuration databases.
Move Users’ Shared Data: Moves C:\Users\Shares\ directory and all sub directories
Move Users’ Redirected Documents Data: Moves C:\Users\FolderRedirections\ directory and all sub directories
Move Windows Update Repository Data: Moves the repository data from C:\WSUS\WSUSContent and C:\WSUS\UpdateServicePackages. Please note it does NOT move the SUSDB Folder and the WSUS database which contains the metadata.