【Troubleshooting Case】无法删除Exchange database 数据库

在我们日常邮件系统运维管理或实施部署变更中,经常会遇到,删除Exchange 数据库DB时,提示无法删除。

——————————————————–

Microsoft Exchange Error

——————————————————–

The mailbox database ‘EXMB01’ cannot be deleted.
Failed
Error:
This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, or arbitration mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>. To get a list of all mailbox plans in this database, run the command Get-MailboxPlan. To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive. Arbitration mailboxes should be moved to another server; to do this, run the command New-MoveRequest <parameters>. If this is the last server in the organization, run the command Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan ID> -Database <Database ID>.


Error1:

邮件系统升级做变更,无法卸载Exchange Server 服务器

clip_image001

Error2:

基于客户需求,删除默认邮件服务器创建数据库DB ,提示无法删除,包含一个或多个用户邮箱、存档邮箱等


clip_image002

Solution:

服务器环境: Windows Server 2012 R2 、Exchange Server 2013

clip_image003

Example:

在多数中小型企业中,有许多客户为了省事,将邮件服务器应用程序及数据库DB 安装在同一快磁盘中,规划部署中磁盘划分也不是非常大,但后期随着业务扩大,常常会遇到邮件服务器磁盘空间满导致用户无法收发邮件。

多数客户常用操作方式,清除log日志。我们会建议常用考虑,通过迁移方式,将用户邮箱迁移到较大存储磁盘里面;

clip_image004

1.打开现在Exchange Admin center ,查看需删除默认数据库DB,当然也可以通过Exchange Powershell 获取环境数据库DB;


clip_image005


clip_image006


2.常见操作步骤就是在控制台删除用户邮箱数据库DB ,但是报如下错误;

clip_image007

clip_image008


3.在迁移操作之前先新建一个数据库DB 完成,来完成接下来工作;

clip_image009


clip_image010


4.查询当前数据库DB 包含用户邮箱、存档邮箱、监控邮箱;

clip_image011

clip_image012


5.将旧的存储数据库包含仲裁以外的邮箱把他们搬到新的邮箱存储且装载好;

Get-Mailbox -Database “CurrentDatabase” | New-MoveRequest -TargetDatabase “NewDatabaseName”


clip_image013


6.获取用户邮箱迁移状态,以及存储邮箱完成进度

clip_image014

clip_image015


7.获取默认仲裁邮箱、存档邮箱

Get-Mailbox -Database "Mailbox Database 1677978442" -Arbitration


clip_image012[1]


8.完成所有所有用户邮箱迁移操作

Get-MoveRequestStatistics -MoveRequestQueue "exMb02"


clip_image016


9.删除默认用户邮箱数据库DB,当然在删除操作之前先进行确认是否已完成迁移操作

Remove-Database "Mailbox Database 1677978442"


clip_image017

clip_image018


10.获取当前数据库,确认是否删除。并将默认数据库文件夹删除;

clip_image019

clip_image020

clip_image021

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

以上操作完成之后,完成邮件系统升级做变更,以及用户邮箱迁移扩容。

猜你喜欢

转载自blog.51cto.com/djclouds/2364392