Log Shipping 1st Run:
- Transfer SQL Server logins from the old SQL Server 2012&2016 to the new SQL Server 2022 primary and secondary servers.
- Migrate SQL Server Agent jobs from the old SQL Server 2012&2016 to the new SQL Server 2022 primary and secondary servers.
- Transfer Linked Servers (if any) from the old SQL Server 2012$&2016 to the new SQL Server 2022 primary and secondary servers.
- Disable existing Transaction-Log Backup jobs on the old SQL Server 2012&2016 to prevent interference with Log Shipping.
- Establish a shared folder as the log shipping backup file destination path, ensuring it has read-write permissions for the SQL service account and is accessible by the new SQL Server 2022 servers.
- Configure Log Shipping from the primary AG replica of the old SQL Server 2012&2016 to both the primary and secondary AG replicas of the new SQL Server 2022:
- Perform a compressed full database backup on the primary AG replica of the old SQL Server 2012&2016.
- Copy the backup file to both the primary and secondary AG replicas of the new SQL Server 2022.
- Restore the backups on the new SQL Server 2022 servers using the WITH NORECOVERY option.
- Enable Log Shipping on the databases in the primary AG replica of the old SQL Server 2012/&2016.
- Configure the log shipping jobs, selecting the created shared folder as the backup path.
- Add both the primary and secondary AG replicas of the new SQL Server 2022 as the Log Shipping destination servers.
- Verify the Log Shipping status using SQL Server 2022 standard reports --> Transactional Log Shipping Status.
- Repeat the above steps for each application database.
Bring SQL Server 2022 Database Online for Application Testing:
- Disable Log Shipping on the old SQL Server 2012&2016.
- Re-enable existing log backup jobs on the old SQL Server 2012&2016 that were disabled during the first run of Log Shipping.
- Bring databases online in the primary replica of the new SQL Server 2022 (RESTORE LOG <db> WITH RECOVERY).
- Configure Always-On Availability Group between the primary and secondary replicas of the new SQL Server 2022.
Log Shipping 2nd Run:
- Disable existing Transaction-Log Backup jobs on the old SQL Server 2012&2016 to prevent interference with Log Shipping.
- Remove the Always-On Availability Group in the new SQL 2022 servers.
- Configure Log Shipping from the primary AG replica of the old SQL Server 2012&2016 to both the primary and secondary AG replicas of the new SQL Server 2022:
- Perform a compressed full database backup on the primary AG replica of the old SQL Server 2012&2016.
- Copy the backup file to both the primary and secondary AG replicas of the new SQL Server 2022.
- Restore the backups on the new SQL Server 2022 servers using the WITH NORECOVERY option.
- Enable Log Shipping on the databases in the primary AG replica of the old SQL Server 2012&2016.
- Configure the log shipping jobs, selecting the created shared folder as the backup path.
- Add both the primary and secondary AG replicas of the new SQL Server 2022 as the Log Shipping destination servers.
- Verify the Log Shipping status using SQL Server 2022 standard reports --> Transactional Log Shipping Status.
- Repeat the above steps for each application database.
Switch-over:
- Terminate all client connections to the old SQL Server 2012&2016 by disabling SQL logins.
- Execute LS-Backup jobs on the old SQL Server 2012&2016.
- Execute LS-Copy and LS-Restore jobs on the new SQL Server 2022 servers.
- Disable Log Shipping on the old SQL Server 2012&2016.
- Bring databases online in the primary replica of the new SQL Server 2022 (RESTORE LOG <db> WITH RECOVERY).
- Configure Always-On Availability Group between the primary and secondary replicas of the new SQL Server 2022.
- Estimated switch-over time: 15 minutes.