We recently discovered that an Exchange Server could not accept any (external) messages anymore due to low disk space. It is the Exchange "Back Pressure" feature that caused the Exchange Server to stop sending emails.
Now using a tool I found that there are many log files (.log) in directory:
C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database <id>\
These log files take up several GBs and thus all my resources (disk space), causing my problem.
I had that specific directory open for a few minutes and it was updating and adding logs. To me it looks like it logs every incoming (?)/outgoing (?) email.
Questions:
- Is it safe to manually delete these mailbox database .log files or should this be done by an Exchange tool?
- How can I control this logging? (enable/disable/auto-cleanup/... settings?)
- What exactly does such a mailbox database .log file contain?
Thanks in advance.
In addition, you've created a mailbox in the default location. It is best practise to create a new volume for the databases and another for the log transaction files.
Good article describing the same issue you have: http://exchangeserverpro.com/exchange-2010-faq-disk-filling-log-files/
My solution:
Backup the Server once (Windows Backup). In the options select Advanced and for VSS (Volume Shadow Services) select Full. This will backup the server and compact the log file.
The log is needed for recovery. So when you backup with VSS settings to Full, Windows Server will compact the log after a successfull backup. Because your data is backupped, it is sure it can compact the log because recoverey can be done via the backup instead of the transaction log file.
For me the backup solution didn't work out, although I have set up a daily incremental backup in Windows Backup, the logs were not truncated, as stated by Microsoft docs. So my solution was to enable circular logging:
and simply reboot the server. (you could also unmount and mount the mailbox datastore)