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

印刷ビューの終了

更新: 2016 年 9 月
 
 

オフラインレプリケーションのためのレプリケーションの逆向き処理 (CLI)

この手順に従って、オフラインのレプリケーションパッケージを、ソースアプライアンスにレプリケートして戻すように構成された新しいローカルプロジェクトに移動します。

始める前に

NFS サーバーからレプリケーションストリームをインポートする (CLI)の説明に従って、オフラインのレプリケーションストリームを NFS サーバーからターゲットアプライアンスにインポートします。

  1. ターゲットアプライアンスからレプリケートされたパッケージに移動し、プロジェクトを検索します。
    target:configuration services replication source-000 package-000> ls
    Properties:
                                id = 1c0457eb-45bd-4f91-8e08-bc0dbacd40b7
                           enabled = true
                             state = idle
                 state_description = Idle (no update in progress)
                           offline = false
                       import_path = 
                         last_sync = Fri Jul 31 2015 21:59:19 GMT+0000 (UTC)
                          last_try = Fri Jul 31 2015 21:59:19 GMT+0000 (UTC)
                       last_result = success
    
    Projects:
                             proj1
    
  2. reverse とプロジェクト名を入力します。
    target:configuration services replication source-000 package-000> reverse proj1
    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.
    
    Are you sure? (Y/N) Y
  3. 新しいレプリケーションアクションに移動します。
    target:configuration services replication sources> cd /
    target:> shares select proj1 replication
    target:shares proj1 replication> select action-000
    target:shares proj1 action-000> ls
    Properties:
                                id = 6a10ce61-cc87-4850-89dd-8673f7734d03
                            target = new_target
                           enabled = true
                        continuous = false
                     include_snaps = false
       retain_user_snaps_on_target = false
                     max_bandwidth = unlimited
                        bytes_sent = 0
                    estimated_size = 0
               estimated_time_left = 00:00:00
                average_throughput = 0B/s
                           use_ssl = false
                       compression = on
                       export_path = 
                             state = idle
                 state_description = Idle (no update in progress)
                    export_pending = false
                           offline = false
                       next_update = Sync now
                         last_sync = <unknown>
                          last_try = <unknown>
                       last_result = <unknown>
  4. 逆転後の初回のレプリケーション更新を NFS サーバーにエクスポートするには、export_path とNFS サーバーのパス名を入力します。commit と入力してから sendupdate を実行します。
    target:shares proj1 action-000> set export_path=nfs://nfs_server/export/init_repl
                       export_path = nfs://nfs_server/export/init_repl (uncommitted)
    target:shares proj1 action-000> commit
    target:shares proj1 action-000> sendupdate
    target:shares proj1 action-000> ls
    Properties:
                                id = 6a10ce61-cc87-4850-89dd-8673f7734d03
                            target = new_target
                           enabled = true
                        continuous = false
                     include_snaps = false
       retain_user_snaps_on_target = false
                     max_bandwidth = unlimited
                        bytes_sent = 0
                    estimated_size = 0
               estimated_time_left = 00:00:00
                average_throughput = 0B/s
                           use_ssl = false
                       compression = on
                       export_path = 
                             state = idle
                 state_description = Idle (no update in progress)
                    export_pending = false
                           offline = true
                       next_update = Sync now
                         last_sync = <unknown>
                          last_try = Fri Jul 31 2015 22:17:33 GMT+0000 (UTC)
                       last_result = success
  5. レプリケーション更新が完了したあと、新しいターゲットにある逆転された新しいパッケージに移動します。次の例に示すように、状態の説明は、アイドル (インポートを待機中) にします。
    new_target:configuration services replication sources> ls
    Sources:
    
    source-000 <unknown>
                PROJECT                        STATE           LAST UPDATE
    package-000 proj1                          idle            unknown
    
    new_target:configuration services replication sources> select source-000 select package-000 
    new_target:configuration services replication source-000 package-000> ls
    Properties:
                                id = 6a10ce61-cc87-4850-89dd-8673f7734d03
                           enabled = true
                             state = idle
                 state_description = Idle (awaiting import)
                           offline = true
                       import_path = 
                         last_sync = unknown
                          last_try = unknown
                       last_result = unknown
    
    Projects:
                             proj1
    new_target:configuration services replication source-000 package-000> set import_path=nfs://nfs_server/export/init_repl
                       import_path = nfs://nfs_server/export/init_repl (uncommitted)
  6. NFS サーバーから更新をインポートします。
    new_target:configuration services replication source-000 package-000> set import_path=nfs://nfs_server/export/init_repl
                       import_path = nfs://nfs_server/export/init_repl (uncommitted)
  7. commit と入力してパッケージのプロパティーをリスト表示し、更新が完了したことを確認します。
    new_target:configuration services replication source-000 package-000> commit
    new_target:configuration services replication source-000 package-000> ls
    Properties:
                                id = 6a10ce61-cc87-4850-89dd-8673f7734d03
                           enabled = true
                             state = idle
                 state_description = Idle (no update in progress)
                           offline = false
                       import_path = 
                         last_sync = Fri Jul 31 2015 22:11:32 GMT+0000 (UTC)
                          last_try = Fri Jul 31 2015 22:11:32 GMT+0000 (UTC)
                       last_result = success
    
    Projects:
                             proj1
    

    関連トピック