Go to main content

Oracle® ZFS Storage Appliance 관리 설명서, 릴리스 OS8.8.x

인쇄 보기 종료

업데이트 날짜: 2021년 8월
 
 

오프라인 복제 방향 바꾸기(CLI)

소스 어플라이언스로 다시 복제하도록 구성된 새 로컬 프로젝트로 오프라인 복제 패키지를 이동하려면 이 절차를 수행하십시오.

시작하기 전에

NFS 서버에서 복제 스트림 가져오기(CLI)에 설명되어 있는 것처럼 NFS 서버에서 복제 대상으로 오프라인 복제 스트림을 가져옵니다.

  1. 복제 대상에서 복제된 패키지로 이동하고 프로젝트를 찾습니다.
    target:> shares replication packages
    target: shares replication packages> select package-000
    target:shares replication package-000> ls
    Properties:
    
                                id = 1c0457eb-45bd-4f91-8e08-bc0dbacd40b7
                       source_name = bigfish78
                        source_asn = d1fce51d-b8a9-6cf8-d71e-fcd4fe42cd0e
                         source_ip = 10.000.000.000:216
                       target_pool = poolA
                        replica_of = proj1
                           enabled = true
                             state = idle
                 state_description = Idle (no update in progress)
                           offline = false
                       import_path =
                    data_timestamp = Thu Feb 16 2017 19:10:59 GMT+0000 (UTC)
                         last_sync = Fri Feb 17 2017 03:10:11 GMT+0000 (UTC)
                          last_try = Fri Feb 17 2017 03:10:11 GMT+0000 (UTC)
                       last_result = success
    
    
    Projects:
                             proj1
    
  2. pkgreverse를 입력합니다.
    target:shares replication package-000> pkgreverse
  3. (옵션) 다음 명령을 사용하여 새 프로젝트 이름을 설정하고 작업을 사용으로 설정합니다.
    target:shares replication package-000 pkgreverse> set new_project_name=new-kmm3
                  new_project_name = new-kmm3
    target:shares replication package-000 pkgreverse> set enable_action_upon_reversal=true
       enable_action_upon_reversal = true
    

    주 -  프로젝트 이름은 방향 바꾸기 작업이 수행되는 어플라이언스에서 고유해야 합니다. 이름이 동일한 프로젝트가 운용 사이트의 어플라이언스에 존재하는 경우 방향 바꾸기 작업이 실패합니다.
  4. show를 입력하여 등록 정보를 확인한 후 commit을 입력합니다.
    target:shares replication package-000 pkgreverse> show
    Properties:
                  new_project_name = new-kmm3
       enable_action_upon_reversal = true
    
    host-prod:shares replication package-000 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.
    
  5. shares replication actions로 이동합니다.
    target:shares replication packages> cd /
    target:> shares replication actions
  6. 이전 단계의 패키지 ID를 사용하여 새로 만든 작업을 선택합니다.

    작업을 선택하려면 패키지 ID를 origin_pkg_id로 사용합니다.

    target:shares replication actions> select origin_pkg_id=
    1c0457eb-45bd-4f91-8e08-bc0dbacd40b7
    target:shares replication action-000> ls
    Properties:
                                id = 6a10ce61-cc87-4850-89dd-8673f7734d03
                     origin_pkg_id = 1c0457eb-45bd-4f91-8e08-bc0dbacd40b7
                            target = new_target
                       target_pool = p
                       source_pool = p
                    replication_of = dataset1
                           enabled = true
                        continuous = false
                     include_snaps = false
       retain_user_snaps_on_target = false
                             dedup = false
      include_clone_origin_as_data = 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
            replica_data_timestamp = Thu Nov 21 2019 16:17:25 GMT+0000 (UTC)
                         last_sync = <unknown>
                          last_try = <unknown>
                       last_result = <unknown>
                       replica_lag = 461:55:40
          recovery_point_objective =
         replica_lag_warning_alert =
           replica_lag_error_alert =
    replica_lag_over_warning_limit = false
      replica_lag_over_error_limit = false
  7. NFS 서버로 방향을 바꾼 후 첫번째 복제 업데이트를 내보내려면 export_path와 NFS 서버의 경로 이름을 입력합니다. commit을 입력한 다음 sendupdate를 입력합니다.
    target:shares replication action-000> set export_path=nfs://nfs_server/export/init_repl
                       export_path = nfs://nfs_server/export/init_repl (uncommitted)
    target:shares replication action-000> commit
    target:shares replication action-000> sendupdate
    target:shares replication action-000> ls
    Properties:
                                id = 6a10ce61-cc87-4850-89dd-8673f7734d03
                     origin_pkg_id = 1c0457eb-45bd-4f91-8e08-bc0dbacd40b7
                            target = new_target
                       target_pool = p
                       source_pool = p
                    replication_of = dataset1
                           enabled = true
                        continuous = false
                     include_snaps = false
       retain_user_snaps_on_target = false
                             dedup = false
      include_clone_origin_as_data = 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 = nfs://nfs_server/export/init_repl
                             state = idle
                 state_description = Idle (no update in progress)
                    export_pending = false
                           offline = false
                       next_update = Sync now
            replica_data_timestamp = Thu Nov 21 2019 16:17:25 GMT+0000 (UTC)
                         last_sync = <unknown>
                          last_try = <unknown>
                       last_result = <unknown>
                       replica_lag = 461:55:40
          recovery_point_objective =
         replica_lag_warning_alert =
           replica_lag_error_alert =
    replica_lag_over_warning_limit = false
      replica_lag_over_error_limit = false
  8. 복제 업데이트가 완료된 후 새 대상에서 방향이 바뀐 새 패키지로 이동합니다. 상태 설명은 다음 예에 나와 있는 것처럼 Idle(유휴) 상태여야 합니다.
    new_target:shares replication packages> ls
    Packages:
    
    ID          STATE DATA_TIMESTAMP      SOURCE     DATASET
    package-000 idle  unknown             target     <unknown>
  9. 패키지를 선택하고 ls를 입력하여 등록 정보를 나열합니다.
    new_target:shares replication packages> select package-000
    new_target:shares replication package-000> ls
    
    Properties:
                                id = 6a10ce61-cc87-4850-89dd-8673f7734d03
                       source_name = target
                        source_asn = ddbd5d4e-daff-4f52-9417-cd6e893c694a
                         source_ip = 00.000.00.000:216
                       source_pool = poolA
                       target_pool = poolA
                        replica_of = <unknown>
                           enabled = true
                             state = idle
                 state_description = Idle (no update in progress)
                           offline = true
                       import_path =
                    data_timestamp = unknown
                         last_sync = unknown
                          last_try = unknown
                       last_result = unknown
  10. NFS 서버에서 업데이트를 가져옵니다.
    new_target:shares replication package-000> set import_path=nfs://nfs_server/export/init_repl
                       import_path = nfs://nfs_server/export/init_repl (uncommitted)
  11. commit을 입력한 다음 패키지 등록 정보를 나열하여 업데이트가 완료되었음을 확인합니다.

    last_result 등록 정보에 success가 표시됩니다.

    new_target:shares replication package-000> commit
    new_target:shares replication package-000> ls
    Properties:
                                id = 6a10ce61-cc87-4850-89dd-8673f7734d03
                       source_name = target
                        source_asn = ddbd5d4e-daff-4f52-9417-cd6e893c694a
                         source_ip = 00.000.00.000:216
                       source_pool = poolA
                       target_pool = poolA
                        replica_of = <unknown>
                           enabled = true
                             state = idle
                 state_description = Idle (no update in progress)
                           offline = false
                       import_path =
                    data_timestamp = unknown
                         last_sync = Fri Nov 22 2019 22:11:32 GMT+0000 (UTC)
                          last_try = Fri Nov 22 2019 22:11:32 GMT+0000 (UTC)
                       last_result = success

    관련 항목