Forum Discussion
kuystorj
May 01, 2019Copper Contributor
Removing Extra MDB
Hello Cool People,
We have a hybrid setup and since we are moving most of our mailboxes to EO. We decided to consolidate our mailboxes to a single MDB. I have moved our remaining on-prem mailbox to a single MDB and the remaining 4 MDB's has no more mailbox to them. What would be the safest way to remove the extra 4 databases? Does unmounting them from ECP and deleting them from there does the trick?
Appreciate your response.
Best,
- Akshay_ManeIron Contributor
Get-Mailbox -Database "MDB name"
Get-Mailbox -Database "MDB name" -PublicFolder
Get-Mailbox -Database "MDB name" -Arbitration
Make sure no result is found other move it to mailbox db that will be alive. Then remove the database either from ecp or shell.
Regards,
Akshay
Exchange Admin - O365CloudExperts
- DeepakRandhawaIron Contributor
Hello kuystorj,
First of all run this to get a list of all arbitrary mailboxes:-
Set-ADServerSettings -ViewEntireForest $true
Get-Mailbox -Arbitration | FL name,database,displayname,servernameIf you see any mailbox on the databases that you wish to remove, move those mailboxes to the database were you are consolidating all the mailboxes, using below:-
Get-Mailbox –Database “Source-DB-NAME” –arbitration | New-MoveRequest –TargetDatabase “Destination-DB-NAME”To check the status of the migration use below:-
Get-MoveRequest | Get-MoveRequestStatistics | select DisplayName, StatusDetail, *Size, *Percent* | ftNow to remove the database run below:-
Remove-MailboxDatabase -Identity MailboxDatabaseNameA warning might appear saying that you would have to delete the edb manually. Once done feel free to delete the edb and log files folder.
Deepak
- msExchangeDude
Microsoft
kuystorj if you have multiple mailbox database copies, you'll remove all the copies first, then you can remove the databases. When you say you want to remove them in the 'safest way possible', what are some of your concerns about removing them? once boxes are moved off, the only remaining data should be disconnected or soft-deleted mailboxes ( get-mailboxstatistics -database "myMDB05 | ?{$_.disconnectreason} ).
Also like the previous user mentioned, you will need to move off any arbitration mailboxes if there are any on them, but Exchange will tell you if there are any arbitration mailboxes on it when you go to delete the DBs (get-mailbox -arbitration | select alias, database)
kuystorj you can use Remove-MailboxDatabase, no need to dismount.
Make sure you have moved the arbitration mailboxes as well.