Skip to content

Commit ac5db6f

Browse files
authored
Merge pull request #1641 from blgm/rename_node_docs_improvement
Additional info for `rabbitmqctl rename_cluster_node` man page
2 parents f1c720f + 49ed422 commit ac5db6f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docs/rabbitmqctl.8

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,46 @@ to the node
431431
.Qq rabbit@cordelia
432432
.sp
433433
.Dl rabbitmqctl rename_cluster_node rabbit@misshelpful rabbit@cordelia
434+
.Pp
435+
Note that this command only changes the local database.
436+
It may also be necessary to rename the local database directories,
437+
and to configure the new node name.
438+
For example:
439+
.sp
440+
.Bl -enum -compact
441+
.It
442+
Stop the node:
443+
.sp
444+
.Dl rabbitmqctl stop rabbit@misshelpful
445+
.sp
446+
.It
447+
Rename the node in the local database:
448+
.sp
449+
.Dl rabbitmqctl rename_cluster_node rabbit@misshelpful rabbit@cordelia
450+
.sp
451+
.It
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
465+
.sp
466+
.It
467+
If you have
468+
.Ar /etc/rabbitmq/rabbitmq-env.conf
469+
and configured the node name there, update this configuration.
470+
.sp
471+
.It
472+
Start the node when ready
473+
.El
434474
.\" ------------------------------------
435475
.It Cm update_cluster_nodes Ar clusternode
436476
.Bl -tag -width Ds

0 commit comments

Comments
 (0)