How can we help you today? How can we help you today?
DonFerguson
There were no errors in the backup logs. I did examine RESTORE HEADERONLY and RESTORE SQBHEADERONLY options against more recent files where the sequence was out of order and I did find something interesting. It turns out that the file that was out of sequence had a matching First LSN: 48619000000934800001 and Last LSN: 48619000000934800001. :idea: I believe the problem is that the order is sorted by the Last LSN and not the first LSN. If that is indeed the case, I would consider this a bug. I did upgrade to version 5.4 this weekend. Is there any chance that was fixed in 5.4? Here is the header information from the backup files along with new restore logs showing the error: SQL Backup v5.4.0.55 Reading file header of "N:\Backups\Log\MyVHost\MyInstance\MyDB\LOG_MyDB_20081121040500.sqb" Backup name : Database (MyDB), 11/21/2008 4:05:00 AM Description : Backup on 11/21/2008 4:05:00 AM Server: MyPHost\MyInstance Database: MyDB Backup type : 2 (Transaction log) User name : MyDomain\MyAccount Backup start : 11/21/2008 4:10:28 AM Backup finish: 11/21/2008 4:10:28 AM Server name : MyVHost\MyInstance Database name : MyDB Database version : 611 Creation date : 10/24/2008 12:25:03 PM Size : 320.000 KB Sort order : 52 Code page : 0 Machine name : MyVHost Collation : SQL_Latin1_General_CP1_CI_AS First LSN : 48619000000930600001 Last LSN : 48619000000934800001 Checkpoint LSN : 48619000000904800219 Database backup LSN : 48619000000904800219 Differential base LSN : NULL SQL Backup process ended. SQL Backup v5.4.0.55 Reading file header of "N:\Backups\Log\MyVHost\MyInstance\MyDB\LOG_MyDB_20081121041500.sqb" Backup name : Database (MyDB), 11/21/2008 4:15:00 AM Description : Backup on 11/21/2008 4:15:00 AM Server: MyPHost\MyInstance Database: MyDB Backup type : 2 (Transaction log) User name : MyDomain\MyAccount Backup start : 11/21/2008 4:17:27 AM Backup finish: 11/21/2008 4:17:27 AM Server name : MyVHost\MyInstance Database name : MyDB Database version : 611 Creation date : 10/24/2008 12:25:03 PM Size : 192.000 KB Sort order : 52 Code page : 0 Machine name : MyVHost Collation : SQL_Latin1_General_CP1_CI_AS First LSN : 48619000000934800001 Last LSN : 48619000000934800001 Checkpoint LSN : 48619000000904800219 Database backup LSN : 48619000000904800219 Differential base LSN : NULL SQL Backup process ended. SQL Backup v5.4.0.55 Reading file header of "N:\Backups\Log\MyVHost\MyInstance\MyDB\LOG_MyDB_20081121042500.sqb" Backup name : Database (MyDB), 11/21/2008 4:25:00 AM Description : Backup on 11/21/2008 4:25:00 AM Server: MyPHost\MyInstance Database: MyDB Backup type : 2 (Transaction log) User name : MyDomain\MyAccount Backup start : 11/21/2008 4:25:44 AM Backup finish: 11/21/2008 4:25:44 AM Server name : MyVHost\MyInstance Database name : MyDB Database version : 611 Creation date : 10/24/2008 12:25:03 PM Size : 320.000 KB Sort order : 52 Code page : 0 Machine name : MyVHost Collation : SQL_Latin1_General_CP1_CI_AS First LSN : 48619000000934800001 Last LSN : 48619000000936600001 Checkpoint LSN : 48619000000904800219 Database backup LSN : 48619000000904800219 Differential base LSN : NULL SQL Backup process ended. SQL Backup log file 5.3.0.178 -SQL "RESTORE LOG [MyDB] FROM DISK = '\\MyRemoteHost\LogShare\MyVHost\MyInstance\MyDB\LOG_MyDB_*.sqb' WITH MAILTO_ONERROR = 'dba@MyDomain.com;backupadmins@MyDomain.com', ERASEFILES = 72h, FILEOPTIONS = 1, STANDBY = 'E:\LogShare\MyVHost\MyInstance\MyDB\UNDO_MyDB.dat', MOVETO = 'E:\LogShipping\MyVHost\MyInstance\MyDB' " ERRORS AND WARNINGS 11/21/2008 4:18:05 AM: Warning 170: Log files are not in sequence: 'LOG_MyDB_20081121041500.sqb' and 'LOG_MyDB_20081121040500.sqb' 11/21/2008 4:18:05 AM: Restoring MyDB (transaction logs) on MyInstance instance from: 11/21/2008 4:18:05 AM: \\MyRemoteHost\LogShare\MyVHost\MyInstance\MyDB\LOG_MyDB_20081121041500.sqb 11/21/2008 4:18:05 AM: RESTORE LOG [MyDB] FROM VIRTUAL_DEVICE = 'SQLBACKUP_D44E7CCF-B9DC-4E33-9B20-B310DF5C39B4' WITH BUFFERCOUNT = 6, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 1048576 , STANDBY = 'E:\LogShare\MyVHost\MyInstance\MyDB\UNDO_MyDB.dat' 11/21/2008 4:18:05 AM: SQL Server error 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 48619000000934800001, which is too recent to apply to the database. An earlier log backup that includes LSN 48619000000930600001 can be restored. 11/21/2008 4:18:06 AM: Mail sent successfully to: dba@MyDomain.com;backupadmins@MyDomain.com / comments
There were no errors in the backup logs. I did examine RESTORE HEADERONLY and RESTORE SQBHEADERONLY options against more recent files where the sequence was out of order and I did find something in...
0 votes
Here is one of many: SQL Backup log file 5.3.0.178 -SQL "RESTORE LOG [MyDB] FROM DISK = '\\MyHost\LogShare\MySrcHost\MyInstance\MyDB\LOG_MyDB_*.sqb' WITH MAILTO_ONERROR = 'i.s.dba@mydomain.com;i.s.backupadmins@mydomain.com', ERASEFILES = 72h, FILEOPTIONS = 1, STANDBY = 'E:\LogShare\MySrcHost\MyInstance\MyDB\UNDO_MyDB.dat', MOVETO = 'E:\LogShipping\MySrcHost\MyInstance\MyDB' " ERRORS AND WARNINGS 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: 'LOG_MyDB_20081111204500.sqb' and 'LOG_MyDB_20081111203500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: 'LOG_MyDB_20081111205500.sqb' and 'LOG_MyDB_20081111211500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: '' and 'LOG_MyDB_20081111210500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: 'LOG_MyDB_20081111212500.sqb' and 'LOG_MyDB_20081111220500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: 'LOG_MyDB_20081111222500.sqb' and 'LOG_MyDB_20081111213500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: 'LOG_MyDB_20081111234500.sqb' and 'LOG_MyDB_20081112005500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: '' and 'LOG_MyDB_20081112002500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: 'LOG_MyDB_20081112003500.sqb' and 'LOG_MyDB_20081112011500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: '' and 'LOG_MyDB_20081112010500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: 'LOG_MyDB_20081112012500.sqb' and 'LOG_MyDB_20081112032500.sqb' 11/12/2008 11:28:00 AM: Warning 170: Log files are not in sequence: 'LOG_MyDB_20081112022500.sqb' and 'LOG_MyDB_20081112013500.sqb' 11/12/2008 11:28:00 AM: Restoring MyDB (transaction logs) on MyInstance instance from: 11/12/2008 11:28:00 AM: \\MyHost\LogShare\MySrcHost\MyInstance\MyDB\LOG_MyDB_20081111204500.sqb 11/12/2008 11:28:00 AM: RESTORE LOG [MyDB] FROM VIRTUAL_DEVICE = 'SQLBACKUP_AFACABD5-CFE0-4FAC-AECD-9894AB1137B8' WITH BUFFERCOUNT = 6, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 1048576 , STANDBY = 'E:\LogShare\MySrcHost\MyInstance\MyDB\UNDO_MyDB.dat' 11/12/2008 11:28:00 AM: SQL Server error 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 48598000000181700001, which is too recent to apply to the database. An earlier log backup that includes LSN 48598000000178100001 can be restored. 11/12/2008 11:28:01 AM: Mail sent successfully to: dba@mydomain.com;backupadmins@mydomain.com Please note that all the files were there but since the restore order was incorrect, it threw an error. / comments
Here is one of many: SQL Backup log file 5.3.0.178 -SQL "RESTORE LOG [MyDB] FROM DISK = '\\MyHost\LogShare\MySrcHost\MyInstance\MyDB\LOG_MyDB_*.sqb' WITH MAILTO_ONERROR = 'i.s.dba@mydomain.com;i.s....
0 votes