Maintenance mode ON , Maintenance mode OFF
Maintenance mode ON
Set-ServerComponentState SRV-EXCH-2 -Component HubTransport -State Draining -Requester Maintenance
Restart-Service MSExchangeTransport
Restart-Service MSExchangeFrontEndTransport
Redirect-Message -Server SRV-EXCH-2 -Target srv-vm-ex.msk.fbk.ru
Suspend-ClusterNode SRV-EXCH-2
Set-MailboxServer SRV-EXCH-2 -DatabaseCopyActivationDisabledAndMoveNow $True
Get-MailboxServer SRV-EXCH-2 | Select DatabaseCopyAutoActivationPolicy
Set-MailboxServer SRV-EXCH-2 -DatabaseCopyAutoActivationPolicy Blocked
Set-ServerComponentState SRV-EXCH-2 -Component ServerWideOffline -State Inactive -Requester Maintenance
Get-ServerComponentState SRV-EXCH-2 | FT Component,State –Autosize
Maintenance mode OFF
Set-ServerComponentState SRV-EXCH-2 -Component ServerWideOffline -State Active -Requester Maintenance
Resume-ClusterNode SRV-EXCH-2
Set-MailboxServer SRV-EXCH-2 -DatabaseCopyActivationDisabledAndMoveNow $False
Set-MailboxServer SRV-EXCH-2 -DatabaseCopyAutoActivationPolicy Unrestricted
Set-ServerComponentState SRV-EXCH-2 -Component HubTransport -State Active -Requester Maintenance
Restart-Service MSExchangeTransport
Restart-Service MSExchangeFrontEndTransport
Get-ServerComponentState SRV-EXCH-2 | FT Component,State –Autosize
C:\Program Files\Microsoft\Exchange Server\V15\Scripts> .\RedistributeActiveDatabases.ps1 -BalanceDbsByActivationPreference -Confirm:$false
Set-ServerComponentState SRV-EXCH-2 -Component HubTransport -State Draining -Requester Maintenance
Restart-Service MSExchangeTransport
Restart-Service MSExchangeFrontEndTransport
Redirect-Message -Server SRV-EXCH-2 -Target srv-vm-ex.msk.fbk.ru
Suspend-ClusterNode SRV-EXCH-2
Set-MailboxServer SRV-EXCH-2 -DatabaseCopyActivationDisabledAndMoveNow $True
Get-MailboxServer SRV-EXCH-2 | Select DatabaseCopyAutoActivationPolicy
Set-MailboxServer SRV-EXCH-2 -DatabaseCopyAutoActivationPolicy Blocked
Set-ServerComponentState SRV-EXCH-2 -Component ServerWideOffline -State Inactive -Requester Maintenance
Get-ServerComponentState SRV-EXCH-2 | FT Component,State –Autosize
Maintenance mode OFF
Set-ServerComponentState SRV-EXCH-2 -Component ServerWideOffline -State Active -Requester Maintenance
Resume-ClusterNode SRV-EXCH-2
Set-MailboxServer SRV-EXCH-2 -DatabaseCopyActivationDisabledAndMoveNow $False
Set-MailboxServer SRV-EXCH-2 -DatabaseCopyAutoActivationPolicy Unrestricted
Set-ServerComponentState SRV-EXCH-2 -Component HubTransport -State Active -Requester Maintenance
Restart-Service MSExchangeTransport
Restart-Service MSExchangeFrontEndTransport
Get-ServerComponentState SRV-EXCH-2 | FT Component,State –Autosize
C:\Program Files\Microsoft\Exchange Server\V15\Scripts> .\RedistributeActiveDatabases.ps1 -BalanceDbsByActivationPreference -Confirm:$false
Комментарии
Отправить комментарий