Skip to main content
ONTAP MetroCluster

Renaming a cluster in MetroCluster configurations

Contributors netapp-folivia

Renaming a cluster in a MetroCluster configuration involves making the changes, and then verifying on both the local and remote clusters that the change took effect correctly.

Steps
  1. View the cluster names using the

    metrocluster node show

    command:

    cluster_1::*> metrocluster node show
    DR                               Configuration  DR
    Group Cluster Node               State          Mirroring Mode
    ----- ------- ------------------ -------------- --------- --------------------
    1     cluster_1
                  node_A_1           configured     enabled   normal
                  node_A_2           configured     enabled   normal
          cluster_2
                  node_B_1           configured     enabled   normal
                  node_B_2           configured     enabled   normal
    4 entries were displayed.
  2. Rename the cluster:

    cluster identity modify -name new_name

    In the following example, the cluster_1 cluster is renamed cluster_A:

    cluster_1::*> cluster identity modify -name cluster_A
  3. Verify on the local cluster that the renamed cluster is running normally:

    metrocluster node show

    In the following example, the newly renamed cluster_A is running normally:

    cluster_A::*> metrocluster node show
    DR                               Configuration  DR
    Group Cluster Node               State          Mirroring Mode
    ----- ------- ------------------ -------------- --------- --------------------
    1     cluster_A
                  node_A_1           configured     enabled   normal
                  node_A_2           configured     enabled   normal
          cluster_2
                  node_B_1           configured     enabled   normal
                  node_B_2           configured     enabled   normal
    4 entries were displayed.
  4. Rename the remote cluster:

    cluster peer modify-local-name -name cluster_2 -new-name cluster_B

    In the following example, cluster_2 is renamed cluster_B:

    cluster_A::> cluster peer modify-local-name -name cluster_2 -new-name
    cluster_B
  5. Verify on the remote cluster that the local cluster was renamed and is running normally:

    metrocluster node show

    In the following example, the newly renamed cluster_B is running normally:

    cluster_B::*> metrocluster node show
    DR                               Configuration  DR
    Group Cluster Node               State          Mirroring Mode
    ----- ------- ------------------ -------------- --------- --------------------
    1     cluster_B
                  node_B_1           configured     enabled   normal
                  node_B_2           configured     enabled   normal
          cluster_A
                  node_A_1           configured     enabled   normal
                  node_A_2           configured     enabled   normal
    4 entries were displayed.
  6. Repeat these steps for each cluster that you want to rename.