Skip to content

Commit 49ed422

Browse files
committed
Updates based on feedback in PR #1641
1 parent f6decb7 commit 49ed422

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

docs/rabbitmqctl.8

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,11 @@ to the node
433433
.Dl rabbitmqctl rename_cluster_node rabbit@misshelpful rabbit@cordelia
434434
.Pp
435435
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,
437437
and to configure the new node name.
438438
For example:
439439
.sp
440-
.Bl -bullet -compact
440+
.Bl -enum -compact
441441
.It
442442
Stop the node:
443443
.sp
@@ -449,15 +449,24 @@ Rename the node in the local database:
449449
.Dl rabbitmqctl rename_cluster_node rabbit@misshelpful rabbit@cordelia
450450
.sp
451451
.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
457465
.sp
458466
.It
459-
Rename the node in
467+
If you have
460468
.Ar /etc/rabbitmq/rabbitmq-env.conf
469+
and configured the node name there, update this configuration.
461470
.sp
462471
.It
463472
Start the node when ready

0 commit comments

Comments
 (0)