[在此处输入文章标题]

《系统工程师实战培训》

-07-部署邮件系统

-06-Exchange Server 2019-

配置-新建数据库-DAG

作者:学 无 止 境

QQ交流群:454544014


新建数据库-db_vip_01, 新建数据库-db_vip_02

07-06-Exchange Server 2019-配置-新建数据库-DAG_第1张图片

在三台邮件服务器上新建数据库目录:

db_Mailbox

PowerShell

md D:\db_Mailbox

C:\Users\Administrator.i-x-Cloud>PowerShell

Windows PowerShell

版权所有 (C) Microsoft Corporation。保留所有权利。

PS C:\Users\Administrator.i-x-Cloud> md D:\db_Mailbox

目录: D:\

Mode LastWriteTime Length Name

---- ------------- ------ ----

d----- 2019/3/8 6:45 db_Mailbox

PS C:\Users\Administrator.i-x-Cloud>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第2张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第3张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第4张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第5张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第6张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第7张图片

db_vip_03

07-06-Exchange Server 2019-配置-新建数据库-DAG_第8张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第9张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第10张图片

配置数据库副本-db_vip_01

07-06-Exchange Server 2019-配置-新建数据库-DAG_第11张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第12张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第13张图片

第一次配置报错,删除副本,再配置就可以了。

07-06-Exchange Server 2019-配置-新建数据库-DAG_第14张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第15张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第16张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第17张图片

07-06-Exchange Server 2019-配置-新建数据库-DAG_第18张图片

配置数据库副本-db_vip_02

配置数据库副本-db_vip_03

07-06-Exchange Server 2019-配置-新建数据库-DAG_第19张图片

迁移用户:

#添加Exchange管理单元(051-Ex01)

PS C:\Users\Administrator.i-x-Cloud> cd \

PS C:\> PowerShell

Windows PowerShell

版权所有 (C) Microsoft Corporation。保留所有权利。

PS C:\> Get-PSSnapin -Registered

Name : EnginePSSnapin

PSVersion : 2.0

Description : Register cmdlets for Content Engine

Name : HostControllerPSSnapIn

PSVersion : 2.0

Description : Register cmdlets for Host Controller

Name : InteractionEnginePSSnapIn

PSVersion : 2.0

Description : Register cmdlets for InteractionEngine

Name : JunoPSSnapin

PSVersion : 2.0

Description : Register cmdlets for Juno

Name : Microsoft.Exchange.Management.PowerShell.E2010

PSVersion : 1.0

Description : Admin Tasks for the Exchange Server

Name : Microsoft.Exchange.Management.PowerShell.Setup

PSVersion : 1.0

Description : Setup Tasks for the Exchange Server

Name : Microsoft.Exchange.Management.PowerShell.SnapIn

PSVersion : 1.0

Description : Admin Tasks for the Exchange Server

Name : Microsoft.Exchange.Management.Powershell.Support

PSVersion : 1.0

Description : Support Tasks for the Exchange Server

Name : Microsoft.Forefront.Filtering.Management.PowerShell

PSVersion : 2.0

Description : Microsoft Forefront Filtering PowerShell Interface

Name : SearchCorePSSnapIn

PSVersion : 2.0

Description : Register cmdlets for SearchCore

PS C:\> Add-PSSnapin Microsoft.Exchange.*

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第20张图片

#启用邮箱账号(需要域管理员权限,因为需要将某些属性写入到AD中)

Get-User -Identity $username | Enable-Mailbox -database $MailDB

#禁用邮箱账号(需要域管理员权限,因为需要将某些属性从AD中删除)

Get-User -Identity $username | Disable-Mailbox -confirm:$false

#查找邮件跟踪日志

Get-MessageTrackinglog -Server mailbox1 -start "07/09/2015 11:00:00" -end "07/09/2015 11:00:20"

PS C:\> Get-Mailbox | Select Name,ServerName,Database

Name ServerName Database

---- ---------- --------

Administrator 051-ex01 Mailbox Database 1482305262

DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852} 051-ex01 Mailbox Database 1482305262

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第21张图片

Get-Mailbox | New-MoveRequest -TargetDatabase 'db_vip_01'

PS C:\> Get-Mailbox | New-MoveRequest -TargetDatabase 'db_vip_01'

DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete

----------- ------------ ---------------- ---------------- ---------------

Administrator WaitingForJobPickup 559.5 KB (572,924 bytes) 0

发现搜索邮箱 WaitingForJobPickup 0 B (0 bytes) 0

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第22张图片

PS C:\> Get-MoveRequest | Get-MoveRequestStatistics

DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete

----------- ------------ ---------------- ---------------- ---------------

Administrator Completed 559.5 KB (572,924 bytes) 100

发现搜索邮箱 Completed 53.96 KB (55,257 bytes) 100

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第23张图片

PS C:\> Get-Mailbox | Select Name,ServerName,Database

Name ServerName Database

---- ---------- --------

Administrator 051-ex01 db_vip_01

DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852} 051-ex01 db_vip_01

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第24张图片

Get-Mailbox -Arbitration

PS C:\> Get-Mailbox -Arbitration | Select Name,ServerName,Database

Name ServerName Database

---- ---------- --------

SystemMailbox{1f05a927-5a54-4c8b-bef8-0ffafa4af1a2} 051-ex01 Mailbox Database 1482305262

SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c} 051-ex01 Mailbox Database 1482305262

SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9} 051-ex01 Mailbox Database 1482305262

Migration.8f3e7716-2011-43e4-96b1-aba62d229136 051-ex01 Mailbox Database 1482305262

FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 051-ex01 Mailbox Database 1482305262

SystemMailbox{D0E409A0-AF9B-4720-92FE-AAC869B0D201} 051-ex01 Mailbox Database 1482305262

SystemMailbox{2CE34405-31BE-455D-89D7-A7C7DA7A0DAA} 051-ex01 Mailbox Database 1482305262

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第25张图片

PS C:\> Get-Mailbox -Arbitration | New-MoveRequest -TargetDatabase 'db_vip_01'

DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete

----------- ------------ ---------------- ---------------- ---------------

Microsoft Exchange 审批助理 WaitingForJobPickup 0 B (0 bytes) 0

Microsoft Exchange WaitingForJobPickup 81.52 KB (83,478 bytes) 0

Microsoft Exchange WaitingForJobPickup 667.1 KB (683,152 bytes) 0

Microsoft Exchange Migra... WaitingForJobPickup 56.14 KB (57,489 bytes) 0

Microsoft Exchange Feder... WaitingForJobPickup 0 B (0 bytes) 0

E4E Encryption Store - A... WaitingForJobPickup 0 B (0 bytes) 0

Microsoft Exchange WaitingForJobPickup 0 B (0 bytes) 0

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第26张图片

PS C:\> Get-MoveRequest | Get-MoveRequestStatistics

DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete

----------- ------------ ---------------- ---------------- ---------------

Microsoft Exchange 审批助理 StalledDueToTarget_DataGuaranteeWait 55.72 KB (57,055 bytes) 99

Microsoft Exchange StalledDueToTarget_DataGuaranteeWait 81.52 KB (83,478 bytes) 99

Microsoft Exchange StalledDueToTarget_DataGuaranteeWait 667.1 KB (683,152 bytes) 95

Microsoft Exchange Migration StalledDueToTarget_DataGuaranteeWait 56.14 KB (57,489 bytes) 99

Microsoft Exchange Federation Mailbox StalledDueToTarget_DataGuaranteeWait 57.47 KB (58,847 bytes) 99

E4E Encryption Store - Active StalledDueToTarget_DataGuaranteeWait 56.47 KB (57,823 bytes) 95

Microsoft Exchange StalledDueToTarget_DataGuaranteeWait 55.08 KB (56,407 bytes) 95

Administrator Completed 559.5 KB (572,924 bytes) 100

发现搜索邮箱 Completed 53.96 KB (55,257 bytes) 100

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第27张图片

PS C:\> Get-MoveRequest | Get-MoveRequestStatistics

DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete

----------- ------------ ---------------- ---------------- ---------------

Administrator Completed 559.5 KB (572,924 bytes) 100

Microsoft Exchange 审批助理 Completed 55.72 KB (57,055 bytes) 100

Microsoft Exchange Completed 81.52 KB (83,478 bytes) 100

Microsoft Exchange Completed 667.1 KB (683,152 bytes) 100

发现搜索邮箱 Completed 53.96 KB (55,257 bytes) 100

Microsoft Exchange Migration Completed 56.14 KB (57,489 bytes) 100

Microsoft Exchange Federation Mailbox Completed 57.47 KB (58,847 bytes) 100

E4E Encryption Store - Active Completed 56.47 KB (57,823 bytes) 100

Microsoft Exchange Completed 55.08 KB (56,407 bytes) 100

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第28张图片

迁移公共文件夹

PS C:\> Get-Mailbox -PublicFolder

PS C:\>

clip_image056

迁移用户-参考

Get-Mailbox -Database 'Mailbox Database 0604012475' | New-MoveRequest -TargetDatabase 'db_vip_01'

PS C:\> Get-Mailbox | Select Name,ServerName,Database

Name ServerName Database

---- ---------- --------

Administrator 051-ex01 db_vip_01

DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852} 051-ex01 db_vip_01

PS C:\> Get-Mailbox -Arbitration | Select Name,ServerName,Database

Name ServerName Database

---- ---------- --------

SystemMailbox{1f05a927-5a54-4c8b-bef8-0ffafa4af1a2} 051-ex01 db_vip_01

SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c} 051-ex01 db_vip_01

SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9} 051-ex01 db_vip_01

Migration.8f3e7716-2011-43e4-96b1-aba62d229136 051-ex01 db_vip_01

FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 051-ex01 db_vip_01

SystemMailbox{D0E409A0-AF9B-4720-92FE-AAC869B0D201} 051-ex01 db_vip_01

SystemMailbox{2CE34405-31BE-455D-89D7-A7C7DA7A0DAA} 051-ex01 db_vip_01

PS C:\> Get-Mailbox -PublicFolder

PS C:\>

07-06-Exchange Server 2019-配置-新建数据库-DAG_第29张图片


本文已完成!