Microsoft KB Archive/884971

= How to migrate Message Queuing controller servers to a Windows Server 2003 domain Microsoft Message Queuing =

Article ID: 884971

Article Last Modified on 4/20/2005

-

APPLIES TO

 Microsoft Message Queuing 3.0 Microsoft Message Queuing 2.0 Microsoft Message Queue Server 1.0, when used with:  Microsoft Windows Server 2003, Standard Edition (32-bit x86)

 Microsoft Windows NT 4.0 

-

<div class="notice_section">

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

<div class="summary_section">

SUMMARY
This article describes the concepts and the technical procedures that are involved in the migration process for your Microsoft Windows NT 4.0 Microsoft Message Queuing 1.0 controller servers to a Microsoft Windows Server 2003 domain environment.

<div class="summary_section">

INTRODUCTION
This article describes the migration process that you can use to upgrade a large Message Queuing 1.0 installation to a Windows Server 2003 environment. A large installation is defined as follows:
 * An installation that has many Message Queuing clients, many Message Queuing servers, or many public queues
 * An installation that makes it cost prohibitive to re-create the Message Queuing deployment after the upgrade to Windows Server 2003

If your Message Queuing infrastructure does not fit in this large installation category, we recommend that you dismantle your Message Queuing 1.0 installation before you upgrade. Then, create a clean Message Queuing 3.0 deployment on Windows Server 2003. However you decide to upgrade your Message Queuing 1.0 installation, the migration process is always supported.

<div class="moreinformation_section">

MORE INFORMATION
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.

Message Queuing 1.0 uses a different Active Directory directory service than the following:
 * Message Queuing 2.0
 * Message Queuing 3.0

Message Queuing 1.0 uses an SQL server-based Active Directory directory service that is named &quot;MSMQ Information Store&quot; (MQIS). MQIS maintains the configuration information for all Message Queuing 1.0 objects. This includes queues, computers, and users. Message Queuing 1.0 controllers each hold a copy of MQIS. The copy of MQIS is made up of the following for the Message Queuing 1.0 enterprise:
 * The primary enterprise controller (PEC)
 * The primary site controllers (PSCs)
 * The back-up site controllers (BSCs)

The copy of MQIS is fully replicated among controllers by using a custom Message Queuing 1.0 replication algorithm.

Message Queuing 2.0 and Message Queuing 3.0 do not use MQIS to store the Message Queuing configuration information. Instead, Message Queuing 2.0 and Message Queuing 3.0 use the Active Directory directory service. Information about Message Queuing 2.0 and Message Queuing 3.0 is stored in specific Message Queuing objects and in the Active Directory directory service objects that are not specific to Message Queuing.

Both Message Queuing 2.0 and Message Queuing 3.0 use the Active Directory directory service. However, the migration and the upgrade of the Message Queuing 1.0 enterprise to Message Queuing 2.0 in a Microsoft Windows 2000 environment is very different compared to the process of migrating the Message Queuing 1.0 controller servers in a Windows NT 4.0 enterprise to a Windows Server 2003 domain environment. For example, when you upgrade from Message Queuing 1.0 in Windows NT 4.0 to Message Queuing 2.0 in Windows 2000, a transitional mode that is known as &quot;mixed-mode environment&quot; is supported. Although not intended as a final deployment strategy, there is full support for &quot;mixed-mode environment&quot; that permits the Message Queuing 1.0 controller servers to co-exist in the same enterprise with the Message Queuing 2.0 servers. Therefore, both Message Queuing 1.0 clients and Message Queuing 2.0 clients are supported. The Message Queuing replication service is used to keep MQIS in synchronization with the Active Directory directory service in &quot;mixed-mode environment.&quot;

The migration process for Message Queuing 1.0 controller servers in a Windows NT 4.0 enterprise to a Windows Server 2003 domain no longer supports &quot;mixed-mode environment&quot; deployment. The Message Queuing replication service no longer exists. This means that a configuration of the Message Queuing 1.0 controller servers that are running on Windows NT 4.0 computers with Message Queuing 3.0 domain controllers in a Windows Server 2003 domain environment is not supported. This limitation does not affect client support. Message Queuing 1.0 clients are supported in a Windows Server 2003 domain environment. Message Queuing 3.0 clients can exist in a Windows NT 4.0 Message Queuing enterprise.

Pre-migration process requirements

 * Before you start the migration process, you must upgrade your Windows NT 4.0 domain to a Windows Server 2003 domain. For more information about this upgrade, see the online Active Directory directory service Help for computers that are running Windows Server 2003. To open the Active Directory directory service Help on a domain controller, follow these steps:
 * Click Start, point to Administrative Tools, and then click Active Directory Users and Computers.
 * Click Help on the toolbar.
 * You must run the Migration Tool Wizard from a Message Queuing 3.0 server that is installed on a Windows Server 2003 domain controller that belongs to the root domain. This is the first domain that is created in the Active Directory directory service forest. This domain controller must be configured as a global catalog server.
 * The Message Queuing server that is used to run the Migration Tool Wizard must have the &quot;Downlevel Client Support&quot; component installed and enabled. This component enables the Message Queuing 3.0 server to provide directory service support for Message Queuing 1.0 clients. For instructions about how to install this component, see Message Queuing 3.0 online Help. To open Message Queuing 3.0 online Help on a computer that has Message Queuing 3.0 installed follow these steps:
 * Click Start, right-click My Computer, and then click Manage.
 * In the Computer Management window, expand Services and Applications, and then right-click Message Queuing.
 * Click Help.
 * Make sure that you do not have any Active Directory directory service sites that are configured with the same names as the Message Queuing 1.0 MQIS sites. If you do, you must rename the Active Directory directory Service sites. Otherwise, the Migration Tool Wizard cannot migrate those MQIS site objects to the Active Directory directory service.
 * You cannot migrate multiple Message Queuing 1.0 enterprises to a single Active Directory directory service. Each Message Queuing 1.0 enterprise must be migrated to a distinct Windows Server 2003 forest.
 * You must only run the Migration Tool Wizard against Message Queuing 1.0 PEC computers. As part of the migration process, all Message Queuing 1.0 controller servers that include PEC, PSCs, and BSCs are demoted to Message Queuing 1.0 computers with routing enabled.

Migration process overview
After your Windows NT 4.0 domain has been upgraded to a Windows Server 2003 domain, do the following to migrate your Message Queuing 1.0 controller servers in a Windows NT 4.0 enterprise to a Windows Server 2003 domain environment:
 * Verify that all pre-migration process requirements have been met before you start the migration process. For additional information, see the &quot;Pre-migration process requirements&quot; section.
 * Stop the Message Queuing service and its dependent services on all Message Queuing 1.0 controller servers before you run the Migration Tool Wizard.
 * Decide how the Migration Tool Wizard must be configured to run. For addition information, see the &quot;Configure the Migration Tool Wizard options&quot; section.
 * To run the Migration Tool Wizard, follow these steps:
 * View the logging options that you can select to help you monitor and to help you troubleshoot the migration process.
 * Analyze the MQIS database before you start the migration process.
 * Copy all MQIS objects to the Active Directory directory service. After this stage of the migration process is complete, you can select to continue the rest of the migration process that includes updating registry information about all Message Queuing 1.0 controller servers and clients. Or, you can select to temporarily skip the rest of the steps in the Migration Tool Wizard and exit the wizard without updating registry values. For additional information about this option, see the &quot;Set up a test migration process&quot; section.
 * Update the client registries, and then update the server registries with a new Message Queuing server list.
 * Modify the registries of all Message Queuing 1.0 controller servers that include PEC, PSCs, and BSCs to demote them to computers that are running Message Queuing 1.0 with routing enabled.

After the registry updates are completed, you must restart your computers to enable the registry changes. For additional information about each step of the migration process, see the sections that follow.

Configure the Migration Tool Wizard options
The Migration Tool Wizard must be run from a Windows Server 2003 domain controller in the Active Directory directory service root domain. You must have &quot;Enterprise Administrator&quot; permissions to run the Migration Tool Wizard. To run the Migration Tool Wizard, type the following at the command line:

%sysroot\system 32\mqmig.exe

You can run the Migration Tool Wizard with the following options:

Mqmig [/?] [/c /s]

Note Mqmig Help shows other syntax options, including /u and /r. However, these are not relevant and are not supported when you migrate Message Queuing 1.0 controller servers to a Windows Server 2003 domain environment.

Specify logging options
You can specify logging options to track and to troubleshoot the migration process. Logging options follow: {|
 * width="50%"|

Logging option

 * width="50%"|

Details

 * Error
 * Logs error events in the migration log file
 * Warning and error
 * Logs warning and error events in the migration log file
 * Trace, warning, and error
 * Logs trace events, warning events, and error events in the migration log file
 * All events
 * Logs all events in the migration log file
 * Disable event logging
 * No information is logged in the migration log file.
 * }
 * Logs all events in the migration log file
 * Disable event logging
 * No information is logged in the migration log file.
 * }
 * }

After you specify logging options, all stages of the migration process are logged. By default, the migration log file is at the following location:

%sysroot\system 32\mqmig.log

The migration log file has the following information:
 * Phase

Tells you the stage when the migration event is issued
 * Start time

Tells you the time that logging began for a particular phase
 * End time

Tells you the time that logging ended for a particular phase
 * Event and error details

Information depends on what logging options you choose

Copy MQIS objects to the Active Directory directory service
MQIS uses a single-master replication paradigm. Every object is owned by a single MQIS server, and that server alone can write to the object. The PEC owns the following:
 * The enterprise object
 * The user objects
 * The connected network objects
 * The site objects
 * The site link objects

The computer and the queue objects are owned by the PSC in whose site they reside. Alternatively, the computer and the queue objects can be owned by the PEC if they are in the same site as the PEC.

When a Message Queuing 1.0 application makes a call to modify an object, the Message Queuing 1.0 runtime contacts a local MQIS server in the site. If this local MQIS server does not own the object in question, the local MQIS server passes the request to the server that owns the object. The server that owns the object does the modification locally. The MQIS server that owns the object replicates the changes to all PSCs and the PEC. The PSCs and the PEC in turn replicate the changes to all their BSCs.

For Message Queuing 2.0 and for Message Queuing 3.0 in a domain environment, one or more Message Queuing objects is created in the Active Directory directory service. This behavior occurs when a component is added to the domain. This is true except for a dependent client. Unlike MQIS, configuration information is also stored in some non-specific Message Queuing objects. The first step in the migration process copies Message Queuing 1.0 MQIS objects to the Active Directory directory service. When these objects are copied, there may not be an exact one-to-one correlation between the MQIS objects and the Active Directory directory service objects. The equivalent Active Directory directory service object may not exist. Or, an MQIS object may be copied to the Active Directory directory service object with additional properties and with additional features. The following table provides details about how MQIS objects are copied to the Active Directory directory service.

Set up a test migration process
After the MQIS objects have been copied to the Active Directory directory service, you may want to skip the rest of the migration process. Instead, you may want to do some testing or some configuring before you run the part of the wizard that updates all the controller servers and the client registries. You may want to do this to for the following reasons:
 * To test the new Active Directory directory service configuration

You can manually update one or two client computers to point at the new Message Queuing 3.0 server for the Active Directory directory service queries. You want to do this manual update so that the client computers do not point to the MQIS server. You want to do this so that you can test that queries are being resolved correctly.

Note MQIS sites do not have subnets that are defined. If you want to configure the Active Directory directory service Message Queuing 3.0 domain controller in every copied MQIS site, you must configure subnets for MQIS sites. You configure subnet for MQIS sites after they have been copied to the Active Directory directory service.
 * To optimize the client configuration

If your environment is likely to have heavy query traffic in the Active Directory directory service, you might want to configure the Active Directory directory service Message Queuing 3.0 server in every migrated Windows NT 4.0 site. The heavy traffic is a result of communication between the Message Queuing 1.0 client computers and the Message Queuing 3.0 domain controller that provides the Active Directory directory service. An example of this is an environment where there are many public queues. You may want to do this configuration change to provide a more efficient response for the Message Queuing 1.0 client computers.

When the Migration Tool Wizard finishes the registry updates, each client computer has a list of the Active Directory directory service Message Queuing 3.0 servers in the Windows Server 2003 forest. At first, the Message Queuing 1.0 client computers query a server in the list at random. However, in about a week, clients automatically update their server list. Clients use the Active Directory directory service Message Queuing 3.0 server that you configure in their site for more efficiency and for better response time.

You want to set up a test configuration after the MQIS objects are successfully copied to the Active Directory directory service. Select the option in the Migration Tool Wizard to skip the next steps and then exit the Migration Tool Wizard. Then, manually update one or two Message Queuing 1.0 client computer registries so that they no longer reference the MQIS server. The Message Queuing 1.0 client computer registries must reference the Message Queuing 3.0 server for the Active Directory directory service queries. To do this, follow these steps:
 * 1) Specify the Message Queuing 3.0 server in the   registry value in the following:


 * 1) Make sure that the Message Queuing 1.0 client computer correctly queries the new Message Queuing 3.0 server.
 * 2) Run the Migration Tool Wizard again to complete the registry updates for the remaining Message Queuing 1.0 clients and for the controller servers.

Update the registry
After the Message Queuing 1.0 MQIS objects are copied to the Active Directory directory service, the next part of the migration process includes the following remote registry updates:
 * The next part of the migration process makes sure that client computers no longer try to create objects by using the former MQIS servers. To do this, the Migration Tool Wizard identifies all relevant Message Queuing servers. The relevant Message Queuing servers are Windows Server 2003 domain controllers that run Message Queuing and are enabled to provide Active Directory directory services support. The Migration Tool Wizard sets the  registry key of the client computers. The   registry key is set to obtain a list of the relevant Message Queuing servers that are Windows Server 2003 domain controllers in the Windows Server 2003 forest according to their site location.
 * The migration process then demotes all migrated Message Queuing 1.0 controller servers to Message Queuing 1.0 computers with routing enabled. This makes sure that these controller servers no longer respond to client requests to modify the MQIS object.

If this remote registry update fails, information is added to the log so that you know the details of the failure. On the computer that is running the Migration Tool Wizard, the  registry key indicates whether the update registry part of the Migration Tool Wizard runs successfully. You can find the  registry key at the following location:

The next time that you run the Migration Tool Wizard, only the registry values are updated.

Important The copy part does not run again if it has been successfully run before. If you only want to run the copy part of the Migration Tool Wizard, the MQIS environment must remain static until the migration process is complete, and the registries are updated.

In the following cases you may have to update the client registries manually:
 * If there are Message Queuing computers in a Windows 2000 cluster or in a Windows Server 2003 cluster
 * If there is a firewall between two sites

Summary
For a successful migration process, verify that you do the following:
 * Upgrade your Windows NT 4.0 domain to a Windows Server 2003 domain before you start the migration process.
 * Stop the Message Queuing service and its dependent services on all Message Queuing 1.0 controller servers before you run the Migration Tool Wizard.
 * Run the Migration Tool Wizard from a Windows Server 2003 domain controller with global catalog enabled. The Windows Server 2003 domain controller must belong to the root domain. The root domain is the first domain that is created in the Active Directory directory service forest. The Windows Server 2003 domain controller must have Message Queuing 3.0 installed with the &quot;Downlevel Client Support&quot; component.
 * Do not try to migrate multiple Message Queuing 1.0 enterprises to a single Active Directory directory service.
 * Rename the Active Directory directory service sites if they are configured with the same names as the Message Queuing 1.0 MQIS sites that are migrated.
 * Run the Migration Tool Wizard on Message Queuing 1.0 PEC computers only.
 * Enable logging in the Migration Tool Wizard. This lets you track migration issues and troubleshoot migration issues.
 * Exit the Migration Tool Wizard after the MQIS objects are copied to the Active Directory directory service. You do this to test the new configuration. Then, manually update one or two Message Queuing 1.0 clients to point at the Active Directory directory service Message Queuing 3.0 server. Verify whether queries are resolved as you expect. Then, rerun the Migration Tool Wizard to update client registries and to update server registries.

Message Queuing technology lets applications that run at different times to communicate across heterogeneous networks and to communicate with systems that may be temporarily offline. Message Queuing provides message delivery, more efficient routing, enhanced security, and priority-based messaging. Message Queuing can be used to implement solutions for asynchronous messaging scenarios and for synchronous messaging scenarios.

<div class="references_section">