Learn about using File Storage replication for disaster recovery.
Important
When making disaster recovery plans, ensure that you have enough available resources to create the clones, file systems, and mount targets necessary for unplanned failovers. Common disaster recovery scenarios require creation of at least one extra file system for each unavailable source file system. At least one mount target is required to provide access to file systems created during failovers. See File Storage Limits for more information.
The following table shows the basic steps of recovery using File Storage replication:
Disaster recovery requires that you use clones of the source and target file systems. When creating file systems, you must remain within File Storage service limits. Clones are required because you can't use a file system that has been exported as a target file system. Cloning the file system creates a copy of the file system with no history of being exported.
Creating a clone is instantaneous and you can immediately access the clone for both READ and WRITE operations. While hydration is in progress, a minor performance impact might be observed on both the parent and clone when accessing shared data.
If the region containing the source file system (File System A) is inaccessible, clone the last applied replication snapshot on the target file system (File System B) to a new file system (File System C):
Open the navigation menu and select Storage. Under File Storage, select File Systems.
In the List Scope section, select a compartment.
To view information about a file system, find the file system, click the Actions menu (), and then click View File System Details.
Click the Replication Target name link. The Replication Target Details page is displayed.
Click the Last Snapshot name link. The Snapshot Details page is displayed.
Important
Note the Provenance OCID of the last applied snapshot at this time. This identifies the snapshot on the source file system needed when you failback to the source. For more information, see Identifying Snapshots.
Click Clone to use the snapshot to create a new file system (File System C). See Cloning a File System for more information.
Deleting the replication target resource stops the replication process, but any in-progress replications might finish after the source is restored. If you don't delete the replication target, replication will resume when the source file system is restored, which can delete the snapshot needed in a planned failback to the source.
Tip
If you're testing: The source availability domain is still available, so you can just delete the replication resource from the source file system. Deleting the replication resource automatically deletes the replication target resource.
When the primary region is restored, prepare to failback to the source. Depending on your requirements, you may failback to a new, empty file system, or failback to a clone of the source file system. Use reverse replication to sync the data and bring it up-to-date.
Note
Failback to a new file system requires a full base copy. You can use the replication estimator to decide if this scenario would be fast enough during disaster recovery.
When the replication is deleted, the replication snapshot is converted to a user snapshot.
Identify the snapshot common to the source file system (File System A) and the file system that you created when you failed over to the target (File System C). The snapshot you use should be in both the source and clone of the target.
On the source file system (File System A), you can use the Provenance OCID you made note of earlier to identify this snapshot.
Caution
The Last Snapshot could identify a snapshot that completed after the initial failover to target, not the snapshot used to create File System C.
On File System C, you can find the last snapshot with a name such as replication-snapshot-<replication_number>-<creation_time_UTC> but a type of User. When you cloned the replication snapshot to create the file system, the snapshot type changed from Replication to User.
3. Re-Establish Replication from Source to Target 🔗
Reestablish the original replication configuration. Migrate applications from File System C to File System D and stop writing to File System C. Then, create a replication from your source (File System D) to a new target clone (File System E).