Go to main content

Oracle® ZFS Storage Appliance Administration Guide, Release OS8.7.x

Exit Print View

Updated: November 2018
 
 

Reversing Replication Back to the Production Site (CLI)

After all changes have been replicated from the recovery site to the production site, reverse replication again to restore the original replication relationship between the source appliance and replication target.

  1. From the replication target, navigate to shares replication packages and list the packages.
    loader:> shares replication packages
    loader:shares replication packages> list
    
    ID          STATE DATA TIMESTAMP      SOURCE       DATASET
    package-002 idle  2015-10-02 19:26:37 hostsource   berries
    package-001 idle  2015-10-02 19:26:10 hostsource   berries
    package-004 idle  2015-10-02 20:53:51 hostsource   berries/blackberry
    package-003 recv  2015-10-02 20:59:52 hostsource   cherries/maraschino

    The package with the most recent data timestamp for this dataset is the one with the most recent, up-to-date data for the corresponding source dataset.

  2. Select the replication package you want to reverse.
    loader:shares replication packages> select package-002
  3. Enter pkgreverse.
    host-prod:shares replication package-002> pkgreverse
  4. (Optional) Set a new project name and enable the action using the following commands:
    host-prod:shares replication package-002 pkgreverse> set new_project_name=new-kmm3
                  new_project_name = new-kmm3
    host-prod:shares replication package-002 pkgreverse> set enable_action_upon_reversal=true
       enable_action_upon_reversal = true
    

    Note -  The project name must be unique on the appliance where the reverse operation is performed. If a project with the same name exists on the appliance at the production site, the reverse operation will fail.
  5. Enter show to confirm the properties, and then enter commit:
    host-prod:shares replication package-002 pkgreverse> show
    Properties:
                  new_project_name = new-kmm3
       enable_action_upon_reversal = true
    
    host-prod:shares replication package-002 pkgreverse> commit
    This action will move the contents of this package to a new local project
    configured to replicate back to the source. Any data or metadata changes made
    on the source since the last successful update will be lost when the new
    project is replicated back to the source. If replication actions on the source
    are not disabled, future updates to this package will fail.
    
  6. Depending on the protocol used, remap (SMB clients) or remount (NFS clients) shares to the appliance at the production site.

Related Topics