Solved

purge or delete or re-initilaise sbsmonitoring database (sbsmonitoring.mdf, sbsmonitoring.ldf)

Posted on 2012-12-22
8
11,884 Views
Last Modified: 2012-12-31
Hi,
I currently have the SBSMonitoring database using a huge amount of space on Small Business Server 2008 (sbs2008)

sbsmonitoring.mdf    994.2MB
sbsmonitoring.mdf    611.1MB

Is there an easy way to purge, delete or re-initialise this database to get the size down ?

Regards
Michael
0
Comment
Question by:SGSMikeG
  • 5
  • 3
8 Comments
 
LVL 21

Expert Comment

by:Larry Struckmeyer MVP
ID: 38716386
Hi:

In the SBS console, under Monitoring, run the setup wizard.  This will clear the history so you will not have comparisons in the reports, but it will lower the space consumed.

How big is your system partion?  1.5 GB is not "huge" for this database.
0
 

Author Comment

by:SGSMikeG
ID: 38716407
Where is 'Monitoring' located on the SBS2008 console ?
0
 
LVL 21

Expert Comment

by:Larry Struckmeyer MVP
ID: 38717037
Sorry, keep getting the versions mixed....

You still are nowhere near any limits on these files.  If your system partition is lacking free space, either the partition is too small or there are other things using the space.

Here are two articles that explain it.  Note, Please read them both to the end.

http://blogs.technet.com/b/sbs/archive/2009/07/14/sbs-2008-console-may-take-too-long-to-display-alerts-and-security-statuses-display-not-available-or-crash.aspx

and

http://www.thirdtier.net/2010/03/sbs-2008-monitoring-database-fills-to-capacity/
0
 

Author Comment

by:SGSMikeG
ID: 38717661
The customer's C: drive is quite small - hence the issue.

I read all three articles - have seen this about updateSBSMonitoring.sql  before.

I ran updateSBSMonitoring.sql per the procedure.

It did NOT decrease the database size - it INCREASED IT !.  And the log file size TOO ! (to over a gig).

Is this the result you expected ?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 21

Expert Comment

by:Larry Struckmeyer MVP
ID: 38718382
Not what I expected and not sure what that is about, but you will be fighting this forever.  Probably better to increase the size of the system partition.

Also, "run as administrator" either wirdirstat or treesizepro to see what else is consuming space on that system.
0
 

Accepted Solution

by:
SGSMikeG earned 0 total points
ID: 38719284
OK - it looks like it needed a shrink as well.  Database is now 120Mb.

Here is the batch file I developed that worked :


Rem script developed from :
Rem http://blogs.technet.com/b/sbs/archive/2009/07/14/sbs-2008-console-may-take-too-long-to-display-alerts-and-security-statuses-display-not-available-or-crash.aspx

Rem Find and stop the SQL Server (SBSMONITORING) service.

NET STOP MSSQL$SBSMONITORING

MKDIR C:\TEMP
MKDIR C:\Temp\DataBackup

Rem backup all databases and log files in this directory
XCOPY /E /C /H /R /Y "C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Data\*.*" C:\TEMP\Databackup

Rem Restart service
NET START MSSQL$SBSMONITORING

Rem Run downloaded SQL to EXECUTE [SBSMonitoring].[dbo].[CleanupDatabase] create indexes and statistics

Sqlcmd -S %computername%\SBSMonitoring -E  -i c:\Batch\updateSBSMonitoring.sql

sqlcmd -S %computername%\SBSMonitoring -E  -i c:\Batch\shrinkSBSMonitoring.sql

PAUSE
1
 

Author Comment

by:SGSMikeG
ID: 38719285
And yes - Windirstat is very useful.  But that is how I identified this size issue in the first place...:)
0
 

Author Closing Comment

by:SGSMikeG
ID: 38732220
Solution required combining multiple steps/suggestions
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Written by Glen Knight (demazter) as part of a series of how-to articles. Introduction One of the biggest consumers of disk space with Small Business Server 2008(SBS) is Windows Server Update Services, more affectionately known as WSUS. For t…
I work for a company that primarily works with small businesses as their outsourced IT vendor. As such the majority of these customers utilize some version of Small Business Server. Due to the economics of running a small business, many of these cus…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now