I originally wrote an article about general diskspace issues on an SBS 2008 server back in October which can be found here.
In it I touched on deleting the dataservicecomponents.log file to free up space, but having had to do the same thing again today on a different server. I noticed the instructions were pretty well hidden in a body of text. So here is a quick post to rectify that.
How to delete the dataservicecomponents.log file in SBS 2008
1. Close the SBS Console.
2. Stop the Windows SBS Service.
3. Browse to the C:\Program Files\Windows Small Business Server\Logs\MonitoringServiceLogs\ folder.
4. Archive/delete/move the dataservicecomponents.log file
5. Restart the Windows SBS Service. A new log file will be automatically generated.
1. Using File Server Resource Monitor to monitor the SBS 2008 DataServiceComponents.log file size
2. SBS 2008 disk space and the DataServiceComponents.log file
3. How to copy incoming or outgoing emails to another mailbox in Exchange 2007 or 2010
I was doing some house keeping on one of the oldest SBS 2008 servers I have in the field, and was trying to free up some disk space on C:, I usually like to keep 20-30GB free on a C: which is usually 100GB.
There is a really good Technet blog post here, which gives a good overview of some of the areas where we can reclaim diskspace from. These include, SBS Logs, IIS Logs, Badmail directory, and a couple of wizards, the WSUS Cleanup Wizard, and the Move Data Wizards.
One of the first things we do with a new SBS server is move the data and WSUS off of the C: so this generally leaves logs and Badmail.
On this particular server the admin account i was using didn’t have permissions to the C:Program FilesWindows Small Business ServerLogsMonitoringServiceLogs folder. Once i had given the account access to it I was amazed to see the DataServiceComponents.log was nearly 3.5GB in size, not only is it huge but for a text based log file it would be a nightmare to use. Now SBS 2008 logs an awful lot of data to this file, so you don’t want to just delete it in case you need to reference it in future for troubleshooting. On this server, I sent it to an archive folder, the size reduced to 85MB. You have to stop the Windows SBS Manager Service first, so you can archive and delete the log file. When you start the Windows SBS Manager Service a new DataServiceComponents.log file will be created.