Applies to: Exchange Server 2013
Topic Last Modified: 2013-02-22
A queue is a temporary holding location for messages that are waiting to enter the next stage of processing. Each queue represents a logical set of messages that a transport server processes in a specific order.
Like the previous versions of Exchange, Microsoft Exchange Server 2013 uses an Extensible Storage Engine (ESE) database for queue message storage. All the different queues are stored in a single ESE database. Queues exist only on Mailbox servers or on Edge Transport servers.
The location of the queue database and the queue database
transaction logs is controlled by keys in the
%ExchangeInstallPath%Bin\EdgeTransport.exe.config
XML
application configuration file. This file is associated with the
Microsoft Exchange Transport service. The following table explains
each key in more detail.
Key | Description |
---|---|
QueueDatabasePath |
This key specifies the location of the queue database files. The files are:
The default location is
|
QueueDatabaseLoggingPath |
This key specifies the location of the queue database transaction log files. The files are:
Note that Temp.edb is used to verify the queue database schema when the Microsoft Exchange Transport service starts. Although Temp.edb isn't a transaction log file, it's kept in the same location as the transaction log files. The default location is
|
What do you need to know before you begin?
- Estimated time to complete: 15 minutes.
- Exchange permissions don't apply to the procedures in this
topic. These procedures are performed in the operating system of
the Exchange Server.
- When you stop or restart the Microsoft Exchange Transport
service, mail flow on the server is interrupted.
- When you change the location of the queue database or the
transaction logs, the existing queue database and transaction log
files aren't moved. A new queue database and new transaction logs
are created at the new location. The existing files are left at the
old location. However, they're no longer used. If you want to reuse
the existing queue database or transaction log files at the new
location, you must move the existing files to the new location
after the Microsoft Exchange Transport service is stopped, but
before the service is started.
- If the target folder for the queue database or transaction logs
doesn't exist, it will be created for you if the parent folder has
the following permissions applied to it:
- Network Service: Full Control
- System: Full Control
- Administrators: Full Control
- Network Service: Full Control
- Any customized per-server settings you make in Exchange XML
application configuration files, for example, web.config files on
Client Access servers or the EdgeTransport.exe.config file on
Mailbox servers, will be overwritten when you install an Exchange
Cumulative Update (CU). Make sure that you save this information so
you can easily re-configure your server after the install. You must
re-configure these settings after you install an Exchange CU.
- For information about keyboard shortcuts that may apply to the
procedures in this topic, see Keyboard Shortcuts in
the Exchange Admin Center.
What do you want to do?
Use the Command Prompt to create a new queue database and transaction logs in a new location
- 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.
- In a Command prompt window, open the EdgeTransport.exe.config
file in Notepad by running the following command:
Copy Code Notepad %ExchangeInstallPath%Bin\EdgeTransport.exe.config
- Modify the following keys in the
<appSettings>
section.
Copy Code <add key="QueueDatabasePath" value="<LocalPath>" /> <add key="QueueDatabaseLoggingPath" value="<LocalPath>" />
Copy Code <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.
- Restart the Microsoft Exchange Transport service by running the
following command:
Copy Code net stop MSExchangeTransport && net start MSExchangeTransport
How do you know this worked?
To verify that you successfully created a new queue database and new transaction logs at a new location, do the following:
- Verify the new database files Mail.que and Trn.chk exist at the
new location.
- Verify the new transaction log files Trn.log, Trntmp.log,
Trnres00001.jrs, Trnres00002.jrs, and Temp.edb files exist at the
new location.
- If you can delete the old queue database and transaction log
files from the old location after the Microsoft Exchange Transport
service has started, those files are no longer being used.
Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection
Use the Command Prompt to move the existing queue database and transaction logs to a new location
Only disaster recovery scenarios where the Microsoft Exchange Transport service wasn't shut down correctly or a hard disk drive failure would require that you restore and relocate an existing queue database and its existing transaction logs.
Under ordinary circumstances, you shouldn't have to reuse existing transaction logs. An ordinary shutdown of the Microsoft Exchange Transport service writes all uncommitted transaction log entries to the queue database. And, circular logging is used, so transaction logs that contain previously committed database changes aren't preserved.
Use the following procedure to move the existing queue database and transaction logs at a new location:
- 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.
- In a Command prompt window, open the EdgeTransport.exe.config
file in Notepad by running the following command:
Copy Code Notepad %ExchangeInstallPath%Bin\EdgeTransport.exe.config
- Modify the following keys in the
<appSettings>
section:
Copy Code <add key="QueueDatabasePath" value="<LocalPath>" /> <add key="QueueDatabaseLoggingPath" value="<LocalPath>" />
Copy Code <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:
Copy Code net stop MSExchangeTransport
- Move the existing database files Mail.que and Trn.chk from the
original location to the new location.
- 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.
- Start the Microsoft Exchange Transport service by running the
following command:
Copy Code net start MSExchangeTransport
How do you know this worked?
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.
Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection