Preparing the CP servers manually for use by the VCS cluster

Use this procedure to manually prepare the CP server for use by the VCS cluster or clusters.

Table: Sample values in procedure displays the sample values used in this procedure.

Table: Sample values in procedure

CP server configuration component

Sample name

CP server

cps1

Node #1 - VCS cluster

sys1

Node #2 - VCS cluster

sys2

Cluster name

clus1

Cluster UUID

{f0735332-1dd1-11b2}

To manually configure CP servers for use by the VCS cluster

  1. Determine the cluster name and uuid on the VCS cluster.

    For example, issue the following commands on one of the VCS cluster nodes (sys1):

    # grep cluster /etc/VRTSvcs/conf/config/main.cf
    cluster clus1
    # cat /etc/vx/.uuids/clusuuid 
    {f0735332-1dd1-11b2-bb31-00306eea460a}
  2. Use the cpsadm command to check whether the VCS cluster and nodes are present in the CP server.

    For example:

    # cpsadm -s cps1.example.com -a list_nodes
     
    ClusName  UUID                                   Hostname(Node ID) Registered
    clus1 	{f0735332-1dd1-11b2-bb31-00306eea460a} sys1(0)         0
    clus1 	{f0735332-1dd1-11b2-bb31-00306eea460a} sys2(1)         0

    If the output does not show the cluster and nodes, then add them as described in the next step.

    For detailed information about the cpsadm command, see the Cluster Server Administrator's Guide.

  3. Add the VCS cluster and nodes to each CP server.

    For example, issue the following command on the CP server (cps1.example.com) to add the cluster:

    # cpsadm -s cps1.example.com -a add_clus\
     -c clus1  -u {f0735332-1dd1-11b2}
    Cluster clus1 added successfully

    Issue the following command on the CP server (cps1.example.com) to add the first node:

    # cpsadm -s cps1.example.com -a add_node\
     -c clus1 -u {f0735332-1dd1-11b2} -h sys1 -n0
    Node 0 (sys1) successfully added

    Issue the following command on the CP server (cps1.example.com) to add the second node:

    # cpsadm -s cps1.example.com -a add_node\
     -c clus1 -u {f0735332-1dd1-11b2} -h sys2 -n1
    Node 1 (sys2) successfully added

More Information

Generating the client key and certificates manually on the client nodes