Creating a cluster member

An example creating a cluster member to an existing cluster follows:

  • Identify the existing cluster and assign it to the cluster variable:

    set cluster [$AdminConfig getid /ServerCluster:mycluster1/]
    

    An example of this output follows:

    myCluster1(cells/cellname/cluster/myCluster1:cluster.xml#ServerCluster_1)
    

  • Identify the node to create the new server and assign it to the node variable:

    set node [$AdminConfig getid /Node:nodename/]
    
    An example of this output follows:

    nodename(cells/cellname/nodes/nodename:node.xml#Node_1)
    

  • (Optional) Identify the cluster member template and assign it to the serverTemplate variable:

    set serverTemplate [$AdminConfig listTemplates Server]
    

    An example of this output follows:

    servername(templates/default/nodes/servers/servername:server.xml#Server_1)
    

  • Create the new cluster member, by using the createClusterMember command.

    The following example creates the new cluster member, passing in the existing cluster configuration ID, existing node configuration ID, and the new member attributes:

    $AdminConfig createClusterMember $cluster $node {{memberName clusterMember1}}
    

    The following example creates the new cluster member with a template, passing in the existing cluster configuration ID, existing node configuration ID, the new member attributes, and the template ID:

    $AdminConfig createClusterMember $cluster $node {{memberName clusterMember1}} $serverTemplate
    

    An example of this output follows:

    clusterMember1(cells/cellname/clusters/myCluster1:cluster.xml$ClusterMember_2)
    

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.