Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Disaster recovery plan Expand / Collapse
Author
Message
Posted Wednesday, July 28, 2010 7:30 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, June 10, 2014 6:14 AM
Points: 1,200, Visits: 3,237
I have a production server and a log shipping server which are acting as a primary and secondary server respectively in the log shipping setting.
If I create a disaster recovery plan for my production server, what all steps should I include
wrt to log shipping?
Post #960026
Posted Monday, September 13, 2010 1:49 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Tuesday, March 11, 2014 3:34 AM
Points: 549, Visits: 1,554

We have setup weekly full backup with daily diff. backup on the primary server. You can try the same.


"More Green More Oxygen !! Plant a tree today"
Post #984564
Posted Monday, September 13, 2010 1:58 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 3:10 AM
Points: 880, Visits: 4,092
Also you can schedule the job which will copy your backups regulary to some safe place and can be used in time of recovery.

----------
Ashish
Post #984569
Posted Thursday, September 16, 2010 7:52 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Tuesday, January 28, 2014 8:15 AM
Points: 3,068, Visits: 4,639
SKYBVI (7/28/2010)
I have a production server and a log shipping server which are acting as a primary and secondary server respectively in the log shipping setting.
If I create a disaster recovery plan for my production server, what all steps should I include wrt to log shipping?


If secondary-server is off site then that's your DR platform - provided you have in place the network and security setup needed to switch your apps from Primary to Secondary site in case of a Disaster.

T-Log backup as well as log shipping have to be in line with what the company is willing to loose in case of a disaster meaning, if the company is willing to loose the last 15 minutes of activity then T-Log backups have to occur every 15 minutes and logs have to be shipped immediately to secondary site.

Last but not least, please do not forget to plan how are you going to move back from DR site to Primary site once the Disaster situation is remediated.


_____________________________________
Pablo (Paul) Berzukov

Author of Understanding Database Administration available at Amazon and other bookstores.

Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Post #987261
Posted Friday, September 17, 2010 9:00 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, June 10, 2014 6:14 AM
Points: 1,200, Visits: 3,237
@ ashish

What is the use of copying backups to a safe place when already my log shipping is in place.


If some disaster happens to my production server, then can't I restore the databases on the secondary server where logs are being shipped.?
What can be the procedure to move the production server to the log shipped server.
The databases on the log shipped server are in stand by/read only mode so i should restore the transaction logs there so that the databases become usable?

Regards,
Sushant
Post #988285
Posted Friday, September 17, 2010 9:20 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 3:10 AM
Points: 880, Visits: 4,092
hi Sushant,
copying backup file to safe location I suggested for , incase something happen your secondary and get corrupted.
Anyway, yes so to bring your seconday as primary, you need to restore the last log with recovery which will make your database as opertation on secondary.
But before last log restoration, just make sure that the one you restoring is definately the last and final log from primary.


----------
Ashish
Post #988306
Posted Friday, September 17, 2010 9:36 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, June 10, 2014 6:14 AM
Points: 1,200, Visits: 3,237

Okk..
Why just the last log has to be restored? Not the logs before that??
Assume, i have a full backup nightly and have transaction logs every 15 during day time.
Then, if i want to restore the database at any time during day, then i should restore the last .bak file
and then all the transaction logs since the backup time to the last transaction log sequentially...
Is it fine?

Regards,
Sushant
Post #988324
Posted Friday, September 17, 2010 9:38 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 3:10 AM
Points: 880, Visits: 4,092
then what is the meaning of your secondary if you have to restore this much?

----------
Ashish
Post #988326
Posted Friday, September 17, 2010 10:14 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 6:37 PM
Points: 33,189, Visits: 15,329
I think you're confused a little on log shipping.

The way log shipping works on the primary
- Make a full backup
- Make log backups
- Make periodic full backups

It just runs.

On the secondary:
- Restore full backup with NORECOVERY
- copy logs from the primary every xx time (hours, minutes, days)
- restore logs with NORECOVERY after yyy delay.

At any point in time, the secondary ought to be fairly close to the primary in terms of data updates. Some people restore logs right away, maybe copying them every 5 minutes. In this case, the secondary typically has one log to restore in the event the primary fails.

Some people delay the log restores by an hour, to catch any issues on the primary (like a delete without a WHERE). In this case, you'd need to restore all the log backups you make in that hour to catch up.

There is not automatic switchover for clients, unlike for mirroring. So you need to "redirect" all clients to the secondary server. If you use the IP or Windows host name, then each client has to change that. If you use DNS, you can change the host entry, but you might need to flush the entries on clients. You could rename the secondary to the primary as well.

No matter what, you might have network ARP issues as well, or other items that you have to flush from the caches.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #988367
Posted Monday, March 7, 2011 4:16 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, June 2, 2014 7:14 PM
Points: 56, Visits: 200
Is your log shipping server in the same office as your primary server?

If so you may need an offsite backup in case of flood, fire, terrorist attack.
Post #1074533
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse