<html><head></head><body bgcolor="#FFFFFF"><div>Hi</div><div><br>On 2 Apr 2013, at 19:44, Kapil Goyal <<a href="mailto:goyalk@vmware.com">goyalk@vmware.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 12 (filtered medium)"><base href="x-msg://986/"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">So, RabbitMQ does not really support change in hostname at all without losing existing data. Is that correct?<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p></div></div></blockquote><div><br></div><div>Erm not quite - if you copy/rename the mnesia directory you can work around this. The node name is dev1 then you can rename/move directories to something else (or override directory names to use something that isn't bound to the node name if you prefer). I don't see how your proposed use of a</div><div>Random stein would make any different though. </div><br><blockquote type="cite"><div><div class="WordSection1"><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com">rabbitmq-discuss-bounces@lists.rabbitmq.com</a> [mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com] <b>On Behalf Of </b>Tim Watson<br><b>Sent:</b> Tuesday, April 02, 2013 4:31 AM<br><b>To:</b> Discussions about RabbitMQ<br><b>Cc:</b> Discussions about RabbitMQ<br><b>Subject:</b> Re: [rabbitmq-discuss] Configuring RabbitMQ to support change in hostname<o:p></o:p></span></p></div></div><p class="MsoNormal"><o:p> </o:p></p><div><p class="MsoNormal"><span class="apple-style-span">On 29 Mar 2013, at 23:18, Kapil Goyal <<a href="mailto:goyalk@vmware.com">goyalk@vmware.com</a>> wrote:</span><o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> am thinking of solving it by replacing rabbit@localhost with rabbit@<random string> before RabbitMQ starts for the first time. Does <random string> have to be DNS resolvable?</span><o:p></o:p></p></div></blockquote><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal">Yes. It needs to be the proper hostname for the node.<o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><p class="MsoNormal"><br><br><o:p></o:p></p><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com">rabbitmq-discuss-bounces@lists.rabbitmq.com</a> [<a href="mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com">mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com</a>] <b>On Behalf Of </b>Dushin Fred<br><b>Sent:</b> Thursday, March 28, 2013 6:44 PM<br><b>To:</b> Discussions about RabbitMQ<br><b>Subject:</b> Re: [rabbitmq-discuss] Configuring RabbitMQ to support change in hostname</span><o:p></o:p></p></div></div><p class="MsoNormal"> <o:p></o:p></p><p class="MsoNormal">See<o:p></o:p></p><div><p class="MsoNormal"> <o:p></o:p></p></div><div><p class="MsoNormal"><a href="http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2013-February/025368.html">http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2013-February/025368.html</a><o:p></o:p></p><div><div><p class="MsoNormal"> <o:p></o:p></p></div><div><p class="MsoNormal"> <o:p></o:p></p><div><div><p class="MsoNormal">On Mar 28, 2013, at 4:53 PM, Kapil Goyal <<a href="mailto:goyalk@vmware.com">goyalk@vmware.com</a>> wrote:<o:p></o:p></p></div><p class="MsoNormal"><br><br><br><o:p></o:p></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">RabbitMQ creates a new database if hostname is changed (as documented at<span class="apple-converted-space"> </span><a href="http://www.rabbitmq.com/ec2.html"><span style="color:purple">http://www.rabbitmq.com/ec2.html</span></a>).</span><o:p></o:p></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><o:p></o:p></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">I need to support the hostname change on my RabbitMQ server without impacting its functioning. Can I accomplish this by setting the NODENAME environment variable in rabbitmq-env.conf. It seems from rabbitmq-server script that names of database, logs etc. try to use this variable before resorting to using hostname. Is this the right approach? Are there any side-effects to look out for?</span><o:p></o:p></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><o:p></o:p></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Thanks</span><o:p></o:p></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Kapil Goyal</span><o:p></o:p></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Sr. MTS</span><o:p></o:p></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">VMware Inc.</span><o:p></o:p></p></div><p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Verdana","sans-serif"">_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com"><span style="color:purple">rabbitmq-discuss@lists.rabbitmq.com</span></a><br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"><span style="color:purple">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</span></a></span><o:p></o:p></p></div></div><p class="MsoNormal"> <o:p></o:p></p></div></div></div></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal">_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><o:p></o:p></p></div></blockquote></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rabbitmq-discuss mailing list</span><br><span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></span><br><span><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></span><br></div></blockquote></body></html>