Here’s a question that came in – what changed in SQL Server 2005 that allows concurrent log and full backups? First a little background, in case you didn’t know about the change in behavior. In SQL Server 2000, a concurrent log backup with either a full or diff backup (I’ll just say ‘full’ from now on but take it to mean ‘full or diff’) was not permitted. The reason is that a log backup would clear the inactive portion of the log once it’s been backed up, but a full backup may still need some of that log so it can’t be cleared (see this post and this post for an explanation). The simple route was taken of disallowing concurrent log backups with fulls. In SQL Server 2005, the restriction was lifted, but there’s a subtle twist. You can do concurrent log backups with fulls BUT the log is not cleared when the log backup ends. The clearing of the inactive portion of the log is delayed until the full backup completes. This could cause you to have disk space problems if your log generation rate is huge and you’re relying on very frequent backups to manage the log size. So – what changed that allowed the SS2000 restriction to be lifted? Nothing – just the code was changed to delay the log clearing and allow the concurrent backups. Pretty cool change – but watch out for the twist.
6 Responses to Search Engine Q&A #16: Concurrent log and full backups
Yeah, sometimes little tweak can make a big deal. Sometimes, however, it may make a crash. What’s changed in SQL Server 2008 about this? Anything interesting around this?
Thanks a bunch,
Carl
Nothing’s changed here for 2008.
Hi Paul
Have you ever encountered a case or know of one with Litespeed where a Full and Log Backup kicked off at the same time resulted in a corrupted Log backup… we have observed this in a couple of cases and were wondering if the simultaneous kick-off was the cause as on each occasion the log backup was corrupted a full backup had kicked off at the exact same time as the log backup.
Many thanks.
Cheers
Chirag
Can’t comment on LiteSpeed as I’ve never used it – I’ve heard it’s had issues in the past but I haven’t heard of this specific case. This certainly isn’t a SQL Server issue that you’re experiencing. Thanks
[...] No, this changed in SQL Server 2005. See my blog post Search Engine Q&A #16: Concurrent log and full backups. [...]
[...] Concurrent log and full backups [...]