Oracle® Solaris Cluster Geographic Edition Remote Replication Guide for Oracle ZFS Storage Appliance

Exit Print View

Updated: July 2014, E39675-01
 
 

Configuring Remote Replication With Oracle ZFS Storage Appliance Software

This section describes the steps you must perform before you can configure Oracle ZFS Storage Appliance remote replication with Geographic Edition software. The following procedures are in this section:

How to Create a Role and Associated User for the Primary and Secondary Appliances

If a role and associated user do not yet exist on the source and target appliances, perform this procedure to create them.

  1. Log in to the Oracle ZFS Storage appliance.
  2. Create a role for remote replication.

    Configure the role with the following permissions:

    • Object nas.*.*.* with permissions clone, destroy, rrsource, and rrtarget.

    • Object workflow.*.* with permission read.

  3. Create a user for replication that is associated with the role you created in Step 2.

How to Create a Project and Enable Replication for the Project

  1. Log in to the Oracle ZFS Storage appliance on the primary cluster-paris site.
  2. Navigate to Shares > Projects and create the projects that you need for your application.
  3. In each project, create the file systems and LUNs that you need for your application.

    Ensure that NFS exceptions and LUN settings are identical on the primary and secondary storage appliances. For more information, see Copying and Editing Actions in Oracle ZFS Storage 7000 System Administration Guide.

  4. For iSCSI LUNs, if you use nondefault targets and target groups, ensure that target groups and initiator groups used by LUNs within the project also exist on the replication target.

    These groups must use the same name in the replication target as in the source appliance.

  5. For each project, navigate to Replication, create an action, and enable the action with continuous mode.

Troubleshooting

If you need to stop Oracle ZFS Storage Appliance replication directly from the Oracle ZFS Storage appliance, you must perform the following tasks in the order shown:

  • Set continuous=false.

  • Wait for the update to complete.

  • Set enabled=false to stop replication.

Geographic Edition requires that last_result of replication be a success. Otherwise, adding a project to a Geographic Edition protection group and protection group validation will fail.

How to Configure Oracle Solaris Cluster Resources on the Primary Cluster

This procedure creates Oracle Solaris Cluster resources on the primary cluster for the application to be protected.

Before You Begin

Ensure that the following tasks are completed on the storage appliance:

  • Replication peers are configured by the storage administrator.

  • Projects are configured by the storage administrator.

  • Replication is enabled for the project.

  • For iSCSI LUNs, if you use nondefault target groups, the target groups and initiator groups used by LUNs within the project also exist on the replication target. In addition, these groups use the same names in the replication target as in the source appliance.

  • If you use file systems, NFS Exceptions exist for all nodes of both clusters. This ensures that either cluster can access the file systems when that cluster has the primary role.

  1. Create the Oracle Solaris Cluster device groups, file systems, or ZFS storage pools you want to use.

    Specify the LUNs or file systems in the Oracle ZFS Storage appliance to be replicated.

    For information about creating device groups, file systems, and ZFS storage pools in a cluster configuration, see Oracle Solaris Cluster System Administration Guide .

  2. Create an HAStoragePlus resource or a scalable mount-point resource for the device group, file system, or ZFS storage pool you use.

    This resource manages bringing online the Oracle ZFS Storage Appliance storage on both the primary and secondary clusters

    For information about creating an HAStoragePlus or scalable mount-point resource, see Oracle Solaris Cluster Data Services Planning and Administration Guide .

How to Configure Oracle Solaris Cluster Resources on the Secondary Cluster

This procedure creates Oracle Solaris Cluster resources on the secondary cluster for the application to be protected.

Before You Begin

Ensure that the following tasks are completed on the storage appliance:

  • Replication peers are configured by the storage administrator.

  • Projects are configured by the storage administrator.

  • Replication is enabled for the project.

  • For iSCSI LUNs, if you use nondefault target groups, the target groups and initiator groups used by LUNs within the project also exist on the replication target. In addition, these groups must use the same names in the replication target as in the source appliance.

  • If you use file systems, NFS Exceptions exist for all nodes of both clusters. This ensures that either cluster can access the file systems when that cluster has the primary role.

  1. On the cluster-paris (primary) site, access the Oracle ZFS Storage Appliance browser user interface (BUI).
  2. Navigate to Shares > Projects and select the project being replicated.
  3. Select Replication for the project and click Update Now.

    This executes a manual replication to synchronize the two sites.

  4. On the cluster-newyork (partner) site, access the appliance BUI.
  5. Navigate to In Projects > Replica and select the project being replicated.
  6. Select Replication for the project and click Clone Most Recently Received Project Snapshot.
    1. Map the iSCSI devices to the corresponding DID numbers.
    2. Use the cldevice list command to find devices corresponding to the devices being exported from the appliance.
  7. Create the Oracle Solaris Cluster device groups, file systems, or ZFS storage pools you want to use.

    Specify the LUNs or file systems in the Oracle ZFS Storage appliance to be replicated.

    For information about creating device groups, file systems, and ZFS storage pools in a cluster configuration, see Oracle Solaris Cluster System Administration Guide .

  8. Create an HAStoragePlus resource or a scalable mount-point resource for the device group, file system, or ZFS storage pool you use.

    This resource manages bringing online the Oracle ZFS Storage Appliance storage on both the primary and secondary clusters

    For information about creating an HAStoragePlus or scalable mount-point resource, see Oracle Solaris Cluster Data Services Planning and Administration Guide .

  9. Confirm that the application resource group is correctly configured by bringing it online and taking it offline again.
    phys-newyork-1# clresourcegroup online -emM application-resource-group
    phys-newyork-1# clresourcegroup offline application-resource-group
  10. If you created a file systems and it is mounted, unmount the file system.
    phys-newyork-1# umount /mounts/file-system
  11. If the Oracle Solaris Cluster device group is online, take it offline.
    phys-newyork-1# cldevicegroup offline raw-disk-group
  12. Destroy the clone on the Oracle ZFS Storage appliance.
    1. Access the appliance BUI on the cluster-newyork site.
    2. Navigate to Shares > Projects and select the project that is cloned.
    3. Select Remove or Destroy entry for the cloned project.

    Initial configuration on the secondary cluster is now complete.