When you follow the steps to put EXCH01 into maintenance mode as outlined, you should not lose any emails. The commands you listed are designed to ensure that email flow is managed properly during the maintenance process. Here’s a brief overview of what each step does:
- Set-ServerComponentState: This command puts the Hub Transport component into a draining state, which allows existing messages to be processed while preventing new messages from being routed to EXCH01.
- Restart-Service: Restarting the transport services helps to ensure that any pending messages are processed correctly.
- Redirect-Message: This command redirects messages pending delivery to EXCH02, ensuring that emails continue to flow even while EXCH01 is in maintenance mode.
- Suspend-ClusterNode: This prevents EXCH01 from becoming the Primary Active Manager (PAM) during maintenance.
- Set-MailboxServer: These commands disable database activation and block auto-activation, ensuring no databases are active on EXCH01.
- Set-ServerComponentState: Finally, this command puts the server into maintenance mode.
By following these steps, you effectively manage the email flow and minimize the risk of losing emails during the maintenance of EXCH01. However, it is always a good practice to monitor the email flow and ensure that all processes are functioning as expected before and after the maintenance.
References: