Go to main content

Oracle® Solaris Cluster Geographic Edition Data Replication Guide for ZFS Snapshots

Exit Print View

Updated: February 2017
 
 

Starting an Oracle Solaris ZFS Snapshot Protection Group

Ensure that the protection group and any replication components have been correctly created. The replication infrastructure involved in a protection group includes the SSH setup, ZFS dataset permissions for the replication user, and the replication logical hostname setup in the global zone for a zone cluster partner. For more information about creating and configuring the protection group, see How to Create and Configure an Oracle Solaris ZFS Snapshot Protection Group.

You can start a protection group locally or globally, with or without data replication. For information about activating a protection group, see How to Activate a Protection Group in Oracle Solaris Cluster 4.3 Geographic Edition System Administration Guide.

When you start data replication on a cluster for a Oracle Solaris ZFS snapshot protection group, the following actions occur for each replication component in the protection group:

  • The infrastructure resource group and its resources for the replication component are brought online on that cluster, if they are not online already. This makes the zpool and the replication hostname available on that cluster.

  • If the role of the protection group on the local cluster is primary, the replication agent resource group and resource for the replication component are brought online. If the replication agent resource group was suspended, it is resumed back.

    The replication agent resource starts up the SSH agent for its use and adds the local replication user's private key to the agent using the local SSH passphrase. If the remote replication hostname is reachable and the remote zpool is available, the replication agent resource attempts its replication work as per the replication parameters. The resource checks if there is any common snapshot between the local and remote dataset. If there is a common snapshot, it attempts to perform incremental replication, otherwise it attempts full replication. For more information about the types of replication, see About Oracle Solaris ZFS Snapshots Replication.

  • The replication status resource group is brought online if it is not online already. If the replication status resource for the replication component is not online, it is brought online. If the replication status resource group was suspended, it is resumed back.

    The replication status resource starts up the SSH agent for its use and adds the local replication user's private key to the agent using the local SSH passphrase. It then derives replication status based on factors like local zpool availability and the status of the replication agent resource of the primary cluster, and reports such replication status through its own status and status message.

Data synchronization starts only after the protection group is successfully activated with data replication enabled on both partner clusters.

If the resources fail to start as described above, then the activation of the protection group fails. Check the console and syslog, and the resource logs of the relevant resource for failure messages that will indicate the cause of the error. Fix any such problems and attempt to activate the protection group again. For more information about the error messages, see Checking the Runtime Status of Oracle Solaris ZFS Snapshot Remote Replication.