-
Overview
- Mirroring feature is in maintenance mode and may be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use Always On availability groups instead.
- Database mirroring is a solution for increasing the availability of a SQL Server database. Mirroring is implemented on a per-database basis and works only with databases that use the full recovery model.
- Committed transactions Mirroring is one of the HA option.
- Automatic Fail over saves data and downtime (in logshipping
manual failover required) . Data sync are
bidirectional. Witness server is required for Automatic
Downtime.
- Ports are: – Principal Mirroring - 5022, Mirror Mirroring port - 5023, Witness Mirroring Port - 5024 -- EndPoints (in source, in destination and in Witness)
- Partner Role – Principal and Mirror servers
-
Prerequisits
- -For a mirroring session to be established, the partners and the witness, if any, must be running on the same version of SQL Server.
- The database must use the full recovery model. The simple
and bulk-logged recovery models do not support database
mirroring. Therefore, bulk operations are always fully logged
for a mirrored database.
- Verify that the mirror server has sufficient disk space for the mirror database.
- When you are creating the mirror database on the mirror
server, make sure that you restore the backup of the principal
database specifying the same database name WITH NORECOVERY.
Also, all log backups that were created after that backup was
taken must also be applied, again WITH NORECOVERY.
-
Terminology
- automatic failover, failover partners, forced service,
High-performance mode, manual failover, mirror database,
mirror server, principal database, principal server, redo
queue, role, role switching, send queue, session, Transaction
safety, Witness
-
Reference
Wednesday, March 20, 2019
HADR - Mirroring
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment