Microsoft KB Archive/326472

= XADM: How to Manually Set File Paths Without Using Performance Optimizer =

Article ID: 326472

Article Last Modified on 10/28/2006

-

APPLIES TO


 * Microsoft Exchange Server 5.5 Standard Edition

-



This article was previously published under Q326472



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
This article describes how to use Registry Editor (Regedit.exe) to set file paths and file locations directly instead of by using Performance Optimizer.

One of the functions of the Exchange Performance Optimizer (Perfwiz.exe) is to test hard drives that are attached to an Exchange Server computer. Performance Optimizer can also make recommendations about the optimal placement of Exchange Server database files, transaction log files, and message transport files. An administrator can override these recommendations.



MORE INFORMATION
You can use Performance Optimizer to modify six file system paths. When you use Performance Optimizer to modify these paths, the existing files are automatically moved to the new locations. However, if you manually edit paths in the registry, you must manually move the files from their current locations to the new locations. You can use one of two methods to manually modify the file system paths.

Method 1
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

 Stop the Exchange System Attendant service. This will stop the Directory service, the Information Store service, and the Message Transfer Agent service. Start Registry Editor (Regedit.exe). To change the Private Information Store (Priv.edb) path, modify the DB Path value under the following key in the registry:

'''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

\MSExchangeIS\ParametersPrivate'''

 To change the Public Information Store (Pub.edb file) path, modify the DB Path value under the following key in the registry:

'''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

\MSExchangeIS\ParametersPublic'''

 To change the Information Store Logs (Edb*.log files) path, modify the DB Log Path value under the following key in the registry:

'''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

\MSExchangeIS\ParametersSystem'''

 To change the Directory Service (Dir.edb file) path, modify the DSA Database file value under the following key in the registry:

'''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

\MSExchangeDS\Parameters'''

</li> To change the Directory Service Logs (Edb*.log files) path, modify the Database log files path value under the following key in the registry:

'''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

\MSExchangeDS\Parameters'''

</li> To change the Message Transfer Agent (MTA) (*.dat files) path, modify the MTA database path value under the following key in the registry:

'''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

\MSExchangeMTA\Parameters'''

IMPORTANT: MTA files are categorized as either Database or Run files. When Exchange Server is initially installed, both Database and Run files are stored in the same folder together. You can use Performance Optimizer to separate the Database files from the Run files. You may want to separate the Database files from the Run files on high traffic systems because the Database files contain all the messages that are awaiting delivery or routing through the server, and the file set can become very large.

The Database files include all files that have the extension .dat. Move only these files after you edit the MTA database path registry value.

If you want to move the Run files, keeping them with the Database files, you must also modify the MTA Run Directory registry value to match the MTA database path registry value.

For additional information about the MTA Database files and MTA Run files, click the article number below to view the article in the Microsoft Knowledge Base:

282780 XCON: MTA Database Format and Structure

</li> Quit Registry Editor.</li> Move the Exchange Server files from their old locations to the new locations.</li> Restart all Exchange Server services.</li></ol>

Method 2
You can copy the Registry import text in this section to a plain text file, and then use that text file to edit all of the file system paths at the same time. Name the plain text file Import.reg. After you save the file with the correct information for your system, open Windows Explorer and double-click the file to import it into the registry.

If you are importing the file to the registry of a Windows NT 4 server, replace the line Windows Registry Editor Version 5.00 in the following text with Regedit4.

<pre class="fixed_text">Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersPrivate] &quot;DB Path&quot;=&quot;d:\\exchsrvr\\mdbdata\\PRIV.EDB&quot;

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersPublic] &quot;DB Path&quot;=&quot;d:\\exchsrvr\\mdbdata\\PUB.EDB&quot;

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem] &quot;DB Log Path&quot;=&quot;d:\\exchsrvr\\mdbdata&quot;

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeDS\Parameters] &quot;DSA Database file&quot;=&quot;d:\\exchsrvr\\dsadata\\dir.edb&quot; &quot;Database log files path&quot;=&quot;d:\\exchsrvr\\dsadata&quot;

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeMTA\Parameters] &quot;MTA Run Directory&quot;=&quot;d:\\exchsrvr\\mtadata&quot; &quot;MTA database path&quot;=&quot;d:\\exchsrvr\mtadata&quot; NOTE: Double backslashes (\\) are used to designate file paths in a Registry import file. For example, you must type the file path D:\Exchsrvr\Mtadata as D:\\Exchsrvr\\Mtadata. If you do not format all of the backslashes correctly, the path change does not take effect.

To verify that the path changes were effective, run Performance Optimizer in read-only mode (Perfwiz.exe -R). This displays the current file paths and other tuning settings for Exchange Server. When you use Performance Optimizer with the -R switch, Performance Optimizer cannot make any changes to your Exchange Server system, and you do not have to stop Exchange Server services to run it.

For the best results, Microsoft recommends that you change only drive letters and leave the rest of the original folder path intact, so that files are located in paths where personnel who may be unfamiliar with your file system expect those files to be.

Keywords: kbinfo KB326472

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.