0

Can anyone help me diagnose why this may have happened? We've got log shipping configured and so the database is in 'Full' recovery mode. This has been working fine for ages, and then randomly it seems to have been reset to 'Simple' recovery, which has broken our log shipping.

This happened about 5 months ago too, we couldn't find any obvious reason for the change so foolishly we chalked it up to a weird one-off and ignored it!

The log viewer shows the change being made, but not how/why it happened. I'm not much of a dba so I don't really know how to dig deeper into finding out what happened and how to prevent it reoccurring.

enter image description here

Jordan Wallwork
  • 3,116
  • 2
  • 24
  • 49
  • "This happened about 5 months ago" --......? Talk to your DBA....They won't bite.....much..... Please clarify: it took 5 months for the fact that log shipping was broken to be noticed? – Mitch Wheat Nov 16 '18 at 10:49
  • https://learn.microsoft.com/en-us/sql/database-engine/log-shipping/monitor-log-shipping-transact-sql?view=sql-server-2017 – Mitch Wheat Nov 16 '18 at 10:55
  • 1
    How are your backups performed? Is it a job or a maintenance plan or something? It seems as if there is some logic like if a backup log is failed then switch to the simple mode and perform the differential one. Check it. – Denis Rubashkin Nov 16 '18 at 10:56
  • @MitchWheat about 5 months ago the recovery mode switched and log shipping failed. I set it back to Full recovery and set log shipping back up from scratch. Unfortunately we're a small operation and aside from a couple of other devs that help me with building our product I'm the dogsbody jack-of-all-trades who has stumbled into the role architect/sysadmin/dba etc! – Jordan Wallwork Nov 16 '18 at 11:01
  • @DenisRubashkin we run a full daily backup, and differential backups every 20 mins. The previous days diffs are deleted after the full backup is taken, and we only spotted this issue this morning, so I don't know whether yesterdays differential backups were interrupted. I can see that the backups from today are running fine though. The backups are run as maintenance plans – Jordan Wallwork Nov 16 '18 at 11:05

1 Answers1

0

Discovered the reason that this is happening is because of a flag on our db migration script runner (RoundhousE) which resets the recovery mode to Simple. I hadn't been aware of any deployments that day featuring db migrations (these are fairly uncommon on our system), and I have no idea why the /simple flag was configured on the deployments as they were setup before my involvement. Removing the flag has sorted the problem, and seems to have had no negative repercussions!

Jordan Wallwork
  • 3,116
  • 2
  • 24
  • 49