DAG环境下将EXCHANGE 2016 CU2升级至CU19操作步骤

EXCHANGE 2016 CU19官网有得下载,我升级的这个是英文版的

https://download.microsoft.com/download/a/8/4/a84c8458-c924-4e6d-a19b-be65848c0fe3/ExchangeServer2016-x64-CU19.ISO

在DAG的第一台机器执行:

1. HubTransport 的队列重定向到另一台服务器上

Set-ServerComponentState -Identity "DAGEX1" -Component HubTransport -State Draining -Requester Maintenance

Redirect-Message -Server "DAGEX1" -Target "DAGEX2.TEST.COM"   注意,此处必须为完全合格的域名FQDN

 

2.暂停节点, 禁用副本

Suspend-ClusterNode "DAGEX1"

Set-MailboxServer "DAGEX1" -DatabaseCopyActivationDisabledAndMoveNow $true

 

3.记录原有的复本自动激活策略, 维护结束后设置回该值

Get-MailboxServer "DAGEX1" | Select DatabaseCopyAutoActivationPolicy

 

4.设置待升级的服务器为Blocked的状态

Set-MailboxServer "DAGEX1" -DatabaseCopyAutoActivationPolicy Blocked

 

 

5. 检查服务器上所挂载的所有数据库副本,应该为空

Get-MailboxDatabaseCopyStatus -Server "DAGEX1" | Where {$_.Status -eq "Mounted"}

 

 

6.检查传输队列,应该为空

Get-Queue

 

 

 

 

7. 将服务器置于维护模式

Set-ServerComponentState "DAGEX1" -Component ServerWideOffline -State Inactive -Requester Maintenance

 

 

8.查看服务器当前的状态

Get-ServerComponentState "DAGEX1" | Select Component, State

所有组件的状态都将是 Inactive 除了 Monitoring RecoveryActionsEnabled.

 

 

9.安装RSAT-ADDS组件, 安装在域控制器上,如果返回结果已经安装,忽略这一步

Install-WindowsFeature RSAT-ADDS

 

 

10.此步骤只需执行一次,在域控制器上面执行

要求 Enterprise Admins 和 Schema Admins 权限,幷且 Schema Master 所在服务器已经安装 RSAT-ADDS 组件,升级的ISO为E盘

 

活动目录的架构扩展

E:\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareSchema

 

活动目录的准备, 创建容器、对象和其他项来存储信息

E:\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD

 

活动目录的准备, 创建额外的容器、安全组和设置权限

E:\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAllDomains

 

 

11.回到EXCHANGE服务器DAGEX1的Exchange Management Shell执行

设置执行策略设置为无限制

Set-ExecutionPolicy Unrestricted

 

12.执行升级

打开POWER SHELL执行

# Exchange Schema Version

$sc = (Get-ADRootDSE).SchemaNamingContext

$ob = "CN=ms-Exch-Schema-Version-Pt," + $sc

Write-Output "RangeUpper: $((Get-ADObject $ob -pr rangeUpper).rangeUpper)"

 

# Exchange Object Version (domain)

$dc = (Get-ADRootDSE).DefaultNamingContext

$ob = "CN=Microsoft Exchange System Objects," + $dc

Write-Output "ObjectVersion (Default): $((Get-ADObject $ob -pr objectVersion).objectVersion)"

 

# Exchange Object Version (forest)

$cc = (Get-ADRootDSE).ConfigurationNamingContext

$fl = "(objectClass=msExchOrganizationContainer)"

Write-Output "ObjectVersion (Configuration): $((Get-ADObject -LDAPFilter $fl -SearchBase $cc -pr objectVersion).objectVersion)"

 

打开邮件服务器的CMD命令行模式,不是用Exchange Management Shell

E:\Setup.exe /IAcceptExchangeServerLicenseTerms /Mode:Upgrade

 

等待The update did go successfully. Restart the Exchange Server出现,重启服务器

 

 

13.退出维护模式, Exchange Management Shell下执行

Set-ServerComponentState "DAGEX1" -Component ServerWideOffline -State Active -Requester Maintenance

 

Resume-ClusterNode -Name "DAGEX1"

 

Set-MailboxServer "DAGEX1" -DatabaseCopyAutoActivationPolicy Unrestricted

 

Set-MailboxServer "DAGEX1" -DatabaseCopyActivationDisabledAndMoveNow $false

 

Set-ServerComponentState "DAGEX1" -Component HubTransport -State Active -Requester Maintenance

 

 

14验证

Get-ExchangeServer | Format-List Name, Edition, AdminDisplayVersion

升级至CU19后版本号应为: Version 15.1 (Build 2176.2)

 

Get-ClusterNode "DAGEX1"

状态须为state up

 

 

Test-ServiceHealth "DAGEX1"

Get-ExchangeServer | Test-ServiceHealth

检查所需的服是否在运行中

 

Test-MAPIConnectivity -Server "DAGEX1"

Get-ExchangeServer | Test-MAPIConnectivity

测试MAPI连接

 

Get-MailboxDatabaseCopyStatus -Server "DAGEX1" | Sort Name | Select Name, Status, Contentindexstate

Get-MailboxDatabaseCopyStatus * | Sort Name | Select Name, Status, Contentindexstate

获取DAG副本状态运行状况的结

 

Test-ReplicationHealth -Server "DAGEX1"

Get-DatabaseAvailabilityGroup | Select -ExpandProperty:Servers | Test-ReplicationHealth | Sort Name

检查复制健康状态, 检查所有Exchange服务器上的复制运行状况,

 

Get-MailboxServer "DAGEX1" | Select Name, DatabaseCopyAutoActivationPolicy

Get-MailboxServer | Select Name, DatabaseCopyAutoActivationPolicy

 

验证数据库激活策略是否设置为无限

 

15.升级安装第二台邮件服务器

除了前面的活动目录扩展的步骤只执行一次以外,其他的重复执行和验证

 

 

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页