<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div><br></div><div>I'm trying to find out if it is possible to create a rabbitmq cluster for an existing production instance with data on it. The reason is because I'm starting with only 1 server for the start and would like to expand to a 2 server cluster only in the future. I'm currently using RabbitMQ 3.2.1 on Erlang R16B02 on Windows 7.<div><div><div><br></div><div>What I did is:</div><div><br></div><div>1. Issue rabbitmqctl stop_app, rabbitmqctl reset, rabbitmqctl stop on both nodes.</div><div>2. Add auto-config to rabbitmq.config on both nodes: {cluster_nodes, {['rabbit@existing-machine', 'rabbit@new-machine'], disc}}</div><div>3. Start rabbitmq service on <span style="font-size: 12pt;">rabbit@new-machine followed by </span><span style="font-size: 12pt;">rabbit@existing-machine</span></div></div></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">After that, the cluster is successfully created, however, all existing data, e.g. virtual hosts, users, etc, is erased from the 2 nodes.</span></div><div><span style="font-size: 12pt;"><br></span></div><div>cluster_status result from new-machine:</div><div><br></div><div><span style="font-size: 12pt;"><div>C:\Program Files\RabbitMQ Server\rabbitmq_server-3.2.1\sbin>rabbitmqctl cluster_</div><div>status</div><div><div>Cluster status of node rabbit@new-machine ...</div><div>[{nodes,[{disc,[rabbit@new-machine,rabbit@existing-machine]}]},</div><div> {running_nodes,[rabbit@existing-machine,rabbit@new-machine]},</div><div> {partitions,[]}]</div><div>...done.</div></div></span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Rgds,</span></div><div><span style="font-size: 12pt;">Joshua</span></div></div> </div></body>
</html>