Defining a replication subrule

To specify exceptions to a replication storage rule, you can define one or more replication subrules.

About this task

By default, a replication storage rule with the ACTIONTYPE=REPLICATING parameter value copies all data from eligible nodes on the source replication server to the target replication server. However, to replicate data only from specific nodes or file spaces, you can specify subrules. Multiple subrules can be defined for a replication storage rule. With the help of subrules, you can filter specific nodes or node groups, file spaces, and files based on their data types.

Subrules can be useful in many situations, for example:
  • You want to replicate data from only specific nodes. Define a replication storage rule with the ACTIONTYPE=NOREPLICATING parameter value. Then, define subrules with the ACTIONTYPE=REPLICATING parameter value to replicate data only from specific nodes.
  • You want to replicate all data on a source replication server to a target replication server except for data from specific nodes. You can configure the parent storage rule to replicate data by specifying the ACTIONTYPE=REPLICATING parameter value. Then, define subrules to exclude data from the specific nodes on the source replication server by specifying the ACTIONTYPE=NOREPLICATING parameter value.
  • You want to replicate all types of data from a source replication server to a target replication server except for archive data. You can configure the parent storage rule to replicate all data by specifying the ACTIONTYPE=REPLICATING parameter value. Then, define subrules to exclude archive type data by specifying the DATATYPE=ARCHIVE and ACTIONTYPE=NOREPLICATING parameter values.

Procedure

To define a replication subrule, complete the following steps:

  1. On the Operations Center menu bar, click Storage > Storage Rules.
  2. On the Storage Rules page, select the rule for which you want to create a subrule. Click +Create Subrule.
  3. On the Create Subrule page, complete the fields.
  4. To create the replication subrule, click Create.
    Tip: Alternatively, you can define a subrule by using the DEFINE SUBRULE command. For more information, see DEFINE SUBRULE (Define an exception to a replication storage rule).

Results

The subrule is defined. When the parent rule is processed, the subrule filters are applied.