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
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}
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.
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
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.
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
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.