Go to main content
Oracle® ZFS Storage Appliance 관리 설⁠명⁠서, 릴⁠리⁠스 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. 복제 업데이트가 완료된 후 새 대상에서 방향이 바뀐 새 패키지로 이동합니다. 예와 같이 상태 설명은 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
    

    관련 항목