How to move the Transport Queue to a different location than the default or to an other drive.
Log in as an (local) Administrator
Create the folders where you want to keep the queue database and transaction logs. Make sure that the correct permissions are applied to the folders.
Network Service: Full Control
System: Full Control
Administrators: Full Control
In an elevated Command prompt window, open the EdgeTransport.exe.config file in Notepad by running the following command:
Copy Notepad %ExchangeInstallPath%Bin\EdgeTransport.exe.config
Modify the following keys in the <appSettings> section:
<add key="QueueDatabasePath" value="<LocalPath>" />
<add key="QueueDatabaseLoggingPath" value="<LocalPath>" />
To change the location of the queue database to D:\TransportQueue\QueueDB and the transaction logs to D:\TransportQueue\QueueLogs, use the following values:
<add key="QueueDatabasePath" value="D:\Queue\QueueDB" />
<add key="QueueDatabaseLoggingPath" value="D:\Queue\QueueLogs" />
When you are finished, save and close the EdgeTransport.exe.config file.
Stop the Microsoft Exchange Transport service by running the following command:
net stop MSExchangeTransport
Move the existing database files Mail.que and Trn.chk from the original location to the newlocation.
(D:\TransportQueue\QueueDB)
Move the existing transaction log files Trn.log, Trntmp.log, Trnnnnnn.log, Trnres00001.jrs,Trnres00002.jrs, and Temp.edb from the old location to the new location.(D:\TransportQueue\QueueLogs)
Start the Microsoft Exchange Transport service by running the following command:
net start MSExchangeTransport
If the Transport service doesn't start, chances are you didn't add the "Network Service" with Full Control to the directories.
To verify that you successfully moved the existing queue database and transaction logs to the new location, do the following:
- Verify the queue database files Mail.que and Trn.chk exist at the new location.
- Verify the transaction log files Trn.log, Trntmp.log, Trnres00001.jrs, Trnres00002.jrs, and Temp.edb files exist at the new location.
- Verify there are no queue database or transaction log files at the original location.
No comments:
Post a Comment