Due to some problems we changed server name and after doing this we restarted server. We found that rabbitmq service stopped and we started rabbitmq service but we lost total data related to rabbitmq and it is looking like we setup new one and cluster name also changed to new server name. Now i want to switch back to my old cluster or i want to retrieve old data. We are using windows server 2012. How to do this?
Asked
Active
Viewed 233 times
0
-
Which OS are you using? – Gabriele Santomaggio May 07 '16 at 07:40
-
Windows sever 2012 – Mahesh kumar Chiliveri May 07 '16 at 08:12
1 Answers
1
RabbitMQ by default, stores the data inside an directory based on hostname.
The default dir in widows is:
C:\Users\{youruser}\AppData\Roaming\RabbitMQ\db
In my case for example is:
C:\Users\gabriele\AppData\Roaming\RabbitMQ\db\rabbit@windowsdev-mnesia
and
C:\Users\gabriele\AppData\Roaming\RabbitMQ\db\rabbit@windowsdev-plugins-expand
Now you should have 2 directories inside C:\Users\{youruser}\AppData\Roaming\RabbitMQ\db
with old-hostname and new-hostname.
You can:
- stop rabbitmq
- backup your old-hostname directory
- delete the new-hostname directory
- rename the old-hostname directory with the new-hostname
I think that you still have your data in your server.
LEt me know.

Gabriele Santomaggio
- 21,656
- 4
- 52
- 52
-
As there was no time in experimenting this solution, we asked to team to revert the host name to old host name. After changing the host name i have restarted the rabbitmq server then it worked. I think your solution will work. – Mahesh kumar Chiliveri May 09 '16 at 06:33