Hitachi TrueCopy용 Sun Cluster Geographic Edition 데이터 복제 안내서

응용 프로그램이 온라인인 상태에서 보호 그룹 작성

응용 프로그램을 오프라인으로 전환하지 않고 새 보호 그룹에 기존 응용 프로그램 자원 그룹을 추가하려면 응용 프로그램 자원 그룹이 온라인 상태인 클러스터에서 다음 단계를 완료합니다.

다른 클러스터에서 다음 단계를 완료합니다.


예 2–1 응용 프로그램이 온라인인 상태에서 Hitachi TrueCopy 보호 그룹 작성

이 예에서는 응용 프로그램을 오프라인으로 만들지 않고 보호 그룹을 작성합니다.

이 예에서, apprg1 자원 그룹은 cluster-paris 클러스터에서 온라인입니다.

  1. cluster-paris에 보호 그룹을 작성합니다.


    phys-paris-1# geopg create -d truecopy -p Nodelist=phys-paris-1,phys-paris-2 \
    -o Primary -s paris-newyork-ps tcpg
    Protection group "tcpg" has been successfully created
  2. 보호 그룹에 장치 그룹 tcdg를 추가합니다.


    phys-paris-1# geopg add-device-group -p fence_level=async tcdg tcpg
  3. 보호 그룹을 전역으로 활성화합니다.


    phys-paris-1# geopg start -e local tcpg
    Processing operation.... this may take a while....
    Protection group "tcpg" successfully started.
  4. 보호 그룹에 이미 온라인 상태인 응용 프로그램 자원 그룹을 추가합니다.


    phys-paris-1# geopg add-resource-group apprg1 tcpg
    Following resource groups were successfully inserted:
    			"apprg1"
  5. 응용 프로그램 자원 그룹이 성공적으로 추가되었는지 확인합니다.


    phys-paris-1# geoadm status
    Cluster: cluster-paris
    
       Partnership "paris-newyork-ps"    : OK
          Partner clusters               : newyork
          Synchronization                : OK
          ICRM Connection                : OK
    
          Heartbeat "hb_cluster-paris~cluster-newyork" monitoring \
    "paris-newyork-ps" OK
             Plug-in "ping-plugin"       : Inactive
             Plug-in "tcp_udp_plugin"    : OK
    
       Protection group "tcpg"           : Degraded
          Partnership                    : paris-newyork-ps
          Synchronization                : OK
    
          Cluster cluster-paris          : Degraded
             Role                        : Primary
             Configuration               : OK
             Data replication            : Degraded
             Resource groups             : OK
    
          Cluster cluster-newyork        : Unknown
             Role                        : Unknown
             Configuration               : Unknown
             Data Replication            : Unknown
             Resource Groups             : Unknown
  6. 파트너 클러스터의 한 노드에서 보호 그룹을 검색합니다.


    phys-newyork-1# geopg get -s paris-newyork-ps tcpg
    Protection group "tcpg" has been successfully created.
  7. 파트너 클러스터에서 로컬로 보호 그룹을 활성화합니다.


    phys-newyork-1# geopg start -e local tcpg
    Processing operation.... this may take a while....
    Protection group "tcpg" successfully started.
  8. 보호 그룹이 성공적으로 작성되고 활성화되었는지 확인합니다.

    cluster-paris에서 geoadm status 명령을 실행하면 다음 출력이 생성됩니다.


    phys-paris-1# geoadm status
    Cluster: cluster-paris
    
       Partnership "paris-newyork-ps"        : OK
          Partner clusters                   : newyork
          Synchronization                    : OK
          ICRM Connection                    : OK
    
          Heartbeat "hb_cluster-paris~cluster-newyork" monitoring \
    "paris-newyork-ps": OK 			
             Plug-in "ping-plugin"           : Inactive
             Plug-in "tcp_udp_plugin"        : OK
    
       Protection group "tcpg"               : Degraded
          Partnership                        : paris-newyork-ps
          Synchronization                    : OK
    
          Cluster cluster-paris              : Degraded
             Role                            : Primary
             Configuration                   : OK
             Data replication                : Degraded
             Resource groups                 : OK
    
          Cluster cluster-newyork            : Degraded
             Role                            : Secondary
             Configuration                   : OK
             Data Replication                : Degraded
             Resource Groups                 : OK