File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -431,6 +431,47 @@ 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
453+ if you have set the RABBITMQ_MNESIA_DIR environment variable):
454+ .sp
455+ .Bd -literal -offset indent -compact
456+ mv \\
457+ /var/lib/rabbitmq/mnesia/rabbit\\@ misshelpful \\
458+ /var/lib/rabbitmq/mnesia/rabbit\\@ cordelia
459+ mv \\
460+ /var/lib/rabbitmq/mnesia/rabbit\\@ misshelpful-rename \\
461+ /var/lib/rabbitmq/mnesia/rabbit\\@ cordelia-rename
462+ mv \\
463+ /var/lib/rabbitmq/mnesia/rabbit\\@ misshelpful-plugins-expand \\
464+ /var/lib/rabbitmq/mnesia/rabbit\\@ cordelia-plugins-expand
465+ .Ed
466+ .sp
467+ .It
468+ If you have
469+ .Ar /etc/rabbitmq/rabbitmq-env.conf
470+ and configured the node name there, update this configuration.
471+ .sp
472+ .It
473+ Start the node when ready
474+ .El
434475.\" ------------------------------------
435476.It Cm update_cluster_nodes Ar clusternode
436477.Bl -tag -width Ds
You can’t perform that action at this time.
0 commit comments