
Configuring the Maximum Size of the MRM Log Directory
To specify the size limit for all managed folder log files from a single message database, you can use the LogDirectorySizeLimitForManagedFolders parameter. By default, there is no size limit for the MRM log directory. If you set a size limit for this directory and the size limit is reached for a set of MRM log files from a message database, the oldest files are deleted to make room for new files.
The size of the managed folder log files is calculated as the total size of all log files that have the same name prefix. For example, for a file with the name Managed_Folder_Assistant[Storage Group 01][Mailbox Database 01]20061018-1.log, the prefix is Managed_Folder_Assistant[Storage Group 01][Mailbox Database 01]. If you rename log files or copy other files into the managed folder log directory, these files are not counted in the log files size calculation. The managed folder log files for each message database have a unique name prefix. Therefore, this limit applies to the log files for each message database, not to all the log files in the directory. If you have more than one message database, the maximum size of the managed folder log directory is not the size specified in the LogDirectorySizeLimitForManagedFolders parameter because the managed folder log files that are generated by different databases have different name prefixes. The maximum size of the managed folder log directory will be n times the specified value if you have n message databases.
Note: |
|---|
|
The maximum size of the MRM log directory is calculated as the total size of all log files that have the same name prefix. Other files that do not follow the name prefix convention are not counted in the total directory size calculation. Renaming old log files or copying other files into the message tracking log directory could cause the directory to exceed its specified maximum size.
|
You must specify either an integer or unlimited for the LogDirectorySizeLimitForManagedFolders parameter. When you enter a value, qualify the value with one of the following units:
-
B (bytes)
-
KB (kilobytes)
-
MB (megabytes)
-
GB (gigabytes)
-
TB (terabytes)
Unqualified values are treated as bytes.

To use the Exchange Management Shell to configure the maximum size of the MRM log directory
-
Run the following command:
Set-MailboxServer -Identity <server> -LogDirectorySizeLimitForManagedFolders <size>
For example, to set the MRM log directory size limit to 1 GB on a server named Exchange01, run the following command:
Set-MailboxServer -Identity Exchange01 -LogDirectorySizeLimitForManagedFolders "1 GB"