April 24, 2014 at 2:26 pm
DB size 775 GB
Data file space usage 585 GB
log size 185 GB - according to SQLPERF
My question is this a normal logfile size of 585GB Datafile? any suggestions to reduce log file size besides SHRINKFILE? If I do SHRINKFILE , should I make LOGFILE to '0' and give the right size again? if so, what right size should I give after SHRINKING log file?
Thank you!!!
April 24, 2014 at 2:30 pm
Depends on the transactions you are doing and on the recovery model.
What is the recovery model?
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
April 24, 2014 at 2:57 pm
smtzac (4/24/2014)
My question is this a normal logfile size of 585GB Datafile? any suggestions to reduce log file size besides SHRINKFILE?
Why do you want to shrink the file? What problems are you seeing?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
April 25, 2014 at 6:56 am
full
April 25, 2014 at 6:58 am
@Gila, I like to get your opinion is it normal log size? it's ok to shrink Logfile size? have 520 VLF. should I shrink log file and reset logsize to zero? if I do that what's the initial size should I give to logfile size after shrink Log?
April 25, 2014 at 6:59 am
smtzac (4/25/2014)
full
Did you ever take transaction log backups?
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
April 25, 2014 at 7:01 am
yes, every 30 min.
April 25, 2014 at 7:29 am
smtzac (4/25/2014)
yes, every 30 min.
If you take a transaction log backup, the log is truncated.
So you need to check if there is a lot of space available right before and after a transaction log backup.
This can give an indication how much space you actually need for your transactions.
Any way, if your log is that big, it means it needed that space to store transactions at some point in time.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
April 25, 2014 at 1:41 pm
smtzac (4/25/2014)
@Gila, I like to get your opinion is it normal log size?
There's no such thing. A log file size is dependant on transactional workload, recovery model and log backup frequency. There isn't a 'normal'
it's ok to shrink Logfile size?
Generally no. If it got to that size it usually means that it needs to be that size.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
April 25, 2014 at 7:48 pm
smtzac (4/24/2014)
DB size 775 GBData file space usage 585 GB
log size 185 GB - according to SQLPERF
My question is this a normal logfile size of 585GB Datafile? any suggestions to reduce log file size besides SHRINKFILE? If I do SHRINKFILE , should I make LOGFILE to '0' and give the right size again? if so, what right size should I give after SHRINKING log file?
Thank you!!!
What is the size of the data for the largest table (clustered index)?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 30, 2014 at 1:46 pm
It might not be a "normal" size for that database if it grew large due to a lack of t-log backups some time in the past. But now that you are doing regular backups, it might not need all that space.
Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply