码迷,mamicode.com
首页 > 数据库 > 详细

【Troubleshooting Case】无法删除Exchange 数据库DB 排错?

时间:2017-03-21 11:35:11      阅读:311      评论:0      收藏:0      [点我收藏+]

标签:microsoft   database   exchange   troubleshooting   

在我们日常邮件系统运维管理或实施部署变更中,经常会遇到,删除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 服务器

技术分享

Error2:

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

技术分享

Solution:

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

技术分享

Example:

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

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

技术分享

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

技术分享

技术分享

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

技术分享

技术分享

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

技术分享

技术分享

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

技术分享

技术分享

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

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

技术分享

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

技术分享

技术分享

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

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

技术分享

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

Get-MoveRequestStatistics -MoveRequestQueue "exMb02"

技术分享

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

Remove-Database "Mailbox Database 1677978442"

技术分享

技术分享

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

技术分享

技术分享

技术分享

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

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

本文出自 “Albert Dongjie Tech Blog” 博客,请务必保留此出处http://djclouds.blog.51cto.com/7223084/1908619

【Troubleshooting Case】无法删除Exchange 数据库DB 排错?

标签:microsoft   database   exchange   troubleshooting   

原文地址:http://djclouds.blog.51cto.com/7223084/1908619

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!