Sql-server – What precautions to take when moving a mirrored server

mirroringsql-server-2008-r2

I have a SQL Server 2008 R2 mirror setup running in high safety with automatic failover (synchronous, witness). Over two different nights, the mirror and the primary will be shut down and re-racked. (Mirror on the first night, Primary on the second night)

My original thought is that maybe I should remove the witness prior to shut down so failover would be avoided during/after this process unless I initiated it. But, I’m wondering whether there are any other precautions I should take. The server move should take ~1 hour which is the frequency of log backups as well, so I’m not worried about the transaction log filling on the primary during this time.

Is there any reason to switch from high safety to high performance mode during them move? I’m a little bit unsure of how these modes might behave differently when the mirroring state is DISCONNECTED.

Best Answer

I would remove the witness from the session. The reason being that if the 1 online partner (principal) loses communication with the witness, the principal will take itself offline because it has no way to know for sure that the mirror isn't online.

There is no need to change the operating mode. When the principal becomes disconnected, it operates asynchronously. When the mirror reconnects, it will continue to operate asynchronously until they are synchronized, and then it will return automatically to operating synchronously.