<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JasonSamuel.com &#187; MSMQ</title>
	<atom:link href="http://www.jasonsamuel.com/tag/msmq/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonsamuel.com</link>
	<description>Cool stuff I see in the IT world</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:05:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>MSMQ messages stuck in the outgoing queue after cloning servers</title>
		<link>http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers</link>
		<comments>http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 18:52:48 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[MSMQ]]></category>
		<category><![CDATA[Windows Server 2000]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=471</guid>
		<description><![CDATA[Always remember to sysprep when cloning a node! MSMQ (Microsoft Message Queuing) uses a registry valued called QMId located at: HKLM\Software\Microsoft\MSMQ\Parameters\Machine Cache which has to be unique on all your servers or it will cause all sorts of issues. Sysprepping a server generates a new SID which also generates a new QMId in the process. [...]<p><a href="http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/">MSMQ messages stuck in the outgoing queue after cloning servers</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>

More of my posts you might like:<ol>
<li><a href='http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/' rel='bookmark' title='How to install and configure SNMP via command line on your servers'>How to install and configure SNMP via command line on your servers</a></li>
<li><a href='http://www.jasonsamuel.com/2009/08/07/troubleshooting-net-2-0-and-wmi-perfmon-counters/' rel='bookmark' title='Troubleshooting .NET 2.0 and WMI perfmon counters'>Troubleshooting .NET 2.0 and WMI perfmon counters</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Always remember to sysprep when cloning a node!  MSMQ (Microsoft Message Queuing) uses a registry valued called <strong>QMId</strong> located at:</p>
<p><strong>HKLM\Software\Microsoft\MSMQ\Parameters\Machine Cache</strong></p>
<p>which has to be unique on all your servers or it will cause all sorts of issues. Sysprepping a server generates a new SID which also generates a new QMId in the process.  If you don&#8217;t do this and have multiple servers out there with the same QMId, you will see strange things like messages remaining in the outgoing queue in limbo and sometimes just disappear completely with no trace in journaling anywhere.  Bottom line, don&#8217;t confuse MSMQ!  It&#8217;s fragile!</p>
<p>Thankfully John Breakwell (MSMQ guru at Microsoft) blogged about this exact issue which made me realize what was going on in the environment I was troubleshooting.  Well done John!</p>
<p><a href="http://blogs.msdn.com/b/johnbreakwell/archive/2007/02/06/msmq-prefers-to-be-unique.aspx">http://blogs.msdn.com/b/johnbreakwell/archive/2007/02/06/msmq-prefers-to-be-unique.aspx</a></p>
<p>I simply ran sysprep and resealed the clone to fix it.  It automatically generated a new QMId in the process so I didn&#8217;t have to follow the exact steps John had blogged about.  It was a simple mistake which can be avoided in the future by using the Guest Customization Wizard in VC to automatically sysprep when creating the clone.</p>
<p>BTW, you can check if your SIDs are identical on a server by using getsid.exe.  Download the Windows XP Service Pack 2 Support Tools:</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=49AE8576-9BB9-4126-9761-BA8011FABF38&#038;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=49AE8576-9BB9-4126-9761-BA8011FABF38&#038;displaylang=en</a></p>
<p>and use the getsid.exe tool to compare SIDs on your Windows servers.  Usage syntax is here:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc784314%28WS.10%29.aspx">http://technet.microsoft.com/en-us/library/cc784314%28WS.10%29.aspx</a></p>
<p>Since I&#8217;m blogging about MSMQ, let me take a moment to plug QueueExplorer (<a href="http://www.cogin.com/mq">http://www.cogin.com/mq</a>).  This is hands down the best MSMQ management software I have ever used and the developer is very open to feature requests.  Give them some business and tell them Jason sent ya! <img src='http://www.jasonsamuel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Check out a screenshot of it below:</p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/06/queuexplorer.gif"><img src="http://www.jasonsamuel.com/wp-content/uploads/2010/06/queuexplorer-300x207.gif" alt="" title="queuexplorer" width="300" height="207" class="aligncenter size-medium wp-image-476" /></a></p>
<p><a href="http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/">MSMQ messages stuck in the outgoing queue after cloning servers</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
<p>More of my posts you might like:<ol>
<li><a href='http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/' rel='bookmark' title='How to install and configure SNMP via command line on your servers'>How to install and configure SNMP via command line on your servers</a></li>
<li><a href='http://www.jasonsamuel.com/2009/08/07/troubleshooting-net-2-0-and-wmi-perfmon-counters/' rel='bookmark' title='Troubleshooting .NET 2.0 and WMI perfmon counters'>Troubleshooting .NET 2.0 and WMI perfmon counters</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.jasonsamuel.com @ 2012-02-09 17:43:41 -->
