切换到宽版
  • 7613阅读
  • 1回复

[求助]部署mailbox Database is mandatory on UserMailbox [复制链接]

上一主题 下一主题
 
只看楼主 倒序阅读 0楼  发表于: 2014-04-23
这几天一直在排一个错,安装exchange server 2013 withSP1, 因为以前的exchange server 我是直接格式化,然后手动删除系统邮箱,然后安装前端成功,安装mailbox roles的时候,报错  Database is mandatory on UserMailbox.  google了很多,包括删除仲裁邮箱,删除之后会报出另外一个错误;查找系统邮箱的那么homeMDB的值,填写值之后再次运行,依旧报这个错误。

下面给出当时的报错信息

Error:
The following error was generated when "$error.Clear();
          if (!$RoleIsDatacenter -and !$RoleIsDatacenterDedicated)
          {
          $mailboxId = [Microsoft.Exchange.Management.Migration.MigrationBatchIdParameter]::MigrationMailboxName;
          $dispName = "Microsoft Exchange Migration";
          $mbxs = @(Get-Mailbox -Arbitration -DomainController $RoleDomainController -Filter {Name -eq $mailboxId});
          $migrationMailbox = $null;

          if ($mbxs.Length -eq 0)
          {
          Write-ExchangeSetupLog -Info ("Retrieving mailbox databases on Server=$RoleFqdnOrName.");
          $dbs = @(Get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
          if ($dbs.Length -ne 0)
          {
          Write-ExchangeSetupLog -Info ("Retrieving users with Name=$mailboxId.");
          $arbUsers = @(Get-User -Filter {Name -eq $mailboxId} -IgnoreDefaultScope -ResultSize 1);
          if ($arbUsers.Length -ne 0)
          {
          Write-ExchangeSetupLog -Info ("Enabling mailbox $mailboxId.");
          $migrationMailbox = Enable-Mailbox -Arbitration -Identity $arbUsers[0] -DisplayName $dispName -database $dbs[0].Identity;
          }
          }
          }
          else
          {
          $migrationMailbox = $mbxs[0];
          }

          # Set the Organization Capabilities and quotas needed for this mailbox
          if ($migrationMailbox -ne $null)
          {
          Set-Mailbox -Arbitration -Identity $migrationMailbox -ProhibitSendReceiveQuota 300MB -ProhibitSendQuota 300MB -IssueWarningQuota 150MB -RecoverableItemsQuota 30GB -RecoverableItemsWarningQuota 20GB -UseDatabaseQuotaDefaults $false -SCLDeleteEnabled $false -SCLJunkEnabled $false -SCLQuarantineEnabled $false -SCLRejectEnabled $false -HiddenFromAddressListsEnabled $true -DisplayName $dispName -Management:$true -Force;
          }
          else
          {
          Write-ExchangeSetupLog -Info ("Cannot find migration mailbox with name=$mailboxId.");
          }
          }
        " was run: "Database is mandatory on UserMailbox.".

Error:
The following error was generated when "$error.Clear();
          if (!$RoleIsDatacenter -and !$RoleIsDatacenterDedicated)
          {
          $mailboxId = [Microsoft.Exchange.Management.Migration.MigrationBatchIdParameter]::MigrationMailboxName;
          $dispName = "Microsoft Exchange Migration";
          $mbxs = @(Get-Mailbox -Arbitration -DomainController $RoleDomainController -Filter {Name -eq $mailboxId});
          $migrationMailbox = $null;

          if ($mbxs.Length -eq 0)
          {
          Write-ExchangeSetupLog -Info ("Retrieving mailbox databases on Server=$RoleFqdnOrName.");
          $dbs = @(Get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
          if ($dbs.Length -ne 0)
          {
          Write-ExchangeSetupLog -Info ("Retrieving users with Name=$mailboxId.");
          $arbUsers = @(Get-User -Filter {Name -eq $mailboxId} -IgnoreDefaultScope -ResultSize 1);
          if ($arbUsers.Length -ne 0)
          {
          Write-ExchangeSetupLog -Info ("Enabling mailbox $mailboxId.");
          $migrationMailbox = Enable-Mailbox -Arbitration -Identity $arbUsers[0] -DisplayName $dispName -database $dbs[0].Identity;
          }
          }
          }
          else
          {
          $migrationMailbox = $mbxs[0];
          }

          # Set the Organization Capabilities and quotas needed for this mailbox
          if ($migrationMailbox -ne $null)
          {
          Set-Mailbox -Arbitration -Identity $migrationMailbox -ProhibitSendReceiveQuota 300MB -ProhibitSendQuota 300MB -IssueWarningQuota 150MB -RecoverableItemsQuota 30GB -RecoverableItemsWarningQuota 20GB -UseDatabaseQuotaDefaults $false -SCLDeleteEnabled $false -SCLJunkEnabled $false -SCLQuarantineEnabled $false -SCLRejectEnabled $false -HiddenFromAddressListsEnabled $true -DisplayName $dispName -Management:$true -Force;
          }
          else
          {
          Write-ExchangeSetupLog -Info ("Cannot find migration mailbox with name=$mailboxId.");
          }
          }
        " was run: "Database is mandatory on UserMailbox.".
分享到

只看该作者 1楼  发表于: 2014-04-24
google只是给你通用的解决办法,但每个环境是不一样的。

根据您的描述以前的exchange服务器是直接格式化的,那之前这台服务器的信息有没有从AD的configuration partition里面清除掉?重新安装前端和mailbox,是都装在这台格式化的服务器上面还是分开安装?你可以在现行的CAS服务器上跑个EXBPA看下系统分析结果
Exchange中文站10周年献礼。Exchange2016中文视频教程热销中:edu.exchangecn.com/course/12
快速回复
限60 字节
 
上一个 下一个