Skip to content

Commit ae72d99

Browse files
committed
Merge branch 'merge-rabbitmq-server-1641' into v3.7.x
2 parents 4eadacf + d6f7ff0 commit ae72d99

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

docs/rabbitmqctl.8

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)