Exchange 2013 - relocating MessageTrackingLog directory

I used Powershell to move my messagetrackinglog directory to a partition where I can retain a larger history. The process I used was:
- copy files to new location
  robocopy oldlocation newlocation
- disable tracking
  Set-TransportService <servername> -MessageTrackingLogEnabled $false
- recopy files to new location in case some files were locked first time
  robocopy oldlocation newlocation
- set the new path
  Set-TransportService <servername> -MessageTrackingLogPath "E:\TransportRoles\Logs\MessageTracking"
- re-enable tracking with increased size settings
  Set-TransportService $cn -MessageTrackingLogEnabled $true -MessageTrackingLogMaxAge 365 -MessagetrackinglogMaxDirectorySize 75GB

After this is completed, I verified tracking is working with several get-messagetrackinglogs with the start parameter set to the last minute. I went to delete the files from the old location, and cannot delete the most current MSGTRKDyyyymmdd file. All other files do successfully delete. Watching the old directory, I see that the "D" series of logs is still populating to the old directory!

What did I miss that this log file is still writing to the old location?

Thanks!
Tom

July 7th, 2015 1:19pm

If this is a CAS+Mailbox server, did you make the same changes with Set-FrontEndTransportService?

Free Windows Admin Tool Kit Click here and download it now
July 7th, 2015 3:44pm

Good call, however this is a Mailbox Role only server.

Tom

July 7th, 2015 3:46pm

Did you stop the transport service while making the changes and then restart it?
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2015 3:47pm

No, I did not. Everything I read stated I would not need to. I'll when I can schedule a test.

Tom

July 7th, 2015 5:35pm

In my attempt to move the messagetracking logs, I updated the DIR on 6 of my MB servers.

I just recycled the transport service on 2 of them and still see the "MD" messages accumulating in the original directory.

Tom

Free Windows Admin Tool Kit Click here and download it now
July 8th, 2015 11:49pm

Hi Tom,

Base on my test, we can delete the default message tracking folder through the following method:

  

1.Disable tracking:

Set-TransportService <servername> -MessageTrackingLogEnabled $false

2.Stop Mailbox Transport Delivery & Submission services:

MSGTRKMS log file For sent messages (messages sent from mailboxes by the Mailbox Transport Submission service).

MSGTRKMD log file For received messages. (Messages delivered to mailboxes by the Mailbox Transport Delivery service).

3.Delete the default message tracking folder

  

4.Set the new path:

Set-TransportService <servername> -MessageTrackingLogPath "E:\TransportRoles\Logs\MessageTracking" -MessageTrackingLogMaxFileSize 20MB -MessageTrackingLogMaxDirectorySize 1.5GB -MessageTrackingLogMaxAge 45.00:00:00
Best regards,

July 9th, 2015 4:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics