
Dell Unity™ Family Unisphere® Command Line Interface User Guide
Create replication sessions
Ensure you have completed the necessary configuration tasks before creating a replication session.
For asynchronous replication, you can replicate existing snapshots and snapshots that are created from snapshot schedules.
For synchronous file replication, you cannot replicate existing snapshots or snapshots that are created from snapshot schedules.
The following conditions apply to snapshot replication:
- Asynchronous replication: You can replicate existing snapshots and snapshots that are created from snapshot schedules.
- Synchronous file replication: You cannot replicate existing snapshots or snapshots that are created from snapshot schedules. You can only replicate those snapshots and snapshots that are created from snapshot schedules after you have established the synchronous replication session and it is Active.
Performing a snapshot replication from a source system running OE version 4.0, 4.1, 4.2, 4.3, or 4.4 to a destination system running OE version 5.x requires upgrading the source system to OE version 4.5 first. Upgrading to OE version 4.5 is not required but recommended if you want to perform LUN or file system replication from OE version 4.0, 4.1, 4.2, 4.3, or 4.4 to OE version 5.0 without any snapshot replication.
Prerequisites
Before creating a replication session, complete the following configuration tasks:
- Create the storage resource that provides the replication source.
- For local replication, create a replication destination on a local system.
- For remote replication, create a replication connection to a remote system, and create a replication destination on that remote system.
- For asynchronous replication in a co-existing asynchronous and synchronous replication with one source resource topology, create the asynchronous replication destination NAS server with both the -replDest and the -backupOnly attributes set to yes. These attributes must be set to yes on the asynchronous replication destination NAS server when the source NAS server is synchronous-replicated; otherwise, the asynchronous replication session cannot be created.
Format
/prot/rep/session create [-async] -srcRes <value> [-srcSPAInterface <value>] [-srcSPBInterface <value>] –dstType {local | remote –dstSys <value>} -dstRes <value> [-dstSPAInterface <value>] [-dstSPBInterface <value>] [-name <value>] [-elementPairs <value>] -syncType {manual [-autoInitiate {yes | no}] | auto [-rpo <value>]} [-replicateHourlySnaps {yes [{-keepSameAsSource | -keepFor <value> | -allowAutoDelete}] | no}] [-replicateDailySnaps {yes [{-keepSameAsSource | -keepFor <value> | -allowAutoDelete}] | no}] [-replicateExistingSnaps] [-allowAsyncSnapReplication {yes | no}] [enableUserSnapCommonBase {-autosearch | -srcCommonBaseSnap <value> -dstCommonBaseSnap <value> [-skipSnapSignatureCheck]}]Action qualifiers
| Qualifier | Description |
|---|---|
| -async | Run an action in asynchronous mode. |
| -srcRes | Type the ID of the storage resource to use as the source. |
| -srcSPAInterface | Type the ID of the interface on the SPA of the source system for the replication.
NOTE:This qualifier is used for asynchronous replications on remote systems only. If the qualifier is not specified, the system identifies the interface automatically.
|
| -srcSPBInterface | Type the ID of the interface on the SPB of the source system for the replication.
NOTE:This qualifier is used for asynchronous replications on remote systems only. If the qualifier is not specified, the system identifies the interface automatically.
|
| -dstType | Specify the type of destination. Valid values are:
|
| -dstSys | For remote replication, type the ID of the destination system. View settings for remote storage systems explains how to view the IDs of the remote system configuration on the local system. |
| -dstRes | Type the ID of the destination storage resource. |
| -dstSPAInterface | Type the ID of the interface on the SPA of the destination system for the replication.
NOTE:This qualifier is used for asynchronous replications on remote systems only. If the qualifier is not specified, the system identifies the interface automatically.
|
| -dstSPBInterface | Type the ID of the interface on the SPB of the destination system for the replication.
NOTE:This qualifier is used for asynchronous replications on remote systems only. If the qualifier is not specified, the system identifies the interface automatically.
|
| -syncType | This parameter indicates whether to perform the first replication sync (a full sync) automatically. The following example shows the
manual option used for the first replication sync:
-syncType {manual [-autoInitiate {yes | no}] | auto [-rpo <value>}
Valid values are:
NOTE:This qualifier is used for asynchronous replications only.
As the RPO increases, the potential for data loss also increases, and the amount of required protection space. Lowering the RPO reduces the amount of potential data loss, but also increases network traffic and may negatively impact performance. The default RPO is one hour. |
| -autoInitiate | Specify whether the system performs the first replication synchronization automatically. Valid values are:
NOTE:This qualifier is used for asynchronous replications only.
|
| -rpo | Type the time interval for when the synchronization runs. Use the following format:
<HH>[:MM] Where:
|
| -replicateHourlySnaps | Specify whether to mark hourly scheduled snapshots for replication. Valid values are:
NOTE:This qualifier is used for asynchronous replications only.
|
| -replicateDailySnaps | Specify whether to mark daily scheduled snapshots for replication. Valid values are:
NOTE:This qualifier is used for asynchronous replications only.
|
| -keepSameAsSource | Indicate whether to use the same retention policy (expiration time and auto-delete) of the source for the destination. This option propagates changes that are made to the source retention policy to the destination retention policy (from that point forward for newly created scheduled snapshots, old snapshots are left as is). No values are allowed.
This option is enabled by default if -keepFor or -allowAutoDelete are not set. NOTE:This qualifier is used for asynchronous replications only.
|
| -keepFor | Specifies the retention time after which the snapshot is deleted on the destination. The interval can be defined in days or hours. Use the following format:
<value><qualifier> Where:
NOTE:This qualifier is used for asynchronous replications only.
|
| -allowAutoDelete | Specify whether auto delete is allowed on the replicated copy of this snapshot or snapshot set.
NOTE:This qualifier is used for asynchronous replications only.
|
| -replicateExistingSnaps | Indicates whether to replicate snapshots that exist on the source resource. This qualifier is a one-time option available during session creation that replicates snapshots existing on the source at that moment in time.
NOTE:This qualifier is used for asynchronous replications only.
Only the user snapshots that are created after the common base snapshots were established and are in the Idle or Pending state are replicated. All eligible snapshots are replicated with the source retention policy applied for the destination retention policy. For a snapshot to be eligible for this option, it must meet these 3 criteria:
|
| -allowAsyncSnapReplication | Indicate whether snapshot replication is allowed in an asynchronous session. Valid values are:
NOTE:This qualifier is used for file system asynchronous replications only.
|
| -enableUserSnapCommonBase | Designate the user snapshot as the common base for Unity systems running OE version 5.1.
If this qualifier is absent, the system does not treat the user snapshot as the common base. NOTE:This qualifier must be set when the replication session is configured.
|
| -srcCommonBaseSnap | Specify the user snapshot identifier that is used as the common base on the source resource for Unity systems running OE version 5.1. |
| -dstCommonBaseSnap | Specify the user snapshot identifier that is used as the common base on the destination resource for Unity systems running OE version 5.1. |
| -autosearch | Enable the system to perform an automatic search to find a user snapshot that can be used as a common base for Unity systems running OE version 5.1.
If this qualifier is not included, the -autosearch function is disabled. NOTE:This qualifier must be set when the replication session is configured if you want to avoid a full copy after a failover.
|
| -skipSnapSignatureCheck | Indicate whether you want to skip the user snap signature check when using the user snapshot as the common base for Unity systems running OE version 5.1. This qualifier is valid only when specifying the source and destination user snapshots as the common base.
NOTE:Check if the user snapshots are qualified as a common base.
|
| -cascadeReplicatedSnap | Indicates whether you want to automatically replicate snapshots downstream when the snapshot is replicated from the inbound replication session.
The valid values are as follows:
|
| -overwriteDestination | Indicate whether to overwrite dirty data on the destination; it takes more time to complete full data transfer. If this qualifier is not specified, the destination might contain different data than the source if the destination has corrupted data. |
Example
The following command creates a replication session with these settings:
- Source storage resource is file system RS_1.
- Destination system type is remote.
- Remote destination system is RS_2.
- Remote storage resource is file system LUN_2.
- Synchronization type is automatic.
- RPO is 2 hours and 30 minutes.
Storage system address: 10.0.0.1 Storage system port: 443 HTTPS connection ID = 81604378625_FCNCH097274B3A_0000_81604378627_FCNCH097274B37_0000 Operation completed successfully.