Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 High Availability (2005)
 Log Shipping Disaster Recovery Test

Author  Topic 

jbarrier
Starting Member

4 Posts

Posted - 2009-02-09 : 11:52:26
I have setup log shipping and now need to test our failover process. To conduct this test we will basically disconnect the primary from the network and step through our failover process. After completion of the failover test I plan to backup the databases from the secondary server, restore these databases on the primary and re-point applications to the original primary. My question is: does log shipping have to be setup from scratch again or can the jobs simply be disabled prior to the failover test and re-enabled after restoration of the original primary?
Thanks!!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-09 : 13:02:08
Log shipping has to be setup from scratch again unless you get both databases to the exact LSN before you started the other work. This would mean restoring the full backup and all transaction logs up to that LSN. The secondary server could be on a different LSN, so you could ensure they were the same by making sure that log shipping was caught up.


Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-02-09 : 15:02:20
What happened when you tried? Did you disable backup,copy,restore jobs in Primary and secondary server after role change? Did you point new primary in Database Settings while reconfiguring?
Go to Top of Page

jbarrier
Starting Member

4 Posts

Posted - 2009-02-09 : 15:27:48
quote:
Originally posted by sodeep

What happened when you tried? Did you disable backup,copy,restore jobs in Primary and secondary server after role change? Did you point new primary in Database Settings while reconfiguring?


sodeep, I haven't tried at all yet, just trying to determine what my failback downtime will be.

Tara, just to be clear. After failover testing if I do a full backup/restore and a transaction log backup/restore between the secondary and primary before bringing the original primary back on line both databases will be at the same LSN and the pre-testing SQL Server log shipping jobs will work?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-09 : 15:30:38
No, it needs to be at the LSN before you started your work as that's what is stored in the log shipping tables. Before you start the work and after you've disabled the log shipping jobs on both the primary and secondary servers, use the log shipping monitor to determine what files you need to apply at both servers.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

jbarrier
Starting Member

4 Posts

Posted - 2009-02-09 : 16:05:32
Thanks so much!
Jeff
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-09 : 16:20:08
You're welcome. Good luck!

I hate log shipping; database mirroring is so much easier.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -