Log Shipping: DR Drill

What is DR Drill?

DR Drill is an activity which involves actions which are taken to overcome  data loss after disaster for example if primary server down due to some reason so we can  make secondary instance to primary instance is known as disaster drill .

 Steps for DR DRILL:

Configuring DR DRILL:


1. Checking the status of logshipping
   




select secondary_database as DBNAME

last_restored_date as [LAST RESTORE DATE]

DATEDIFF(minute

case

when

DATEDIFF(minute

, last_restored_date

, last_restored_date

,

,

, primary_server as [PRIMARY SERVER]

GETDATE()) AS LATENCY

,

,

GETDATE()) < 60

,then 'SYNCHRONIZED'

else 'UNSYNCHRONIZED'

end

as [LOGSHIPPING STATUS]

from msdb

go

sp_help_log_shipping_monitor

select secondary_database as DBNAME

case

when

DATEDIFF(minute

then 'SYNCHRONIZED'

else 'UNSYNCHRONIZED'

end

as [LOGSHIPPING STATUS]

from msdb

go
                                                                 
2. On primary server run backup job and disable


3. On secondary server run copy job and disable 


4. On secondary server run restore job and disable


Verify that job is disabled:

5.  Run backup log command on primary server with norecovery option

6. Restore with recovery on secondary server.

7. Configure log shipping on secondary server

Specify copy path:

Close wizard after configuration:

Check that backup job is created on the primary server:

Check copy and restore job are created on secondary server:
Check the sync status:



Name

Azure Backup Database Clustering Crash Dumps DBCC Deadlock Link Server Log Shipping Maintenance Migration Mirroring Monitoring Performance Tuning Permissions Post Installations Prerequisites Replication Restore Database SQL Installations SQL on Linux SQL Uninstallations SSIS T-SQL Windows Server
false
ltr
item
hybriddba.blogspot.com: Log Shipping: DR Drill
Log Shipping: DR Drill
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFey2T1JKscKaPWJu1085ghz48Y8DKrVMwtErNVpj5L9vHzQKTKa6cNzRkv_1WLUGgfHux-vvQc_Gg4nmV-XbZhxYKEmX5LfCKHxz0wEkO3jayu2ermg3bx5wSfM6P4QWzaU9kc-j5nGcE/s1600/1580318741676471-0.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFey2T1JKscKaPWJu1085ghz48Y8DKrVMwtErNVpj5L9vHzQKTKa6cNzRkv_1WLUGgfHux-vvQc_Gg4nmV-XbZhxYKEmX5LfCKHxz0wEkO3jayu2ermg3bx5wSfM6P4QWzaU9kc-j5nGcE/s72-c/1580318741676471-0.png
hybriddba.blogspot.com
https://hybriddba.blogspot.com/2018/12/log-shipping-dr-drill.html
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/2018/12/log-shipping-dr-drill.html
true
7679493960263860249
UTF-8
Not found any posts Not found any related posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU Tag ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Contents See also related Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy