Hi All,
I am set up log shipping as backup and copy every one hour and restore every ( disconnect users and stand by) one hour on servers in same domain. Set-up completes successfully.
Copy job works as expected. but the restore job fails intermittently to restore the .trn file saying ' could not apply log, data invalid' .
when i delete and copy the files for which restore failed manually using CTRL+C and CTRL+V across network and re run the restore job it does restore successfully . Through out the day i get about 5-6 problematic .trn files on secondary server which are copied from primary server and when restore fails i have to manually delete the log file which had problem restoring and then copy that file again using CTRL+C and CTRL+V then run the restore and it gets restored successfully.
This is a work around but i want to fix the issue.
when running restore filelistonly on the logfile in issue on secondary server it gives below error
Cmd:
RESTORE verifyonly
FROM disk='G:\xxxx_Copy\xxx_20150604010501.trn'
Error:
Msg 3203, Level 16, State 1, Line 2
Read on "G:\xxxx\xxx_20150604010501.trn" failed: 13(The data is invalid.)
Msg 3013, Level 16, State 1, Line 2
VERIFY DATABASE is terminating abnormally.
and when i run restore filelistonly using netwok path then is seem s good and i can restore the logs as well
CMD:
RESTORE verifyonly
from disk='\\1.2.3.4\xxx_Backups\xxx_20150604010501.trn'
Output: The backup set on file 1 is valid.
I can assure there is no corruption on the log back up, no lsn mismatch, no log files missing.
Same version and edition on both servers. Both servers are SQL server 2012 Enterprise edition on window server 2012
Please suggest or comment
MSM