---
name: FileStorage-replication
title: Replicating File Storage for Classic shares for disaster recovery
description: Automatically copy snapshots to a remote data center with replication to recover data if a catastrophic event occurs or data becomes corrupted.
last-updated: 2026-06-08
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/FileStorage?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Replicating File Storage for Classic shares for disaster recovery
{: #replication}

Automatically copy snapshots to a remote data center with replication to recover data if a catastrophic event occurs or 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](https://cloud.ibm.com/docs/FileStorage?topic=FileStorage-duplicatevolume&format=markdown).
{: 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}

## Determining the remote data center for the replicated storage volume in the console
{: #determinereplicationlocUI}
{: ui}

[IBM Cloud data centers](https://cloud.ibm.com/docs/overview?topic=overview-locations&format=markdown#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 allowed.

The following table shows the data center codes within each region.

| US  | Latin America | Canada  | Europe  | Asia-Pacific  | Australia  |
|-----|-----|-----|-----|-----|-----|
| - SJC03 \n - SJC04 \n - WDC04 \n - WDC06 \n - WDC07 \n - DAL09 \n - DAL10 \n - DAL12 \n - DAL13 \n - DAL14 | - 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 - MAD02 \n - MAD04 \n - MAD05 \n | - TOK02 \n - TOK04 \n - TOK05 \n - OSA21 \n - OSA22 \n - OSA23 \n - SNG01 \n - CHE01 | - SYD01 \n - SYD04 \n - SYD05 \n |
{: caption="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="bottom"}

The table includes certain data centers that are set to close soon. For the list of data centers that are closing, see [Data center closures](https://cloud.ibm.com/docs/support?topic=support-dc-closure&format=markdown).
{: note}

## Determining the remote data center for the replicated storage volume from the CLI
{: #determinereplicationlocCLI}
{: cli}

Before you begin, decide on the CLI client that you want to use.

* You can either install the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?format=markdown){: external} and install the SL plug-in with `ibmcloud plugin install sl`. For more information, see [Extending IBM Cloud CLI with plug-ins](https://cloud.ibm.com/docs/cli?topic=cli-plug-ins&format=markdown).
* Or, you can install the [SLCLI](https://softlayer-python.readthedocs.io/en/latest/cli/){: external}.

[IBM Cloud data centers](https://cloud.ibm.com/docs/overview?topic=overview-locations&format=markdown#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 allowed.

### Listing locations from the IBMCLOUD CLI
{: #determinereplicationlocICCLI}

You can use the `ibmcloud sl file replica-locations` command to locate a suitable replica location for your file share. The following example lists the available location for a file share in the US south region.

```sh
$ ibmcloud sl file replica-locations 560156918
ID        Short Name   Long Name
449494    dal09        Dallas 9
957095    wdc04        Washington 4
1004995   sjc03        San Jose 3
1441195   dal10        Dallas 10
1854795   dal12        Dallas 12
2017603   wdc07        Washington 7
2017695   wdc06        Washington 6
2178495   sjc04        San Jose 4
```
{: codeblock}

For more information about all of the parameters that are available for this command, see [ibmcloud sl file replica-locations](https://cloud.ibm.com/docs/cli?topic=cli-sl-file-storage-service&format=markdown#sl_file_replica_locations).

### Listing locations from the SLCLI
{: #determinereplicationlocSLCLI}

To list suitable replication data centers for a specific volume, use the following command.

 ```sh
  # 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.
 ```
 {: codeblock}

 As part of the data center modernization strategy for IBM Cloud&reg;, several data centers are scheduled to consolidate in 2023. For more information, see [Data center consolidations](https://cloud.ibm.com/docs/support?topic=support-dc-closure&format=markdown){: external}.
{: note}

## Determining the remote data center for the replicated storage volume with the API
{: #determinereplicationlocAPI}
{: api}

To determine available replication locations for your File Storage for Classic volume, you can use the [`get_replication_locations` method](https://softlayer-python.readthedocs.io/en/latest/api/managers/SoftLayer.managers.FileStorageManager/#SoftLayer.managers.FileStorageManager.get_replication_locations){: external} in the API Python client. Specify your source `volume_id`, and the API response returns an array of locations where replicas can be created.

## Creating the initial replica in the console
{: #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** > **File Storage for Classic** in the [IBM Cloud&reg; console](https://cloud.ibm.com/cloud-storage/file){: external}.

1. Click the name of your storage volume to display its details.
2. Click **Actions** ![Actions icon](../icons/action-menu-icon.svg "Actions") and click **Order replica**.
3. Select the existing snapshot schedule that you want your replication to follow. The list contains all of your active snapshot schedules.

   You can select only one schedule even if you have a mix of hourly, daily, and weekly. All the snapshots, which were captured since the previous replication, are replicated regardless of the schedule that originated them. For more information, see [Working with Snapshots](https://cloud.ibm.com/docs/FileStorage?topic=FileStorage-snapshots&format=markdown). Replication starts 5 minutes after the snapshot is taken to make sure that the most up-to-date data is copied to the replica volume.
   {: tip}

4. Select a **Location** for the replica volume.
5. Click **Continue**.
6. 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}

7. Review your order, and read the service agreement. If you agree with the terms, check the box.
8. Click **Place Order**.

## Creating the initial replica from the CLI
{: #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.

### Creating the initial replica from the IBMCLOUD CLI
{: #createrepICCLI}

You can use the `ibmcloud sl file replica-order` command to create a replica for your file share. The following example creates a replica in DAL09 for the file share `560156918`.

```sh
$ ibmcloud sl file replica-order 560156918  -s DAILY -d dal09 --tier 4
This action will incur charges on your account. Continue?> y
OK
Order 110551616 was placed.
 > Storage as a Service
 > File Storage
 > 500 GBs
 > 4 IOPS per GB
 > 500 GB (Snapshot Space)
 > Replication for tier-based performance. Replicant of: SL02SEV1414935_268

```
{: codeblock}

For more information about all of the parameters that are available for this command, see [ibmcloud sl file replica-order](https://cloud.ibm.com/docs/cli?topic=cli-sl-file-storage-service&format=markdown#sl_file_replica_order).

### Creating the initial replica from the SLCLI
{: #createrepSLCLI}

You can use the following command to order a replica volume.

```sh
$ 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.
```

## Creating the initial replica with the API
{: #createrepAPI}
{: api}

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.

To create a replica, use the [`order_replicant_volume` method](https://softlayer-python.readthedocs.io/en/latest/api/managers/SoftLayer.managers.FileStorageManager/#SoftLayer.managers.FileStorageManager.order_replicant_volume){: external} of the API Python client. Specify the ID of the primary volume to be replicated with the `volume_id` parameter, the `snapshot_schedule` to use for replication, the `location` for the replica volume, and the `tier` or `iops` value of the new replica.

## Viewing the replica volumes in the Volume List in the console
{: #replicalistUI}
{: ui}

You can view your replication volumes on the File Storage for Classic page under **Storage** > **File Storage for Classic**. The volume name shows the primary volume's name followed by REP. The **Type** is Endurance or Performance - Replica.

## Viewing the replica volumes from the CLI
{: #replicalistCLI}
{: cli}

### Listing replica volumes from the IBMCLOUD CLI
{: #replicalistICCLI}

You can use the `ibmcloud sl file replica-order` command to list the replicas of your file share. The following example lists the replica partners of the file share `560156918`.

```sh
$ ibmcloud sl file replica-partners 560156918
ID          User name                  Account ID   Capacity (GB)   Hardware ID   Guest ID   Host ID
560382016   SL02SEV1414935_268_REP_1   1234567      500             -             -          -
```
{: codeblock}

For more information about all of the parameters that are available for this command, see [ibmcloud sl file replica-partners](https://cloud.ibm.com/docs/cli?topic=cli-sl-file-storage-service&format=markdown#sl_file_replica_partners).

### Listing replica volumes from the SLCLI
{: #replicalistSLCLI}

List existing replicant volumes for a file volume with the following command.
```sh
  # 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.
```
{: screen}

## Listing the replica volumes with the API
{: #replicalistAPI}
{: api}

To list the replica volumes that are related to the primary volume, use the [`get_replication_partners`method](https://softlayer-python.readthedocs.io/en/latest/api/managers/SoftLayer.managers.FileStorageManager/#SoftLayer.managers.FileStorageManager.get_replication_partners){: external} and specify the primary `volume_id`. A successful response presents the list of replica volumes of the specified volume.

## Editing the Replication Schedule in the console
{: #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.

1. On the active volume details page, click **Actions** ![Actions icon](../icons/action-menu-icon.svg "Actions").
2. Select **Edit Snapshot Schedule**.
3. Look in the **Snapshot** frame under **Schedule** to determine which Daily schedule you're using for replication. Change the schedule that you want.
4. Click **Save**.

## Deleting an existing replica file share in the console
{: #cancelreplicaUI}
{: ui}

You can cancel replication either immediately or on the anniversary date, which causes billing to end.

1. Click the volume from the **File Storage for Classic** page.
2. Click **Actions** ![Actions icon](../icons/action-menu-icon.svg "Actions").
3. Select **Delete replica**.
4. Select when to cancel. Choose **Immediately** or **Anniversary Date**, and click **Continue**.
5. This operation deletes the replica volume with all its data. Click the checkbox to acknowledge the information, and click **Delete**.

## Canceling replication when the primary volume is deleted in the console
{: #cancelprimaryUI}
{: ui}

When a primary volume is deleted, the replication schedule and the volume in the replica data center are deleted, too.

You can expect the volume to remain visible in your Storage list for at least 24 hours (immediate cancellation) or until the anniversary date. Certain features aren't going to be available any longer, but the volume remains visible until it is reclaimed. However, billing is stopped immediately after you click **Delete replica**.

Active replicas can block reclamation of the Storage volume. Make sure that the volume is no longer mounted, host authorizations are revoked, and replication is canceled before you attempt to cancel the original volume.
{: important}

## Creating a duplicate of a replica
{: #cloneareplica}

You can create a duplicate of an existing IBM Cloud&reg; File Storage for Classic. 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](https://cloud.ibm.com/docs/FileStorage?topic=FileStorage-duplicatevolume&format=markdown).

## Using replicas to fail over when disaster strikes
{: #replicatotherescureDR}

When you fail over, you're switching 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 a problem but the storage and host are still online, see [Failover with an accessible primary volume](https://cloud.ibm.com/docs/FileStorage?topic=FileStorage-dr-accessible&format=markdown).
* If the primary location is down, see [Failover with an inaccessible primary volume](https://cloud.ibm.com/docs/FileStorage?topic=FileStorage-dr-inaccessible&format=markdown).