| copyright | lastupdated | keywords | subcollection | ||
|---|---|---|---|---|---|
|
2022-10-14 |
File Storage, file storage, NFS, replication, duplication, synchronous, replica schedule, replica space, disaster recovery |
FileStorage |
{{site.data.keyword.attribute-definition-list}}
{: #replication}
Replication uses one of your snapshot schedules to automatically copy snapshots to a destination volume in a remote data center. The copies can be recovered in the remote site if a catastrophic event occurs or your data becomes corrupted. {: shortdesc}
Replication keeps your data in sync in two different locations. If you want to clone your volume and use it independently from the original volume, see Creating a duplicate File Volume. {: tip}
Before you can replicate, you must create a snapshot schedule. The option to Order Replica does not appear until this condition is met. {: important}
{: #determinereplicationlocUI} {: ui}
{{site.data.keyword.cloud}} data centers are paired into primary and remote combinations in every region worldwide. When you replicate data, consider the local data residency laws because moving data across borders can have legal implications. Replication across regions is not permitted.
See Table 1 for the complete list of data center availability and replication targets within each region.
| US 1 | US 2 | Latin America | Canada | Europe | Asia-Pacific | Australia |
|---|---|---|---|---|---|---|
| - DAL05 \n - SJC01 \n - WDC01 | - SJC03 \n - SJC04 \n - WDC04 \n - WDC06 \n - WDC07 \n - DAL09 \n - DAL10 \n - DAL12 \n - DAL13 | - MEX01 \n - SAO01 \n - SAO04 \n - SAO05 | - TOR01 \n - TOR04 \n - TOR05 \n - MON01 | - AMS03 \n - FRA02 \n - FRA04 \n - FRA05 \n - LON02 \n - LON04 \n - LON05 \n - LON06 \n - PAR01 \n - MIL01 | - TOK02 \n - TOK04 \n - TOK05 \n - OSA21 \n - OSA22 \n - OSA23 \n - SNG01 \n - CHE01 | - SYD01 \n - SYD04 \n - SYD05 \n |
| {: caption="Table 1 - This table shows the complete list of data centers with enhanced capabilities in each region. Every region is a separate column. Some cities, such as Dallas, San Jose, Washington DC, Amsterdam, Frankfurt, London, and Sydney have multiple data centers." caption-side="top"} |
Data centers in US 1 can only replicate with each other. Data centers in US 2 region cannot start replication with US 1 data centers. {: note}
As part of the data center modernization strategy for {{site.data.keyword.cloud}}, several data centers and PODs are scheduled to consolidate in late 2022 and early 2023. For more information, see Data center consolidations{: external}. Provisioning storage and snapshots in closing data centers is not allowed. {: note}
{: #determinereplicationlocCLI} {: cli}
{{site.data.keyword.cloud}}'s data centers are paired into primary and remote combinations in every region worldwide. When you replicate data, consider the local data residency laws because moving data across borders can have legal implications. Replication across regions is not permitted.
To list suitable replication datacenters for a specific volume, use the following command.
# slcli file replica-locations --help
Usage: slcli file replica-locations [OPTIONS] VOLUME_ID
Options:
--sortby TEXT Column to sort by
--columns TEXT Columns to display. Options: ID, Long Name, Short Name
-h, --help Show this message and exit.{: #createrepUI} {: ui}
Replications work based on a snapshot schedule. You must first have snapshot space and a snapshot schedule for the source volume before you can replicate. The Order Replica option appears when Snapshot space and Snapshot schedule are available for the source volume. Replication is managed under Storage > {{site.data.keyword.filestorage_short}} in the {{site.data.keyword.cloud}} console{: external}.
-
Click the name of your storage volume to display its details.
-
Select the existing snapshot schedule that you want your replication to follow. The list contains all of your active snapshot schedules. \n -
You can select only one schedule even if you have a mix of hourly, daily, and weekly. All snapshots that were captured since the previous replication cycle, are replicated regardless of the schedule that originated them. \n - For more information, see Working with Snapshots. Replication starts 5 minutes after the snapshot is taken to ensure that the most up-to-date data is copied to the replica volume. {: tip}
-
Select a Location for the replica volume.
-
Click Continue.
-
Enter in a Promo Code if you have one, and click Recalculate. The other fields in the window are completed by default.
Discounts are applied when the order is processed. {: note}
-
Review your order, and read the service agreement. If you agree with the terms, check the box.
-
Click Place Order.
{: #createrepCLI} {: cli}
Replications work based on a snapshot schedule. You must first have snapshot space and a snapshot schedule for the source volume before you can replicate. Then, you can use the following command to order a replica volume.
# slcli file replica-order --help
Usage: slcli file replica-order [OPTIONS] VOLUME_ID
Options:
-s, --snapshot-schedule [INTERVAL|HOURLY|DAILY|WEEKLY]
Snapshot schedule to use for replication,
(INTERVAL | HOURLY | DAILY | WEEKLY)
[required]
-l, --location TEXT Short name of the data center for the
replicant (e.g.: dal09) [required]
--tier [0.25|2|4|10] Endurance Storage Tier (IOPS per GB) of the
primary volume for which a replicant is
ordered [optional]
-h, --help Show this message and exit.{: #replicalistUI} {: ui}
You can view your replication volumes on the {{site.data.keyword.filestorage_short}} page under Storage > {{site.data.keyword.filestorage_short}}. The volume name shows the primary volume's name followed by REP. The Type is Endurance or Performance – Replica.
{: #replicalistCLI} {: cli}
List existing replicant volumes for a file volume with the following command.
# slcli file replica-partners --help
Usage: slcli file replica-partners [OPTIONS] VOLUME_ID
Options:
--sortby TEXT Column to sort by
--columns TEXT Columns to display. Options: ID, Username, Account ID,
Capacity (GB), Hardware ID, Guest ID, Host ID
-h, --help Show this message and exit.{: #replicationhistoryUI} {: ui}
To view the Replication history, click Manage on the main menu bar. Select Account, then scroll to the Audit Log. The Storage Replication Events list contains the names of the volume, a description of the replication event and the time stamp of the event.
{: #editreplicaschedule} {: ui}
The replication schedule is based on an existing snapshot schedule. To change the replica schedule from Hourly to Daily or Weekly or vice versa, you must cancel the replica volume and set up a new one.
However, if you want to change the time of day when your Daily replication occurs, you can adjust the existing schedule on the active volume.
- On the active volume details page, click Actions
.
- Select Edit Snapshot Schedule.
- Look in the Snapshot frame under Schedule to determine which Daily schedule you're using for replication. Change the schedule that you want.
- Click Save.
{: #cancelreplicaUI} {: ui}
You can cancel replication either immediately or on the anniversary date, which causes billing to end.
- Click the volume from the {{site.data.keyword.filestorage_short}} page.
- Click Actions
.
- Select Delete Replica.
- Select when to cancel. Choose Immediately or Anniversary Date, and click Continue.
- This operation deletes the replica volume with all its data. Click the check box to acknowledge this, and click Delete.
{: #cancelprimaryUI} {: ui}
When a primary volume is deleted, the replication schedule and the volume in the replica data center are deleted, too.
{: #cloneareplica}
You can create a duplicate of an existing {{site.data.keyword.cloud}} {{site.data.keyword.filestorage_full}}. The duplicate volume inherits the capacity and performance options of the original storage volume by default and has a copy of the data up to the point-in-time of a snapshot.
Duplicates can be created from both primary and replica volumes. The new duplicate is created in the same data center as the original volume. If you create a duplicate from a replica volume, the new volume is created in the same data center as the replica volume.
Duplicate volumes can be accessed by a host for read/write as soon as the storage is provisioned. However, snapshots and replication aren't allowed until the data copy from the original to the duplicate is complete.
For more information, see Creating a duplicate File Volume.
{: #replicatotherescureDR}
When you fail over, you’re "flipping the switch" from your storage volume in your primary data center to the destination volume in your remote data center. For example, your primary data center is London and your secondary data center is Amsterdam. If a failure event occurs, you’d fail over to Amsterdam – connecting to the now-primary volume from a compute instance in Amsterdam. After your volume in London is repaired, a snapshot is taken of the Amsterdam volume to fail back to London and the once-again primary volume from a compute instance in London.
- If the primary location is experiencing problem but the storage and host are still online, see Fail over with an accessible Primary volume.
- If the primary location is down, see Fail over with an inaccessible Primary volume.