Oracle® ZFS Storage Appliance 管理指南,发行版 OS8.6.0

退出打印视图

更新时间: 2016 年 7 月
 
 

为脱机复制反转复制 (CLI)

按照下面的过程将脱机复制数据包移到一个新的本地项目(已配置为复制回源设备)。

开始之前

将脱机复制流从 NFS 服务器导入到目标设备,如从 NFS 服务器中导入复制流 (CLI)中所述。

  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. 复制更新完成后,导航到新目标上新反转的数据包。状态描述应为 "Idle"(闲置)(等待导入),如下例所示:
    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
    

    相关主题