<a id="managing-remote-mirroring"></a>

# Mirroring

VPSA Asynchronous Remote Mirroring provides the ability to replicate
your VPSA’s data asynchronously to a different Pool within the same
VPSA, to a different VPSA (either locally within the same Zadara Cloud,
or remotely to a VPSA located in a remote region), or even to a
different cloud provider. You can replicate a single source Volume to
any number of remote (or local) Mirrors.

Asynchronous Mirroring has minimal impact on IO throughput and response
time from the Server perspective since the Server IO returns
immediately after being written to the local VPSA storage (without
waiting for acknowledgment from the remote VPSA, like is required with
Synchronous Mirroring). Later, the data is synchronized to the Remote
VPSA in the background.

The VPSA Remote Mirroring is snapshot-based, meaning that only modified
data chunks between two point-in-time Snapshots are synchronized. This
has some major advantages:

- If a file/block was modified several times between two consecutive
  snapshots only the last change will be synchronized, thus saving
  bandwidth.
- Snapshots are crash-consistent, thus at the Remote Site you always
  have a crash-consistent point-in-time data set of your application.
- You can easily create many Read/Write Clones of your remote data at
  various point-in-time snapshots for Test & Dev.

The VPSA manages checkpoints to track the sync progress within a
Volume/Snapshot. In case of a transport failure (line failure, VPSA
failure etc.) the VPSA has a clear checkpoint from where to resume the
sync.

Mirrored data is also compressed before being shipped to a remote
VPSA in a different region, for efficient bandwidth utilization.

You can establish a “many-to-many” remote mirroring relationship for
different Volumes between different VPSAs. This means that a VPSA
can mirror Volumes to many remote VPSAs, while at the same time also
be the Destination VPSA for other Volumes in any other VPSA.

## Creating a Local Mirror (on the same VPSA)

To create a Local Mirror, go to the Mirroring page and click the
Create button. Give the new Mirror a name, as well as a name for
the new Volume it creates. Select the destination Volume you will be mirroring and
then click the Next button.

![image91](media/image91.png)

On the next screen select your local VPSA as the Destination VPSA and
the Pool you want to replicate to. You cannot replicate to the same Pool
in which the source Volume resides. Then click the Next button.

![image92](media/image92.png)

On the final screen select the Snapshot Policies, you want to
apply to the Mirrored Volume, and click Submit.

![image93](media/image93.png)

## Creating a Remote Mirror

You can create the Remote Mirror from the Remote Mirroring page by
clicking Create. You will see a similar dialog:

![image96](media/image96.png)

Name the Mirror and the destination Volume, select the source Volume and click Next.

![image97](media/image97.png)

Choose the Destination VPSA, WAN Optimization or I/O Performance
Optimization (see below) and the destination Pool. Click Next.

**WAN Optimization v. I/O Performance Optimization**

The VPSA supports selection between “I/O” and “WAN” data synchronization
optimization. When “I/O” is selected, the VPSA synchronizes modified
Pool chunks of 25KB or 1MB, depending on the Pool type. When “WAN” is
selected, the VPSA synchronizes only modified 4KB sub-chunks. WAN
optimization typically reduces WAN traffic bandwidth at the expense of
additional workload on the source Volume, which may affect application
performance.

VPSA Flash Array **Dedup and Compression**

While mirroring to All Flash remote VPSA, you can decide if the mirrored Volume
will be dedup’ed and/or compressed, in order to save space on the mirror destination.

![image98](media/image98.png)

Select the snapshot policies you want to apply to the remote Mirrored Volume
and click Submit.

## Replicate the same Volume to multiple destinations

It is possible to replicate the same Volume to multiple destinations.
Just repeat the above steps, selecting a different destination each
time.

## Pause & Continue Remote Mirror

It is possible to pause a Remote Mirror. A paused Mirror will stop
syncing data immediately and stop creating new Snapshots. The status of
the Mirror will change to “Paused”.

To pause a Mirror, select the Mirror in the Mirroring page and press the
Pause button.

![image99](media/image99.png)

To resume the Mirror operation, select the Mirror in the Mirroring page
and press the Continue button.

![image148](media/image148.png)

## Managing Mirror Lifecycle

The Mirror controls the Remote Volume on the destination VPSA. As long as
the Mirror is active, the target volume cannot be attached to any
Server, nor can it be modified outside the scope of the Mirror. Hence it
is treated as a special kind of “Destination Volume.”

You can view Mirror Destination Volumes on the “Dest. Volumes” tab on
the Pools Page  of the Destination VPSA, but they do not
appear in the Volumes page.

### Clone Destination Volume for Dev & Test of Remote Mirror

For offline processing (e.g. Dev & Test and other purposes) you can Clone
the destination Volume using the data set of any Snapshot that was
completely synchronized. You cannot create a Clone of the Snapshot that is
currently being synchronized.

The Cloned Volume is independent of the Destination Volume or the Mirror
(i.e. you can delete both the Destination Volume and the Mirror and the
Cloned Volume will not be affected).

To Clone a Mirrored Destination Volume, go to the Mirroring page on the
**Destination VPSA**. Select a Mirror and click the Clone button.

![image101](media/image101.png)

- Select the point-in-time Snapshot that contains the data set that you
  wish to clone. The VPSA will assign a name to the Cloned Volume which
  is a concatenation of the Dest Mirror Volume name and the timestamp of
  the selected Snapshot. You can modify this name at any time.
- You can find the newly created Volume in the Volumes Page.

### Breaking a Mirror

Breaking a Mirror is the process of deleting the Mirroring relationship
between the Source Volume and the Destination Volume, while leaving
sufficient information for to reconnect the Mirror in future. The Destination
Volume then becomes a “regular” Volume and the source and the
destination Volumes are now independent of each other. A Mirror can be
broken from the source or from the destination VPSAs.

You can perform a future Mirror reconnect in both directions.
However, there are implications on the data which is retained and data
which will be overwritten depending on which side the Mirror reconnect is initiated from.
More details on this are in the next section.

To break a Mirror, go to the Mirroring page, select a Mirror and click
the Break button. After confirming the operation, the Mirror
Object in the Mirroring page will disappear from both the Source and the
Destination VPSAs.

![image145](media/image145.png)

When breaking a mirror, you can assign the destination volume the same
World Wide ID (WWID) as the source volume.
Some host platforms use the WWID to identify volumes.
Assigning the same WWID to the target volume can speed up disaster recovery
for cases where the main and DR sites have identical volume metadata.
To preserve the source WWID for the target volume, select the
**Assign source WWID to target volume** checkbox in the mirror break dialog.

### Reconnecting a Mirror

As previously described, the VPSA retains sufficient metadata about each Volume
after a Mirror has been broken to enable a future reconnect of the
Mirror relationship. Also, all the mirroring snapshot policies
(Type = “Remote Mirroring”) are kept in place, but in “Paused” State. as shown
in the image below. These
snapshots policies are used for reconnecting the mirror.

![image102a](media/image102a.png)

This metadata allows the VPSA to identify a remote Volume, on a Remote
VPSA, that had a Mirroring relationship with a local Volume anytime in
the past and find the most recent Snapshot that is in-sync on both
Volumes. This enables it to reconnect the Mirror relationship and
resume the sync process from the most recently updated data set. If there
is a match between policies on the source and destination the matching
snapshot policies will be used to reconnect the mirror.

A mirror reconnect can be done in any direction, regardless of the
previous Mirror direction. This provides the required flexibility for a
DR plan. In case of a suspected source site disaster, you can break the
Mirror, assign the Destination Volume to an application server and work
on the DR site. Once the source site is back, you can decide in which
direction to resume the mirroring relationship.

To Reconnect a Mirror:

![image102](media/image102.png)

- Go to the Mirroring Page and click Reconnect. The system will list
  candidate volumes with broken mirror. Select the Volume that you wish
  to act as the Source Volume of the Mirror.
- Select the Remote VPSA that contains a Volume that used to be a
  Mirror pair of the selected Source Volume in the past. Press
  Next.
- The VPSA will query the remote VPSA and display suggested Remote
  Volumes which can be Destination Volumes of the Mirror, with the
  following information:
  - **Remote Volume name**.
  - **New Data** – There is new data on the Remote Volume which was
    written after the last sync point and which needs to be deleted in
    order to reconnect the Mirror.
  - **Last Sync** – The timestamp of the most recent Snapshot. Any
    data written on the Source Volume after that timestamp will be
    synchronized to the Remote Volume.
  - **Snaps to Del** – Number of snapshots to delete on the Remote
    Volume. Please note that it is possible that empty Snaps need to
    be deleted while no new data is lost on the Remote Volume.

![image103](media/image103.png)

- Press Continue.
- Enter a name for the new Mirror.

- If the system finds matching policies on the source and destination VPSA’s
  they are automatically used. If no matching policy can be found, the following
  dialog is displayed, asking for the Snapshot Policy to be used.
  Select Snapshot Policy for the new Mirror.
- Press Submit to Reconnect the Mirror.

![image104](media/image104.png)

## Viewing Remote Mirror Properties

The Remote Mirroring Page displays the list of Remote Mirrors that the
VPSA participates in, either as the Source or the Destination. The
Mirrors are not symmetric, so both the source and the destination VPSAs
display slightly different info.

Select a Mirror and review the detailed information in the following
South Panel tabs:

![image105](media/image105.png)

**Properties**

Each Mirror includes the following properties:

| **Property**                | **Description**                                                                                                                                                                                                                                                                                              |
|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ID                          | An internally assigned unique ID.                                                                                                                                                                                                                                                                            |
| Name                        | User assigned name. Can be modified anytime.                                                                                                                                                                                                                                                                 |
| Comment                     | User free text comment. Can be used for labels, reminders or any other purpose                                                                                                                                                                                                                               |
| Status                      | - Idle – Mirror has nothing to Sync.<br/>- Failed<br/>- Paused<br/>- Syncing (X%) – Transferring the modified data of the “Current Snapshot” to the remote Volume. X% stands for the syncing location inside the Snapshot.<br/>- Ready to sync/Syncing (X%) – Same as “Syncing” but at the destination VPSA. |
| Current Snapshot            | EMpty. Snapshots are listed in the Snapshots tab                                                                                                                                                                                                                                                             |
| RPO                         | Return Point Objective – This is the timestamp of the most recent fully synchronized Snapshot.                                                                                                                                                                                                               |
| Rate Limit                  | Maximum tranfer rate allowed for mirroring data to the remote VPSA.                                                                                                                                                                                                                                          |
| Optimization                | I/O Performance or WAN optimization                                                                                                                                                                                                                                                                          |
| Created                     | Date & time when the Mirror was created.                                                                                                                                                                                                                                                                     |
| Modified                    | Date & time when the Mirror was last modified.                                                                                                                                                                                                                                                               |
| Source VPSA / Provider      | The name of the Cloud Provider where the source VPSA resides.                                                                                                                                                                                                                                                |
| Source VPSA / VPSA          | Source VPSA name.                                                                                                                                                                                                                                                                                            |
| Source VPSA / Pool          | Pool name where the Source Volume is provisioned. This parameter is available only at the source VPSA.                                                                                                                                                                                                       |
| Source VPSA / Volume        | Source Mirror Volume name.                                                                                                                                                                                                                                                                                   |
| Destination VPSA / Provider | The name of the Cloud Provider where the destination VPSA resides.                                                                                                                                                                                                                                           |
| Destination VPSA / VPSA     | Destination VPSA name.                                                                                                                                                                                                                                                                                       |
| Destination VPSA / Provider | Pool name where the destination Volume is provisioned.                                                                                                                                                                                                                                                       |
| Destination VPSA / Pool     | Destination Mirror Volume name.                                                                                                                                                                                                                                                                              |

**Snapshots**

The Snapshots tab for Mirroring, lists the point-in-time Snapshots of
the Mirror on this VPSA. Please note that a Mirror configuration supports retaining
different numbers of Snapshots on the Source and the Destination VPSAs.
Each VPSA will display its own managed list. If you retain many
Snapshots, you may want to use the Snapshot Filtering tool to find a
specific Snapshot. For more details see [Filtering Snapshots](snapshots-and-snapshot-policies.md#filtering-snapshots).

**Snapshot Policies**

The Snapshot Policies tab for Mirroring lists the active Snapshot
Policies used by this Mirror to manage Snapshots on the Source Volume
and the Destination Volume of the Mirror. The snapshot policies only appear
on the Source VPSA, not on the Destination VPSA Mirror Snapshot Policies tab.

![image106](media/image106.png)

The Source VPSA manages the Mirror Snapshot Policies, therefore
modifications to the Mirror Snapshot Policies are configured on the
Source VPSA.

The Source VPSA updates the Destination VPSA regarding any changes to the
Dest Delete Policy.

You may make modifications while the Policy is active on a Mirror and
the changes become effective immediately. For example, if you change the
policy to retain fewer Snapshots, some older Snapshots will be deleted
immediately.

The following information is provided per Snapshot Policy on the **Source VPSA**:

- **Status** – Current state of the mirror.
- **Create Policy** – Minimum time between Snapshots.
- **Delete Policy** – How many Snapshots are retained on Source Volume.
- **Dest Delete Policy** – How many Snapshots are retained on the
  Destination Volume.

The following information is provided per Snapshot Policy on the **Destination VPSA**:

- **Status** – Current state of the mirror.
- **Create Policy** – N\\A.
- **Delete Policy** – How many Snapshots are retained on the
  Destination Volume. This value is identical to the “Dest Delete
  Policy” on the Source VPSA.
- **Dest Delete Policy** – N\\A.

**Metering**

The Mirror Metering tab provides live information of the Mirror’s transfer
throughput and IO Time associated with the selected Mirror. You
can view the Mirror metering information on either the Source or the
Destination VPSA.

The charts display the metering data as it was captured in the past 20
“intervals”. An interval length can be set to one of the following: 1
Second, 1 Minute, 10 Minutes, or 1 Hour. The Auto button lets you
see continuously updating live-metering information (refreshed every 3 seconds).

![image107](media/image107.png)

**Logs**

Displays all event logs associated with this Mirror relationship.
