Changing the Node Role

The configured role of a node, whether it is a Hub Node or a Leaf Node, is kept locally, and is initially set at the time of installation. At startup, a node tries to come up in whatever role it was last configured.

Use CRSCTL to change the role of a node, as follows:

  1. Run the following command to determine the current role of the local node:
    $ crsctl get node role config
    
  2. Run the following command as root to change the role of the local node:
    # crsctl set node role {hub | leaf}

    Note:

    If you are changing a Leaf Node to a Hub Node, then you may have to run srvctl add vip to add a VIP, if a VIP does not already exist on the node. Leaf Nodes are not required to have VIPs.

    If you installed the cluster with DHCP-assigned VIPs, then there is no need to manually add a VIP.

  3. As root, stop Oracle High Availability Services on the node where you changed the role, as follows:
    # crsctl stop crs
    
  4. If you are changing a Leaf Node to a Hub Node, then configure the Oracle ASM Filter Driver as root, as follows:
    # $ORACLE_HOME/bin/asmcmd afd_configure

    See Also:

    Oracle Automatic Storage Management Administrator's Guide for more information about the asmcmd afd_configure command

  5. As root, restart Oracle High Availability Services on the node where you changed the role, as follows:
    # crsctl start crs -wait

    Note:

    Use the -wait option to display progress and status messages.

  6. Perform steps 3 and 5 on the local node.
  7. Manually update the inventory.

    If you convert a Hub Node to a Leaf Node, then run the following command on all remaining Hub Nodes:

    $ Grid_home/oui/bin/runInstaller -updateNodeList ORACLE_HOME=Oracle_home
    "CLUSTER_NODES={comma_separated_Hub_Node_list}" -silent -local CRS=TRUE
    

    On the newly converted Leaf Node, run the following command:

    $ Grid_home/oui/bin/runInstaller -updateNodeList ORACLE_HOME=Oracle_home
    "CLUSTER_NODES={Leaf_Node_name}" -silent -local CRS=TRUE
    

    If you convert a Leaf Node to a Hub Node, then run the following command on all Hub Nodes:

    $ Grid_home/oui/bin/runInstaller -updateNodeList ORACLE_HOME=Oracle_home
    "CLUSTER_NODES={comma_separated_Hub_Node_list}" -silent -local CRS=TRUE

See Also:

"Oracle RAC Environment CRSCTL Commands" for usage information about the preceding CRSCTL commands