Migrating Database Mirroring to an Availability Group – No 2
Posted by Rob Risetto on August 09, 2015
Flowing on from my previous article Migrating Database Mirroring to an Availability Group I thought it might be worth posting the high level steps that worked for me in converting a SQL Server 2008 R2/Windows 2008 R2 Enterprise Database Mirroring implementation into a two node Availability Group environment with the second
node in a remote data centre.
The high level steps are :-
- Disable application access to the Primary SQL Server.
- Backup all databases on the Primary SQL Server.
- Upgrade the Disaster Recovery SQL Server to SQL Server 2012 inline. Apply SQL 2012 SP1 and latest Cumulative Patch.
- Add the Windows Clustering feature on the Primary SQL Server and Disaster Recovery SQL Server.
- Apply the Windows Hotfix KB 2494036, KB 2654347, KB 2687741 on Primary and Disaster Recovery SQL Servers.
- Configure a Windows Cluster for the Primary and Disaster Recovery SQL Servers
- Perform set the database mirroring to Safety mode (synchronous) and perform a manual failover of all mirrored databases to the Disaster Recovery SQL Server.
- Upgrade the Primary SQL Server to SQL Server 2012 inline. Apply SQL 2012 SP1 and latest cumulative patch.
- Perform a manual failover of all mirrored databases back to the Primary SQL Server.
- Remove database mirroring from each database.
- Configure the Availability Group.
- Configure the Availability Group listener.
- Apply the Windows Hotfixes KB 2531907, KB 2616514 on Primary and Disaster Recovery SQL Servers.
- Test the failover of Availability Group to the Disaster Recovery SQL Server and then back to the Primary SQL Server.
- Set the AG mirroring to asynchronous commit.
- Configure applications to use the Availability Group Listener virtual network name.
- Test application connectivity to the Availability Group Listener virtual network name.
- Perform the shakedown tests of critical application functionality.
- Go or No Go decision.
Spread the love
Leave a Reply