Use this procedure to manually prepare the CP server for use by the SFCFSHA 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 |
mycps1 |
Node #1 - SFCFSHA cluster |
galaxy |
Node #2 - SFCFSHA cluster |
nebula |
Cluster name |
clus1 |
Cluster UUID |
{f0735332-1dd1-11b2} |
To manually configure CP servers for use by the SFCFSHA cluster
For example, issue the following commands on one of the SFCFSHA cluster nodes (galaxy):
# grep cluster /etc/VRTSvcs/conf/config/main.cf
cluster clus1
# cat /etc/vx/.uuids/clusuuid
{f0735332-1dd1-11b2-bb31-00306eea460a}
For example:
# cpsadm -s mycps1.symantecexample.com -a list_nodes ClusName UUID Hostname(Node ID) Registered clus1 {f0735332-1dd1-11b2-bb31-00306eea460a} galaxy(0) 0 clus1 {f0735332-1dd1-11b2-bb31-00306eea460a} nebula(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 Veritas Storage Foundation Cluster File System High Availability Administrator's Guide.
For example, issue the following command on the CP server (mycps1.symantecexample.com) to add the cluster:
# cpsadm -s mycps1.symantecexample.com -a add_clus\ -c clus1 -u {f0735332-1dd1-11b2}
Cluster clus1 added successfully
Issue the following command on the CP server (mycps1.symantecexample.com) to add the first node:
# cpsadm -s mycps1.symantecexample.com -a add_node\ -c clus1 -u {f0735332-1dd1-11b2} -h galaxy -n0
Node 0 (galaxy) successfully added
Issue the following command on the CP server (mycps1.symantecexample.com) to add the second node:
# cpsadm -s mycps1.symantecexample.com -a add_node\ -c clus1 -u {f0735332-1dd1-11b2} -h nebula -n1
Node 1 (nebula) successfully added
If the output below does not show the users, then add them as described in the next step.
# cpsadm -s mycps1.symantecexample.com -a list_users
Username/Domain Type Cluster Name / UUID Role CPSADM@VCS_SERVICES@f0735332-1dd1-11b2/vx clus1/{f0735332-1dd1-11b2} Operator
If security is to be disabled, then add the user name "cpsclient@hostname" to the server instead of the CPSADM@VCS_SERVICES@cluster_uuid (for example, cpsclient@galaxy).
The CP server can only run in either secure mode or non-secure mode, both connections are not accepted at the same time.
Issue the following commands on the CP server (mycps1.symantecexample.com):
# cpsadm -s mycps1.symantecexample.com -a add_user -e\ CPSADM@VCS_SERVICES@cluster_uuid\ -f cps_operator -g vx User CPSADM@VCS_SERVICES@cluster_uuid successfully added
For example, issue the following command on the CP server (mycps1.symantecexample.com) for SFCFSHA cluster clus1 with two nodes galaxy and nebula:
# cpsadm -s mycps1.symantecexample.com -a\ add_clus_to_user -c clus1\ -u {f0735332-1dd1-11b2}\ -e CPSADM@VCS_SERVICES@cluster_uuid\ -f cps_operator -g vx
Cluster successfully added to user CPSADM@VCS_SERVICES@cluster_uuid privileges.