File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -431,6 +431,46 @@ to the node
431
431
.Qq rabbit@cordelia
432
432
.sp
433
433
.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
434
474
.\" ------------------------------------
435
475
.It Cm update_cluster_nodes Ar clusternode
436
476
.Bl -tag -width Ds
You can’t perform that action at this time.
0 commit comments