March 13, 2008 at 6:49 am
My *.bak file is bigger than than my database files.
Backup size last night was 431GB. The database files are 371GB and
My log file is 178GB.
Does the backup file backup the log size in the file as well?
Yes, the Trans logs are backed up every 15min.
Help.
March 13, 2008 at 8:07 am
Are you using INIT and creating a new file every day? A BAK file can be set to store multiple backups, which is a bad idea. Go to the restore dialog, look at the contents of the file.
March 13, 2008 at 8:47 am
Steve Jones - Editor (3/13/2008)
Are you using INIT and creating a new file every day? A BAK file can be set to store multiple backups, which is a bad idea. Go to the restore dialog, look at the contents of the file.
I am creating a new file each day. Once the new file is created the old file gets deleted.
March 13, 2008 at 9:07 am
I starting to think that my log file growth is becuase of stopping the replication log Reader. It was timing out. So I need to redo the snapshot.
My question is
If you have Replication setup does it keep these queries in the trans log file until they are read by the Repliation log ready and transfered to the replicated DB?
March 13, 2008 at 9:08 am
The size of your backup file is smaller than the sum of your data and log files. It is reasonable. From your data, log file takes about 60 GB in your backup. Your server must be used very heavily.
You can use DBCC SHRINKFILE command to shrink your log file.
Do you have any replication or log shipping running on this server? If so, the inactive transaction logs may not be released when replication or log shipping are in progress even you have transaction backups. DBCC SHRINKFILE may not work either.
March 13, 2008 at 9:15 am
....
Do you have any replication or log shipping running on this server? If so, the inactive transaction logs may not be released when replication or log shipping are in progress even you have transaction backups. DBCC SHRINKFILE may not work either.
First, thanks for getting back with me.
Yes, lots of activity.
Yes/no, Replication was running until last sunday night and it timeout out. I was not able to get the logreader to run, so I just stopped it.
So If I delete the Replacation process on the server, will this release the inactive transactions for the log?
March 14, 2008 at 8:56 am
You bet.
Although you have regular transactional backup, your transactions are kept for your replication. Therefore, we cannot say the transactions are really inactive until you drop the replication, or your replication is committed in transactional replication.
March 17, 2008 at 8:38 am
Follow-up.
By deleting the Replication process, I was able to shrink the log file down to size.
That was indeed the problem.
March 17, 2008 at 8:49 am
Thanks for the update and be careful of pausing replication for extended periods of time.
July 21, 2008 at 6:12 am
I have a similar problem: .mdf file is 2.3GB and the .bak file is 3.0GB. The log file was truncated before the backup was created and I don't use replication.
I'm using SQL Server 2000
Any thoughts ?
RichRock
July 21, 2008 at 6:49 am
richrock (7/21/2008)
I have a similar problem: .mdf file is 2.3GB and the .bak file is 3.0GB. The log file was truncated before the backup was created and I don't use replication.I'm using SQL Server 2000
Any thoughts ?
RichRock
truncating the log won't clear out active transaction so I presume you had a large open transaction at the time of the backup.
---------------------------------------------------------------------
July 21, 2008 at 6:59 am
Thanks for the fast response. The database isn't subject to large transactions. And the .ldf was 1MB when the backup was created. And - apologies for putting this in "SQL Server 2005 > Backups"!!!!
RichRock
July 21, 2008 at 7:09 am
then we are back to the old appending backups rather than overwriting?
---------------------------------------------------------------------
July 21, 2008 at 7:17 am
No, that's not it. I created a new backup device and selected "Overwrite existing media" - just in case.
RichRock
July 21, 2008 at 7:26 am
just make sure you are able to restore from this .bak file. will be interesting to see how long the recovery stage takes,.
---------------------------------------------------------------------
Viewing 15 posts - 1 through 15 (of 19 total)
You must be logged in to reply to this topic. Login to reply