SQL Server Mirroring Migration Quick Steps
8:38 PM
This is a quick listing of the steps necessary to perform a mirroring migration of databases in SQL Server.
Mirroring Migration Steps (high safety without a witness server)
- Create mirroring endpoints on current server (principal) and new server (mirror).
- For database to be migrated stop t-log backups.
- Take full backup.
- Move full backup to new server.
- Restore full backup on new server.
- Take t-log backup and move to new server.
- Restore t-log backup.
- Perform mirroring security steps setting partners using T-SQL scripts or SQL Management Studio GUI.
- Allow database to come into sync.
- Once the database is in sync go to the principle instance, right click the database and choose Tasks -> Mirror.
- When the properties window opens to the Mirroring tab click the failover button.
- This will change the database roles, flipping the principal and mirror instances.
- After the databases come back into sync mirroring can be broken by opening the properties window on the new principal server and choosing Remove Mirroring.
- When mirroring has been broken you will need to remove the mirror
copy. It will be in recovery mode so you will need to issue the
following T-SQL statement to recover the database so it can then be
deleted.
- RESTORE DATABASE <database name> WITH RECOVERY
- Delete the database you just recovered.
0 comments