• Jai-SQL DBA (9/26/2012)


    Hi,

    I want to understand the Logshipping reestablishment Scenerio After a Failover.Below Mentioned are the details of the Environment for the Better Understanding.

    Server A: Primary Server

    Server B: Secondary Server

    Logshipping established between A and B .

    Server A Crashed.I have restored all the Pending Logs to Secondary Server and got it into a Consistent State and Its in Use from last few days .

    Now My Server A is UP again and I want to make it as an Primary Server again and Server B as Secondary Again .

    Now the main Questions are :

    1.Can i just restore the Full Backup of Server B on Server A and change the Mode of B to no recovery(Standby/Readonly) and Reconfigure the LOGSHIPPING from A to B.

    Will that Work ??

    2.Do I need to restore the Full Backup on Server A and then take a backup from A to B restoring a no recovery(Standby/Readonly) and Reconfigure the LOGSHIPPING from A to B.

    What is your Opinion on the above two Doubts .Please Advise

    Not sure if you were saying this already but to be clear, when you take the FULL backup from Server B you'll provide either the NORECOVERY or the STANDBY option as part of the BACKUP command. This will take the backup and make the DB inaccessible for writes all in one step ensuring you have all transactions from Server B to restore on Server A and that no new transactions will enter Server B while you're in the process of failing back.

    Before you begin anything disable any Log Shipping or backup jobs still in place.

    Here is a guide to help you with the rest of the details:

    Changing Roles Between Primary and Secondary Servers

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato