SQL restoring with transaction log
Hello,
I need some advise please.
We are running Symantec Netbackup 7.5.0.6 on windows server 2008 R2 SP1.
We got SQL server 2008 R2 that backup Full backup every two weeks and transaction log every hour.
Yesterday I received a request to restore the database to month ago, so I chose for the restore the last full backup and all the transaction log until the requested date. Unfortunately it failed due to this following error:
ERR - Error in GetCommand: 0x80770004.
CONTINUATION: - An abort request is preventing anything except termination actions.
DBMS MSG - ODBC return code <-1>, SQL State <37000>, SQL Message <4305><[Microsoft][ODBC SQL Server Driver][SQL Server]The log in this backup set begins at LSN 366151000000458700001, which is too recent to apply to the database. An earlier log backup that includes LSN 366151000000379700001 can be restored.>.
DBMS MSG - SQL Message <3013><[Microsoft][ODBC SQL Server Driver][SQL Server]RESTORE LOG is terminating abnormally.>
ERR - Error found executing <restore log "GVIYARST" from VIRTUAL_DEVICE='VNBU0-2828-356-1386781688' with stats = 10, blocksize = 65536, maxtransfersize = 4194304, buffercount = 2, replace , norecovery>.
ERR - Error in VDS->Close: 0x80770004.
It seems that is trying to restore a recent transaction log after the DB is already restored to a later time point.
Thanks in advance for your help.
Very difficult to assist with this withoyt seeing exactly what you have selected
Could you show us a screen shot of your selections in the SQL Agent GUI
I assume your retention periods are all OK for the periods you are using - have to say i havent heard of anyone doing their full backups so far apart!
One other thought - do your backups ever fail (status 1 even) - if your SQL Admins do any SQL maintenance (backups) thenselves during this period it will put things out of sync and the logs will be invalidated