Perform this procedure from a node of the primary cluster.
Before You Begin
Ensure that the following conditions are met:
The Geographic Edition software is installed on the primary and secondary storage appliances.
You have reviewed the information in Planning and Configuring Remote Replication With Oracle ZFS Storage Appliance Software.
You have created a remote replication role and user on each appliance. See How to Create a Role and Associated User for the Primary and Secondary Appliances.
You have created the projects you need. See How to Create a Project and Enable Replication for the Project.
The local cluster is a member of a partnership.
The protection group you are creating does not already exist on either partner cluster.
For more information about RBAC, see Securing Geographic Edition Software in Oracle Solaris Cluster Geographic Edition Installation and Configuration Guide.
# chmod A+user:username:rwx:allow /var/cluster/geo
The /var/cluster/geo directory must have the correct access control lists (ACL) applied for compatibility between the Geo Management RBAC rights profile and Oracle ZFS Storage Appliance software.
The /var/tmp/ directory is used as an example location in this step and the next step.
# cp /opt/ORCLscgrepzfssa/etc/zfssa_geo_config /var/tmp/
Update the file so that it contains one line that contains the rule information for the remote replication component.
project-name|any|nodelist
Name of the project.
The name of one or more cluster nodes where the plug-in is to validate the configuration.
For example, assuming that the nodes of cluster cluster-newyork are phys-newyork-1 and phys-newyork-2, on each node of cluster cluster-newyork, you would issue the following commands:
phys-newyork-N# mkdir /etc/opt/SUNWscgrepsbp phys-newyork-N# echo "trancos|any|phys-newyork-1,phys-newyork-2" > /etc/opt/SUNWscgrepsbp/configuration
Assuming that the nodes of cluster paris are phys-paris-3 and phys-paris-4, on each node of cluster paris, you would issue the following commands:
phys-paris-N# mkdir /etc/opt/SUNWscgrepsbp phys-paris-N# echo "trancos|any|phys-paris-3,phys-paris-4" > /etc/opt/SUNWscgrepsbp/configuration
For more information about configuration files, see configuration_file Property in Oracle Solaris Cluster Geographic Edition System Administration Guide.
The following list uses sample values:
PS=zfssa-partnership PG=zfssa-pg REPCOMP=trancos REPRS=zfssa-replication-resource REPRG=zfssa-replication-resource-group DESC="ZFS Storage Appliance replication protection group" APPRG=usa-rg CONFIGFILE=/etc/opt/SUNWscgrepsbp/configuration LOCAL_CONNECT_STRING=user@local-appliance.example.com REMOTE_CONNECT_STRING=user@remote-appliance.example.com CLUSTER_DGS=
For more information about the zfssa_geo_config file, see Overview of the Oracle ZFS Storage Appliance Configuration File.
For example:
phys-newyork-1# /opt/ORCLscgrepzfssa/util/zfssa_geo_register -f /var/tmp/zfssa_geo_config
The final messages of the registration script outline the required geopg get command. You must log in to one node of the partner cluster and execute that exact command.
For example, where zfssa-partnership is the partnership name and zfssa-protection-group is the protection group name:
phys-paris-1# geopg get --partnership zfssa-partnership zfssa-protection-group
phys-newyork-1# geoadm status phys-newyork-1# clresource status zfssa-replication-resource
Specifies the name of the replication resource.
Troubleshooting
If you experience failures while performing this procedure, enable debugging. See Debugging an Oracle ZFS Storage Appliance Protection Group.