Avatar of Zolf
Zolf
Flag for United Arab Emirates asked on

Log Shipping - Working or not working

Hello there,

I set up Log Shipping and all was working fine till this morning when I queried the secondary db to see if the DB is is sync with the primary Db and it turned out that since 21th Sept, the secondary DB is not getting updated.Under LSAlert job report in primary & secondary server the status shows 'Alert' in red whereas the copy & restore jobs are running properly.Also the share folders, I see all the files with the correct dates. but the secondary db is not in sync. One thing to mention is that the 2 servers time has gone 1 hour back since 22 Sept due to Daylight saving. Could that have messed the log shipping. Now what is the way out to this. Do i need to del the log shipping which I created and again create a new one again.Please help!!!!

cheers
Zolf
DatabasesMicrosoft SQL ServerMicrosoft SQL Server 2008SQL

Avatar of undefined
Last Comment
Zolf

8/22/2022 - Mon
EugeneZ

try to find the exact error of this Alert. Is it native logship\ 3rd party backup sw logship?
it can be due to size of your prim DB trans log size\network  slowness..delay)

and if your Secondary DB is out of sync for long time due to corrupted trans log file
you may need to reinit log ship ...

before you start reinit:

please check for the issues that sounds like corrupted trans log backup file that you may got by rebooting server during trans log backup ( as an example)
check:
Different ways to monitor Log Shipping for SQL Server databases
https://www.mssqltips.com/sqlservertip/2553/different-ways-to-monitor-log-shipping-for-sql-server-databases/
Zolf

ASKER
Thanks for your feedbacks.

I am using the native MSSQL 2008R2 Log Shipping.

I have attached the screenshot also. Weird this mornign I again created a new logshipping and as you can see it worked good for some time and then again I statred gettign this error.see screeshot. Why is this happening.Please help!!!

cheers
Zolf

 1
EugeneZ

if you'll see 1 line down from your highlighted (details)
you'll this alert is actually "warning"
delayed restore

it looks like your default (or what it is 15 mins (as an example) restore is running to often and you'd need to adjust it (e.g every 30 mins) unless
check details to see when last restore ran successfully

a
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Zolf

ASKER
if you'll see 1 line down from your highlighted (details)
Can you please tell me the time...I could not see that warning you mentioned.

it looks like your default (or what it is 15 mins (as an example) restore is running to often and you'd need to adjust it (e.g every 30 mins)
Why do you say Restore?? and where do I need to change this.
EugeneZ

please click on this line and see the full error ..

warning
Zolf

ASKER
Ok, the full error says. what do you recon

Date            9/28/2015 8:46:00 AM
Log            Job History (LSAlert_PPG-REPORT)

Step ID            1
Server            PPG-REPORT
Job Name            LSAlert_PPG-REPORT
Step Name            Log shipping alert job step.
Duration            00:00:00
Sql Severity            16
Sql Message ID            14421
Operator Emailed            
Operator Net sent            
Operator Paged            
Retries Attempted            0

Message
Executed as user: PPG-REPORT\ZSQLService. The log shipping secondary database PPG-REPORT.kaizenpo has restore threshold of 45 minutes and is out of sync. No restore was performed for 968 minutes. Restored latency is 8 minutes. Check agent log and logshipping monitor information. [SQLSTATE 42000] (Error 14421).  The step failed
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
EugeneZ

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Zolf

ASKER
thanks!!