I want to change the Rabbitmq MNESIA dir to /disk
folder instead of default /var/lib
. I did the change in /usr/lib/rabbitmq/bin
at rabbitmq-env
with
RABBITMQ_MNESIA_BASE=/disk/rabbitmq/
RABBITMQ_LOG_BASE=/disk/rabbitmq/log/
And after restarting it with
service rabbitmq-server restart
Restarting rabbitmq-server (via systemctl): [ OK ]
But when i check the status as
> service rabbitmq-server status
WARNING: Removing trailing slash from RABBITMQ_MNESIA_BASE
WARNING: Removing trailing slash from RABBITMQ_MNESIA_BASE
Status of node 'rabbit@ip-10-03-209-294' ...
Error: unable to connect to node 'rabbit@ip-10-03-209-294': nodedown
DIAGNOSTICS
===========
attempted to contact: ['rabbit@ip-10-03-209-294']
rabbit@ip-10-03-209-294:
* connected to epmd (port 4369) on ip-10-03-209-294
* epmd reports: node 'rabbit' not running at all
no other nodes on ip-10-03-209-294
* suggestion: start the node
current node details:
- node name: 'rabbitmq-cli-61@10-03-209-294'
- home dir: /var/lib/rabbitmq
- cookie hash: D1JxYyl9vuDgVmH5K4dGyQ==
After removing all the changes ,it is working fine.But i want the MNESIA dir to be /disk. I restarted the instance as well.