Still cant remove a Exchange database, WHY?

Getting the following error when trying to remove this exchange 2010 database:
--------------------------------------------------------
Microsoft Exchange Error
--------------------------------------------------------
The mailbox database 'DB1' cannot be deleted.

DB1
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>.

1st step was the following command: Set-AdServerSettings -ViewEntireForest $True
Then Tried the following to no avail & the result was null:
Any user mailbox: Nothing
Any Archive mailbox: Nothing
Discovery Search mailbox: Nothing
Arbitration mailbox: Nothing

no luck. Any ideas? The only thing I can think of is re-naming the database. The actual file name is DB1_a, but exchange (through EMC) is referring to it as DB1.
LVL 1
ID10TzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ganesh Kumar ASr Infrastructure SpecialistCommented:
Try to get mailbox command to find with the following and post the result

Get-Mailbox -AuditLog -Database <DatabaseName>

to find arbitration mailboxes

Get-Mailbox -Arbitration | Ft Name, Database

Now get all archiving mailboxes in DBs
Get-mailbox -archive | fl identity,database

To get public folder mailbox

Get-Mailbox -PublicFolder -Database database_name
ID10TzAuthor Commented:
Get-Mailbox -AuditLog -Database "DB1"                               results: error
Get-Mailbox -Arbitration | Ft Name, Database                    results: DB2
Get-mailbox -archive | fl identity,database                          results:
      Identity:     domain/OU/OU2/user.name
      database:  DB3
Get-Mailbox -PublicFolder -Database "DB1"                          results: error
IvanSystem EngineerCommented:
Hi,

Since you cant delete DB1 database, can you try:
Get-Mailbox -Database "DB1" -Arbitration

If you see any arbitration mailbox in that database, then move them to another DB with command:
Get-Mailbox -Database "DB1" -Arbitration |  New-MoveRequest –TargetDatabase “MailboxDatabase_Name”

Regards,
Ivan.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

ID10TzAuthor Commented:
spriggan13: the command returns null
Ganesh Kumar ASr Infrastructure SpecialistCommented:
Dismount the db1 and run eseutil /mh and post the result, the status should show  clean shutdown, if it is dirty you need to repair the database.

For better understanding, read this : http://msexchangeguru.com/2011/03/02/databse-repair/
ID10TzAuthor Commented:
I have to repair a database I want to remove?
ID10TzAuthor Commented:
Sorry uploaded wrong pic at first. Posted the right one. Since it has a clean shutdown there is no need for repair, correct?
ESEUTIL.png
ID10TzAuthor Commented:
was going through event viewer and found this:

Error:
Exception thrown during AdminLogProvisioningHandler.Validate: Microsoft.Exchange.Data.Storage.ObjectNotFoundException: The discovery mailbox, a hidden default mailbox that is required to search mailboxes, can't be found. It may have been inadvertently deleted. This mailbox must be re-created before you can search mailboxes.
   at Microsoft.Exchange.Data.Storage.Infoworker.MailboxSearch.MailboxDataProvider.GetDiscoveryMailbox(ADRecipientSession session)
   at Microsoft.Exchange.Management.SystemConfigurationTasks.AdminAuditLogHelper.CheckArbitrationMailboxStatus(OrganizationId organizationId, ADUser& user, ExchangePrincipal& principal, String& errorMessage)

and it referred directly to DB1
MASEE Solution Guide - Technical Dept HeadCommented:
Get-Mailbox -Arbitration | Ft Name, Database
Please post the result of this command
IvanSystem EngineerCommented:
Hi,

maybe you could recreate discovery mailbox, and then see will you be able to delete DB1...

Enable-Mailbox -Arbitration -DomainController <FQDN of root global catalog server> -Identity "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}"

Regards,
Ivan.
ID10TzAuthor Commented:
Just deleting the database is not an option since exchange will throw errors since it would be removed incorrectly, right?
IvanSystem EngineerCommented:
Yes, don't do that :)
ID10TzAuthor Commented:
It lists only a federated mailbox in a different database. See pic.
1.png
ID10TzAuthor Commented:
@spriggan13: the discovery mailbox is important for searches and what not. I should re-create discovery mailbox regardless, correct? And is there a way to specify which database for its new creation?
ID10TzAuthor Commented:
@spriggan13: When I run the command i get the following error:

The operation could not be performed because object "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}" could not be found on the DC.

None of my DC's has it. Could it be called something else?
ID10TzAuthor Commented:
went into my AD to view the system mailbox. There is none. See pic.
ou.png
ID10TzAuthor Commented:
Found system mailboxes but they were located in the MS Exchange System objects. Thought they were supposed to be in the USERS OU, right?
ou2.png
ID10TzAuthor Commented:
I cannot find the SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9 mailbox.
Sudeep SharmaTechnical DesignerCommented:
Does this helps:

Get-Mailbox -Arbitration -Database db1 | Remove-Mailbox -Arbitration -RemoveLastArbitrationMailboxAllowed

Sudeep
ID10TzAuthor Commented:
@Sudeep Sharma: nope....
Ganesh Kumar ASr Infrastructure SpecialistCommented:
Request you to post the result, please dont filter, just post it as it is you see in the screen.  

Try to get mailbox command to find with the following and post the result

Get-Mailbox -AuditLog -Database <DatabaseName>

to find arbitration mailboxes

Get-Mailbox -Arbitration | Ft Name, Database

Now get all archiving mailboxes in DBs
Get-mailbox -archive | fl identity,database

To get public folder mailbox

Get-Mailbox -PublicFolder -Database database_name
ID10TzAuthor Commented:
@Ganesh Kumar A:


Get-Mailbox -AuditLog -Database DB1
a positional parameter cannot be found that accepts argument '-auditlog'
*******************************************************************************
Get-Mailbox -Arbitration | Ft Name, Database
Name                                                                                            Database                                                  
FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042         DB2

*******************************************************************************
Get-mailbox -archive | fl identity,database
Identity : domain.COM/OU1/OU2/OU3/end.user
Database : DB3

*******************************************************************************
Get-Mailbox -PublicFolder -Database "DB1"
a positional parameter cannot be found that accepts argument '-publicFolder'
Ganesh Kumar ASr Infrastructure SpecialistCommented:
It appears like there is no system mailbox, strange though.  

Please try to recreate the system mailboxes as per http://jaapwesselius.com/2015/10/14/exchange-2013-recreate-arbitration-mailboxes/


Read this as well for better understanding.
http://social.technet.microsoft.com/wiki/contents/articles/5317.recreate-and-enable-missing-arbitration-user-accounts-and-mailboxes-in-exchange-server-2010.aspx

Let me know after you create it, then  run the same commands and post the results.
MASEE Solution Guide - Technical Dept HeadCommented:
Worst case you can delete the database using ADSI Edit

Configuration-->Services-->MicrosoftExchange-->YourORG-->Administrative Group-->ExchangeAdministrativeGroup-->Databases--><Delete the database you want to delete>

and run "setup.com /prepareAD"  using Exchange media to recreate the system mailboxes.

https://penguyen.wordpress.com/2013/08/01/force-removing-exchange-2010-database-adsiedit-msc/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ID10TzAuthor Commented:
after running the stats command I saw and found the system mailboxes. then I removed via adsi edit
ID10TzAuthor Commented:
led me to what I needed
MASEE Solution Guide - Technical Dept HeadCommented:
Glad to know you fix it
ID10TzAuthor Commented:
Got another issue with same server!!! Some treason (hehe Freudian slip) it let me clear 5 move request. Posting another question now.   Ugh
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.