We help IT Professionals succeed at work.

How to take a load balanced exchange server that resides in a DAG down gracefully

Barry Fields
Barry Fields asked
on
61 Views
Last Modified: 2019-02-06
Procedure for taking an Exchange server in a DAG thAt sit behind a load balancer outof service fgracefully
Comment
Watch Question

timgreen7077Exchange Engineer
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
is this to perform maintenance on the server or to remove completely from DAG?
timgreen7077Exchange Engineer
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
also what version of exchange is it?
Edward van BiljonMessaging and Collaboration Technical Lead (Office Apps & Services MVP | MCT | Author)
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Hi

If it is for maintenance, you would need to failover your stores and once the copies are healthy then put the node into maintenance mode so it doesnt accept new connections.

If it is to remove the server then you would need to first remove the copies on each store and then you can remove the server from the DAG and if you uninstalling then do it from programs and features.

Remember, if it was the first server then you need to move the arbitration mailboxes as well.

Cheers
Barry FieldsIT manager

Author

Commented:
This is for maintenance. I have put the node into maintenance mode but when I reboot the server some of my Outlook clients disconnect from Exchange
Barry FieldsIT manager

Author

Commented:
I have tried to take my Exchange 2016 node out of maintenance but no connections are being forwarded to it the following commands is what I used, did I miss something?

To remove from maintenance mode
===================================================
1.Set-ServerComponentState "mail2k16" -Component ServerWideOffline -State Active -Requester Maintenance

2.Resume-ClusterNode "mail2k16"

3.Set-MailboxServer "mail2k16" -DatabaseCopyAutoActivationPolicy Unrestricted

4.Set-ServerComponentState "mail2k16" -Component HubTransport -State Active -Requester Maintenance
David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
To do this, likely best to take down the load balancer first.

When you do maintenance, all clients will disconnect + stay disconnected till your bring your Exchange instance back online.

Hint: Maintenance usually means all Exchange services are completely down. If you mean something else, provide a definition of maintenance, in this case.
Barry FieldsIT manager

Author

Commented:
By maintenance I mean making the server unavailable in the DAG via the following procedure,


o place in maintenance mode

1.Set-ServerComponentState "ServerName" -Component HubTransport -State Draining -Requester Maintenance
2.Restart-Service MSExchangeTransport
3.Get-Queue -Server "ServerName"
5.Suspend-ClusterNode "ServerName"
6.Set-MailboxServer "ServerName" -DatabaseCopyAutoActivationPolicy Blocked
7.Set-ServerComponentState "ServerName" -Component ServerWideOffline -State Inactive -Requester Maintenance
IT manager
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Barry FieldsIT manager

Author

Commented:
never mind guys, my protocol analyzer was set wrong. Iam good to go.