Mailbox databases are the containers in Microsoft Exchange, storing mailboxes, public folders, and other important data of users. Managing these databases is essential for better performance of email infrastructure. With this guide you understand the fundamental operations of mailbox databases - creating, mounting, and dismounting.
Understanding Mailbox Database
In Microsoft Exchange, the mailbox database stores the location of all mailbox data - emails, contacts, tasks, and attachments. Each database contains the .edb file that stores the actual mailbox data and a series of log files that help maintain the data integrity.
Why We Need to Manage Mailbox Databases in Exchange
Management of the mailbox database is necessary to the health and performance of the complete Exchange environment.
Here is the reasons:
Data safety & protection: Regular Database management prevents database corruption, log file overflow, or storage failure. Even if corruption occurs, then use valuable tools like MailsDaddy EDB to PST Converter.
Storage Management: Proper management of mailbox databases like preventing disk space issues, manage the database size can help to grow.
Troubleshooting and Repairs: When some issues occur like corruption, server failure, space issues, then admin perform dismount, repair, mount, restore methods.
How to Create a New Mailbox Database?
Create a new mailbox database using the Exchange Admin center or PowerShell.
Using Exchange Admin Center
- Open EAC and navigate Server, then Database.
- Click + to create a new database.
- Enter the database name.
- Select the server where the DB will reside.
- Choose the database file path and log file path.
- Click on Save.
- Restart the Microsoft Exchange Information Store service to activate the database.
Using PowerShell
New-MailboxDatabase -Name "DB01" -Server EXCH01 -EdbFilePath "D:\DB01\DB01.edb" -LogFolderPath "D:\DB01\Logs"
After creation, the database exists but isn't ready to accept the mailboxes. You will need to mount the database before use.
How to Move a Mailbox Database?
There are two ways to move mailbox database in Exchange:
A. Move Database Files (EDB & Logs)
Moving database files is used when we need to relocate the database to different disk locations.
Move-DatabasePath -Identity "DB01" -EdbFilePath "E:\DB01\DB01.edb" -LogFolderPath "E:\DB01\Logs"
Exchange will:
- Database dismount
- Move files
- Database remount
B. Move Mailboxes to Another Database
Used this when balancing storage or migrating users.
New-MoveRequest -Identity "user@domain.com" -TargetDatabase "DB02"
Check with
Get-MoveRequest
How to Mount a Mailbox Database
When you mount a database, Exchange makes it accessible for users.
Using EAC:
- Go to Servers → Databases
- Select the DB
- Click More (…) → Mount
- Using PowerShell:
- Mount-Database -Identity "DB01"
Due to some reasons if mounting fails, you need to first repair or restore the database.
How to Dismount a Mailbox Database?
Dismounting temporarily offline, disconnects all users from the database. Useful for performing certain
maintenance or repair tasks.
Using EAC
- Open Servers → Databases
- Select the DB
- Click More (…) → Dismount
- Using PowerShell:
- Dismount-Database -Identity "DB01" -Confirm:$false
Note : Users before dismounting databases, as this immediately terminates their connections.
Conclusion
Managing mailbox databases in Exchange- creating, moving, mounting, and dismounting - is the fundamental skill for email administrations. Creating new databases to growth, moving them to optimize storage, or performing mounting and dismounting the operations for maintenance. With these guidelines, administrators maintain high performance, data safety and deliver experience to end users.
.png)
0 Comments