|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 10:32 AM
Points: 5,204,
Visits: 11,159
|
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Today @ 5:48 AM
Points: 573,
Visits: 1,169
|
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 10:32 AM
Points: 5,204,
Visits: 11,159
|
|
joeroshan (9/27/2012) Great article. Very useful for DBA in production environment. Hi, thanks for the feedback, please don't forget to rate the article if you found it useful
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 12:24 PM
Points: 11,
Visits: 144
|
|
| Could this be used for a site to site DR test where the standby database is opened with recovery for the users to test and then log shipping is rebuilt from scratch by taking a backup of the primary and reinitializing the standby? Could we instead stop the log shipping jobs (bkp,copy,restore), open the standby for the users to test, take a differntial backup of the primary and use that to restore the standby, then restart the log shipping jobs.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 1:06 PM
Points: 3,
Visits: 85
|
|
| database has once a day full backup and hourly log backup. No diff. log shipping is for every one hour. Secondary fails at restore due to out of sync lsn.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 12:28 AM
Points: 2,170,
Visits: 3,583
|
|
Very good one Perry. Rated it 5 star :)
Mohammed Moinudheen
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 10:32 AM
Points: 5,204,
Visits: 11,159
|
|
mohammed moinudheen (9/27/2012) Very good one Perry. Rated it 5 star :) Hey thanks Mohammed, appreciate the feedback
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 10:32 AM
Points: 5,204,
Visits: 11,159
|
|
karen_jonesdba (9/27/2012) Could this be used for a site to site DR test Not really, no.
karen_jonesdba (9/27/2012) Could we instead stop the log shipping jobs (bkp,copy,restore), open the standby for the users to test, take a differntial backup of the primary and use that to restore the standby, then restart the log shipping jobs. No, the process above has the wrong ordering. You would need to follow along the lines of
- stop all Log shipping jobs (backup, copy, restore and alert)
- run the copy job and then the restore job to ensure that any remaining log backups are restored to the secondary.
- take a tail log backup on the primary, this will leave the primary database in the restoring state
- restore tail log backup to the secondary with recovery bringing the database online
Perform the same again on the new primary to switch back to the original primary and then re enable the Log Shipping jobs
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 12:24 PM
Points: 11,
Visits: 144
|
|
Ok.. unfortunately we do not failback to the primary with data. The primary is left usable and running during the DR test and the standby is opened just for the duration of test then resyncronized with a full backup and new log shipping jobs. that is the policy. Steps are we drop logshipping, open the standby, and at the end of the test resync the standby and resetup logshipping. I was hoping that if we stopped the jobs on the primary(instead of dropping) that after the test was done I could take a differential backup, resync the standby with this backup and let then let the log shipping jobs run. This is a big database and takes a long time recyncing from a full.. Thanks for getting back!
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 10:26 AM
Points: 3,051,
Visits: 1,358
|
|
Very nice article Perry! Thanks for sharing!
 My blog
|
|
|
|