Preparing the CP servers manually for use by the SFHA cluster

Use this procedure to manually prepare the CP server for use by the SFHA 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 - SFHA cluster

sys1

Node #2 - SFHA cluster

sys2

Cluster name

clus1

Cluster UUID

{f0735332-1dd1-11b2}

To manually configure CP servers for use by the SFHA cluster

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

    For example, issue the following commands on one of the SFHA 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 SFHA cluster and nodes are present in the CP server.

    For example:

    # cpsadm -s cps1.symantecexample.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 SFHA cluster and nodes to each CP server.

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

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

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

    # cpsadm -s cps1.symantecexample.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.symantecexample.com) to add the second node:

    # cpsadm -s cps1.symantecexample.com -a add_node\
     -c clus1 -u {f0735332-1dd1-11b2} -h sys2 -n1
    Node 1 (sys2) successfully added
  4. If security is to be disabled, then add the user name "cpsclient@hostname" to the server. This and the subsequent steps are for configuring a non-secure CP server.

  5. Add the users to the CP server.

    Issue the following commands on the CP server (cps1.symantecexample.com):

    # cpsadm -s cps1.symantecexample.com -a add_user -e\
    cpsclient@hostname\
     -f cps_operator -g vx 
    
    User cpsclient@hostname 
    successfully added
  6. Authorize the CP server user to administer the SFHA cluster. You must perform this task for the CP server users corresponding to each node in the SFHA cluster.

    For example, issue the following command on the CP server (cps1.symantecexample.com) for SFHA cluster clus1 with two nodes sys1 and sys2:

    # cpsadm -s cps1.symantecexample.com -a\
    add_clus_to_user -c clus1\
     -u {f0735332-1dd1-11b2}\
     -e cpsclient@hostname\ 
     -f cps_operator -g vx
    Cluster successfully added to user
     cpsclient@hostname  privileges.

More Information

Generating the client key and certificates manually on the client nodes