Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Issue with Data Protection Manager and backing up SQL databases... Expand / Collapse
Posted Wednesday, November 14, 2012 11:02 AM



Group: General Forum Members
Last Login: Thursday, December 1, 2016 2:17 PM
Points: 1,772, Visits: 10,711
I've resolved the problem I had with this, but I figured I'd see if anyone else had run into it and if so, how they resolved the problem.

I had setup DPM a while back, and configured it to backup the SQL DBs we use here. All seemed well, and I could use DPM to recover a DB to a specified DPM recovery point. To cover the possibility of needing more fine-grained recovery options, I also had the various SQL Servers running daily full and hourly transaction log backups, which were also backed up by the DPM to move them off the SQL server disks.

All seemed to be going well.

(You knew there would be an until, didn't you?)

We actually needed to do a point-in-time recovery of a DB. I put the needed BAK and TRN files on the server, and started setting up the restore in SSMS (I'm not good enough yet to just key up the T-SQL) The problem being, SSMS wouldn't load ANY of the TRNs, reporting a break in the log chain. So I copied the files to my local PC to keep trying, and found that somewhere between the 9pm DB backup and 10pm log backup, things went pear-shaped. At this point, the manager who had requested the restore proceeded to work around the problem (apparently he closed out a report that was only valid for the time it ran, or some such, without printing it, and the application he uses apparently won't let him specify a time. Pain-in-the-tuckus payroll programs...) while I continued to try to figure out what had happened.

As best I could tell, DPM also fired off a backup at about the time the full DB backup was running, which threw things into a cocked hat. My solution was to stop DPM from directly backing up the DBs and instead only backup the files created by the SQL backups. Thus far, this seems to have resolved the problem (I've done a couple test restores on my local PC, to various times)

Now, DPM, when you restore a DB, will NOT leave the DB in a "Restoring..." state, so you can't recover further using TLog backups. So it seems that if you want to use DPM for backing up SQL DBs, you either need to configure it to backup as often as you might need recovery points, or only use it for DBs in Simple recovery mode. Or setup similar to what I've done.

Now, before anyone jumps on me for not testing the backups, I did try spot restores, both from DPM and from the backup files, but I did not try doing point-in-time restores. Lesson learned, without too much damage (a manager who had to do some extra work, and a dent in my reputation for infallibility)

Post #1384776
Posted Wednesday, November 14, 2012 8:28 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Sunday, April 19, 2015 11:19 PM
Points: 316, Visits: 1,499
Yeah, dpm doesn't play nice with log backups. I ended up doing the same thing you did. Tsql backups to disk with dpm protecting the backups.
Post #1384958
Posted Friday, April 15, 2016 10:21 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 15, 2016 10:16 PM
Points: 1, Visits: 67
You are using both DPM and native SQL at the same time to do backups. If you want DPM to do the backups (as you should) stop running SQL backups. You cannot run backups (unless it is a copy-only backup which doesn't truncate the log) from multiple sources. They will both be broken (except the full backups) because each log backup will mark the log LSN and truncate the log - as it should). This is why you are getting broken log chains.
Post #1778424
Posted Tuesday, May 24, 2016 4:14 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, June 13, 2016 5:35 PM
Points: 303, Visits: 101
While I haven't had a chance to use it myself, there is a tool that comes with DPM for recovering SQL databases. According to TechNet it does allow leaving the database in recovery mode and copying additional transaction log files needed for the point in time recovery.

Have a look at this TechNet article for more information

Post #1789166
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse