Solved

SQL2012 - Sharepoint Config Log File Size

Posted on 2014-10-09
2
380 Views
Last Modified: 2014-10-21
Hi,
I have a client that is running a SharePoint database on a server2008r2. Sql is 2012.
The Sharepoint_Config transaction log file ldf is huge (120gb). The mdf file is only 200mb.

I have been researching the shrink file command, or shrink file via the SQL Server management Studio.
 I have ran a 'DBCC SQLPERF(logspace)' and the Log file space used  is only 2.7 % on this database.

Can anyone advise me this is safe to do? and is there anything I need to do before running shrinkfile on the ldf file? except taking a full backup of the database.

Thanks, Colin
0
Comment
Question by:VitalNetworkSolutions
2 Comments
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 500 total points
ID: 40370815
It's safe to shrink it. This Log file bloat is quite common.

There are the below methods, or DBCC Shrinkfile...

http://www.inetnj.com/?page_id=305

http://shareyourpoint.wordpress.com/2013/03/22/how-to-manage-large-sharepoint-configuration-database-logfile/
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 40372044
If you have not run any Transaction Log backups, you will not be able to shrink the Transaction Log.  What I suggest:
1. Start doing frequent Transaction Log backups or if you are unable to do that then
2. Change the Recovery Model from Full to Simple and lose the ability to do point-in-time restores.

Only do a DBCC SHRINKFILE as a last resort as it is detrimental to the health of your Transaction Log and therefore your database.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
Via a live example, show how to shrink a transaction log file down to a reasonable size.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

911 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

17 Experts available now in Live!

Get 1:1 Help Now