@@ -433,11 +433,11 @@ to the node
433
433
.Dl rabbitmqctl rename_cluster_node rabbit@misshelpful rabbit@cordelia
434
434
.Pp
435
435
Note that this command only changes the local database.
436
- It is also necessary to rename the local database directories,
436
+ It may also be necessary to rename the local database directories,
437
437
and to configure the new node name.
438
438
For example:
439
439
.sp
440
- .Bl -bullet -compact
440
+ .Bl -enum -compact
441
441
.It
442
442
Stop the node:
443
443
.sp
@@ -449,15 +449,24 @@ Rename the node in the local database:
449
449
.Dl rabbitmqctl rename_cluster_node rabbit@misshelpful rabbit@cordelia
450
450
.sp
451
451
.It
452
- Rename the local database directories:
453
- .sp
454
- .Dl mv /var/lib/rabbitmq/mnesia/rabbit \\@ misshelpful /var/lib/rabbitmq/mnesia/rabbit \\@ cordelia
455
- .Dl mv /var/lib/rabbitmq/mnesia/rabbit \\@ misshelpful-rename /var/lib/rabbitmq/mnesia/rabbit \\@ cordelia-rename
456
- .Dl mv /var/lib/rabbitmq/mnesia/rabbit \\@ misshelpful-plugins-expand /var/lib/rabbitmq/mnesia/rabbit \\@ cordelia-plugins-expand
452
+ Rename the local database directories (note, you do not need to do this if you have set the RABBITMQ_MNESIA_DIR environment variable):
453
+ .sp
454
+ .Bd -literal -offset indent -compact
455
+ mv \\
456
+ /var/lib/rabbitmq/mnesia/rabbit\\@ misshelpful \\
457
+ /var/lib/rabbitmq/mnesia/rabbit\\@ cordelia
458
+ mv \\
459
+ /var/lib/rabbitmq/mnesia/rabbit\\@ misshelpful-rename \\
460
+ /var/lib/rabbitmq/mnesia/rabbit\\@ cordelia-rename
461
+ mv \\
462
+ /var/lib/rabbitmq/mnesia/rabbit\\@ misshelpful-plugins-expand \\
463
+ /var/lib/rabbitmq/mnesia/rabbit\\@ cordelia-plugins-expand
464
+ .Ed
457
465
.sp
458
466
.It
459
- Rename the node in
467
+ If you have
460
468
.Ar /etc/rabbitmq/rabbitmq-env.conf
469
+ and configured the node name there, update this configuration.
461
470
.sp
462
471
.It
463
472
Start the node when ready
0 commit comments