How can we help you today? How can we help you today?
mgjernes
The Lucky 13 syndrome - alas, not the cause. When I first hit this problem I was using a different test database and there were just 4 skipped log backups out of 5 or 6 total. :? Not so easy after all! [image] / comments
The Lucky 13 syndrome - alas, not the cause. When I first hit this problem I was using a different test database and there were just 4 skipped log backups out of 5 or 6 total. :? Not so easy afte...
0 votes
Good morning from Pacific Daylight Time (GMT -7) [image] I am just using LATEST_ALL as I am restoring to a different server from the backup source (i.e. moving production data to a test system etc). Here are the headers for the full and differential backup files, the first two and last skipped log backup files, plus the log file the process tried to restore out of sequence. There were 13 log backup files skipped in total. FULL header: Server name : AMRSQL1 Database name : AMRAudit Machine name : AMRSQL1 Backup start : 27/07/2010 02:09:55 Backup finish: 27/07/2010 02:10:50 First LSN : 3251000000365000072 Last LSN : 3251000000368000001 Checkpoint LSN : 3251000000365000072 Database backup LSN : 3230000000416500072 Differential base LSN : NULL DIFFERENTIAL header: Server name : AMRSQL1 Database name : AMRAudit Machine name : AMRSQL1 Backup start : 29/07/2010 02:07:16 Backup finish: 29/07/2010 02:07:17 First LSN : 3251000000427900035 Last LSN : 3251000000429400001 Checkpoint LSN : 3251000000427900035 Database backup LSN : 3251000000365000072 Differential base LSN : 3251000000365000072 First skipped LOG header: Server name : AMRSQL1 Database name : AMRAudit Machine name : AMRSQL1 Backup start : 29/07/2010 05:05:03 Backup finish: 29/07/2010 05:05:03 First LSN : 3251000000427900001 Last LSN : 3251000000429400001 Checkpoint LSN : 3251000000427900035 Database backup LSN : 3251000000365000072 Differential base LSN : NULL Second skipped LOG header: Server name : AMRSQL1 Database name : AMRAudit Machine name : AMRSQL1 Backup start : 29/07/2010 05:25:03 Backup finish: 29/07/2010 05:25:03 First LSN : 3251000000429400001 Last LSN : 3251000000429400001 Checkpoint LSN : 3251000000427900035 Database backup LSN : 3251000000365000072 Differential base LSN : NULL Last skipped LOG header: Server name : AMRSQL1 Database name : AMRAudit Machine name : AMRSQL1 Backup start : 29/07/2010 09:05:05 Backup finish: 29/07/2010 09:05:05 First LSN : 3251000000433300001 Last LSN : 3251000000433900001 Checkpoint LSN : 3251000000427900035 Database backup LSN : 3251000000365000072 Differential base LSN : NULL First LOG Restore attempt - header: Server name : AMRSQL1 Database name : AMRAudit Machine name : AMRSQL1 Backup start : 29/07/2010 09:25:04 Backup finish: 29/07/2010 09:25:04 First LSN : 3251000000433900001 Last LSN : 3251000000434500001 Checkpoint LSN : 3251000000427900035 Database backup LSN : 3251000000365000072 Differential base LSN : NULL Error message from Log Restore Attempt: SQL error 3013: SQL error 3013: RESTORE LOG is terminating abnormally. SQL error 4305: SQL error 4305: The log in this backup set begins at LSN 3251000000433900001, which is too recent to apply to the database. An earlier log backup that includes LSN 3251000000429400001 can be restored. / comments
Good morning from Pacific Daylight Time (GMT -7) I am just using LATEST_ALL as I am restoring to a different server from the backup source (i.e. moving production data to a test system etc). Here...
0 votes
How many log backup files are in your test set? I did not see any log restore attempts when I only had 3 log backups after the differential, but I did see the wrong-log-backup restore attempt when I had quite a few more. / comments
How many log backup files are in your test set? I did not see any log restore attempts when I only had 3 log backups after the differential, but I did see the wrong-log-backup restore attempt when...
0 votes
I have been having a similar issue with the Latest_All switch on SQLBackup 6.4.0.56. In my case, the latest full backup would restore correctly but then the process would hang indefinitely, never starting the subsequent differential and/or log restores. I downloaded the patch listed in this thread and now I get a different issue. The full restore succeeds, but then any subsequent differential restores fail with the following errors: SQL error 5069: ALTER DATABASE statement failed. SQL error 5052: ALTER DATABASE is not permitted while a database is in the Restoring state. I get this even if I use a full and differential backup generated from the same DB on the same server immediately prior to the restore attempt, as per the script below: EXEC master..sqlbackup '-SQL "BACKUP DATABASE [FMP] To DISK = [E:\Temp\AMRSQLRepl_FMP_20100707_1536_Full.sqb] WITH CHECKSUM, COMPRESSION=4, KEYSIZE=128, PASSWORD=[pwd], VERIFY"' GO EXEC master..sqlbackup '-SQL "BACKUP DATABASE [FMP] To DISK = [E:\Temp\AMRSQLRepl_FMP_20100707_1536_Diff.sqb] WITH DIFFERENTIAL, CHECKSUM, COMPRESSION=4, KEYSIZE=128, PASSWORD=[pwd], VERIFY"' GO EXEC master..sqlbackup '-SQL "BACKUP LOG [FMP] To DISK = [E:\Temp\AMRSQLRepl_FMP_20100707_1537_Log.sqb] WITH CHECKSUM, COMPRESSION=4, KEYSIZE=128, PASSWORD=[pwd], VERIFY"' GO EXEC master..sqlbackup '-SQL "RESTORE DATABASE [FMP] FROM DISK = [E:\Temp\AMRSQLRepl_FMP*.sqb] LATEST_ALL WITH DISCONNECT_EXISTING, PASSWORD=[pwd], REPLACE"' GO All three backup stages completed normally, as did the full restore stage. SQL server version is 9.0.4053. Script run under the "sa" account. Suggestions?? / comments
I have been having a similar issue with the Latest_All switch on SQLBackup 6.4.0.56. In my case, the latest full backup would restore correctly but then the process would hang indefinitely, never ...
0 votes
Well, by the time I finished my other tasks and got back to this, I could not reproduce this error either. I suspect another, stuck backup/restore may have been interfering. However, now the LATEST_ALL (6.4.0.1001) only restores the latest FULL and DIFFERENTIAL backups but not the LOG backups. Here is the revised script and the output from same. I get the same restore results using the command line (which puts version 6.4.0.1001 in the output, not .56). I have to run a separate log restore to get the test DB back on line (it stays in the restoring state after the differential). If I omit the test, differential backup and only use a full plus log backups in the test script then only the full backup is restored. ---- Test SQL Script ---- USE MASTER GO SET NOCOUNT ON GO EXEC master..sqlbackup '-SQL "BACKUP DATABASE [FMP] To DISK = [<auto>] WITH CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' GO select * INTO FMP.dbo.PFMATemp from FMP.dbo.PFMAArea GO EXEC master..sqlbackup '-SQL "BACKUP LOG [FMP] To DISK = [<Auto>] WITH CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' --- This LOG backup should be ignored by Latest_All due to the following DIFF. GO SELECT * INTO FMP.dbo.PFMATemp10 FROM FMP.dbo.PFMAArea WHERE [PFMAArea]='10' GO EXEC master..sqlbackup '-SQL "BACKUP DATABASE [FMP] To DISK = [<auto>] WITH DIFFERENTIAL, CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' GO SELECT * INTO FMP.dbo.PFMATemp20 FROM FMP.dbo.PFMAArea WHERE [PFMAArea]='20' GO EXEC master..sqlbackup '-SQL "BACKUP LOG [FMP] To DISK = [<Auto>] WITH CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' GO DROP TABLE FMP.dbo.PFMATemp10 DROP TABLE FMP.dbo.PFMATemp20 DROP TABLE FMP.dbo.PFMATemp GO EXEC master..sqlbackup '-SQL "BACKUP LOG [FMP] To DISK = [<Auto>] WITH CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' GO EXEC master..sqlbackup '-SQL "RESTORE DATABASE [FMP] FROM DISK = [C:\temp\SQLLocalBackup\*FMP*.sqb] LATEST_ALL WITH DISCONNECT_EXISTING, PASSWORD=[TestPwd?!?!], REPLACE"' GO USE FMP GO ---- results of test script ---- SQL Backup v6.4.0.56 Backing up FMP (full database) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111055_FULL.sqb Database size : 145.000 MB Compressed data size: 466.500 KB Compression rate : 99.69% Processed 392 pages for database 'FMP', file 'FMP_Data' on file 1. Processed 2 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP DATABASE successfully processed 394 pages in 0.255 seconds (12.629 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111055_FULL.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111055_FULL.sqb SQL Backup v6.4.0.56 Backing up FMP (transaction log) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111058_LOG.sqb Backup data size : 640.000 KB Compressed data size: 21.000 KB Compression rate : 96.72% Processed 8 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP LOG successfully processed 8 pages in 0.025 seconds (2.314 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111058_LOG.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111058_LOG.sqb SQL Backup v6.4.0.56 Backing up FMP (differential database) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111103_DIFF.sqb Backup data size : 2.688 MB Compressed data size: 186.000 KB Compression rate : 93.24% Processed 144 pages for database 'FMP', file 'FMP_Data' on file 1. Processed 5 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP DATABASE WITH DIFFERENTIAL successfully processed 149 pages in 0.134 seconds (9.066 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111103_DIFF.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111103_DIFF.sqb SQL Backup v6.4.0.56 Backing up FMP (transaction log) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111105_LOG.sqb Backup data size : 640.000 KB Compressed data size: 17.500 KB Compression rate : 97.27% Processed 7 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP LOG successfully processed 7 pages in 0.020 seconds (2.560 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111105_LOG.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111105_LOG.sqb SQL Backup v6.4.0.56 Backing up FMP (transaction log) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111108_LOG.sqb Backup data size : 640.000 KB Compressed data size: 14.000 KB Compression rate : 97.81% Processed 3 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP LOG successfully processed 3 pages in 0.026 seconds (0.689 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111108_LOG.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111108_LOG.sqb SQL Backup v6.4.0.56 Restoring FMP (database) from: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111055_FULL.sqb Processed 392 pages for database 'FMP', file 'FMP_Data' on file 1. Processed 2 pages for database 'FMP', file 'FMP_log' on file 1. RESTORE DATABASE successfully processed 394 pages in 1.445 seconds (2.228 MB/sec). Restoring FMP (database) from: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111103_DIFF.sqb Processed 144 pages for database 'FMP', file 'FMP_Data' on file 1. Processed 5 pages for database 'FMP', file 'FMP_log' on file 1. RESTORE DATABASE successfully processed 149 pages in 1.528 seconds (0.795 MB/sec). SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 Msg 927, Level 14, State 2, Line 2 Database 'FMP' cannot be opened. It is in the middle of a restore. / comments
Well, by the time I finished my other tasks and got back to this, I could not reproduce this error either. I suspect another, stuck backup/restore may have been interfering. However, now the LATE...
0 votes