Go to main content
Oracle® ZFS Storage Appliance 管理ガイド、Release OS8.7.0

印刷ビューの終了

更新: 2017 年 3 月
 
 

本番サイトにレプリケーションを逆向きにする (CLI)

すべての変更が回復サイトから本番サイトにレプリケーションされたあと、ソースアプライアンスとレプリケーションターゲットの間の元のレプリケーション関係を復元するために、レプリケーションをふたたび逆方向にします。

  1. レプリケーションターゲットから、shares replication 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

    このデータセットの最新の data timestamp を持つパッケージは、対応するソースデータセットの最新のデータを含むパッケージです。

  2. 逆向きにするレプリケーションパッケージを選択します。
    loader:shares replication packages> select package-002
  3. pkgreverse と入力します。
    host-prod:shares replication package-002> pkgreverse
  4. (オプション) 次のコマンドを使用して、新しいプロジェクト名を設定し、アクションを有効にします。
    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
    

    注 -  プロジェクト名は、逆向き操作が実行されるアプライアンス上で一意である必要があります。本番サイトのアプライアンス上に同じ名前のプロジェクトが存在している場合、逆向き操作は失敗します。
  5. show と入力してプロパティーを確認し、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. 使用されるプロトコルに応じて、シェアを本番サイトのアプライアンスに再マップ (SMB クライアント) または再マウント (NFS クライアント) します。

関連トピック