clustergroup setprimary

Sets the primary cluster for the group.

Each cluster must know the location and the cross cluster ticket of the primary of the group, so that it can update its own cluster group table by periodically fetching the table from the primary.

The setprimary command sets the given cluster as the primary for the current cluster on which the command is executed, and adds the current cluster to the cluster group.

Syntax

CLI
maprcli clustergroup setprimary
  -clustername <name>
  -cldbips <ip addreses/hostnames>
  -crossclusterticket <ticket>         
REST
N/A

Parameters

Parameter Description

clustername

Name of the cluster to set as the primary cluster.
cldbips

IP addresses/host names of the CLDB nodes separated with spaces.

crossclusterticket

Cross-cluster ticket of the cluster.

Example

Sets the primary cluster for the group to cluster1.

maprcli clustergroup setprimary -clustername cluster1 -cldbips "m2-r2600-49-n4.mip.storage.hpecorp.net:7222" -crossclusterticket "XXXX"