Prerequisites for Migrating from Log Shipping to Always On Availability Groups (SQL Server)

Prerequisites for Migrating from Log Shipping to Always On Availability Groups (SQL Server)

 

Published: May 17, 2016

Updated: May 17, 2016

Applies To: SQL Server 2016

THIS TOPIC APPLIES TO: yesSQL Server (starting with 2016)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

This topic describes the prerequisites for converting a log shipping primary database along with one or more of its secondary databases to an Always On primary database and secondary database(s).

System_CAPS_ICON_note.jpg Note


You can configure any primary or secondary database (possibly readable) in an availability group as a log shipping primary database.

In This Topic:

To allow backup jobs to run on the primary replica of the availability group, use the following Always On Availability Groups backup settings:

PropertySetting
Automated backup preference of availability groupOnly on the primary replica
Backup priority of the primary replica.>0

For more information:

View Availability Group Properties (SQL Server)

Configure Backup on Availability Replicas (SQL Server)

  • The log shipping primary database must reside on the instance of SQL Server that hosts the initial/current primary replica of the availability group.

  • For a given log shipping secondary database to be converted to an Always On secondary database, it must:

    • Use the same name as the primary database.

    • Reside on a server instance that hosts a secondary replica for the availability group.

Once the backup job has run on the primary database, disable the backup job, and once the restore job has run on a given secondary database, disable the restore job.

After you have created all the secondary databases for the availability group, if you want to perform backups on secondary replicas, you need to re-configure the automated backup preference of the availability group.

For more information:

Converting a logshipping configuration to Availability Group (a SQL Server blog)

Log shipping

Always On Availability Groups

About Log Shipping (SQL Server)
Overview of Always On Availability Groups (SQL Server)
Monitoring of Availability Groups (SQL Server)

Community Additions

ADD
Show:
© 2016 Microsoft