Solaris OS용 Sun Cluster 데이터 서비스 개발 안내서

Sun Cluster 관리 명령을 사용하여 GDS를 사용하는 서비스 만들기

이 절에서는 GDS에 인자를 입력하는 방법을 설명합니다. 기존 Sun Cluster 관리 명령(예: scrgadmscswitch)을 사용하여 GDS를 유지 관리합니다.

스크립트에서 해당 기능을 제공하는 경우 이 절에 있는 저급 관리 명령을 사용할 필요가 없습니다. 그러나 GDS 기반 자원에 대한 세부적인 제어가 필요한 경우에는 저급 관리 명령을 사용할 수 있습니다. 이러한 명령은 스크립트에 의해 실행됩니다.

ProcedureSun Cluster 관리 명령을 사용하여 GDS를 사용하는 고가용성 서비스를 만드는 방법

단계
  1. 수퍼유저가 되거나 동등한 역할을 맡습니다.

  2. 자원 유형 SUNW.gds를 등록하십시오.


    # scrgadm -a -t SUNW.gds
    
  3. LogicalHostname 자원과 페일오버 서비스 자체를 포함하는 자원 그룹을 만듭니다.


    # scrgadm -a -g haapp_rg
    
  4. LogicalHostname 자원을 위한 자원을 만듭니다.


    # scrgadm -a -L -g haapp_rs -l hhead
    
  5. 페일오버 서비스 자체를 위한 자원을 만듭니다.


    # scrgadm -a -j haapp_rs -g haapp_rg -t SUNW.gds \
             -y Scalable=false -y Start_timeout=120 \
             -y Stop_timeout=120 -x Probe_timeout=120 \
             -y Port_list="2222/tcp" \
             -x Start_command="/export/ha/appctl/start" \
             -x Stop_command="/export/ha/appctl/stop" \    
             -x Probe_command="/export/app/bin/probe" \
             -x Child_mon_level=0 -y Network_resources_used=hhead \
             -x Failover_enabled=TRUE -x Stop_signal=9
    
  6. 자원 그룹 haapp_rg를 온라인 상태로 전환합니다.


    # scswitch -Z -g haapp_rg
    

ProcedureSun Cluster 관리 명령을 사용하여 GDS를 사용하는 확장 가능 서비스를 만드는 방법

단계
  1. 수퍼유저가 되거나 동등한 역할을 맡습니다.

  2. 자원 유형 SUNW.gds를 등록하십시오.


    # scrgadm -a -t SUNW.gds
    
  3. SharedAddress 자원을 위한 자원 그룹을 만듭니다.


    # scrgadm -a -g sa_rg
    
  4. sa_rgSharedAddress 자원을 만듭니다.


    # scrgadm -a -S -g sa_rg -l hhead
    
  5. 확장 가능 서비스를 위한 자원 그룹을 만듭니다.


    # scrgadm -a -g app_rg -y Maximum_primaries=2 \
          -y Desired_primaries=2 -y RG_dependencies=sa_rg
    
  6. 확장 가능한 서비스를 위한 자원을 만듭니다.


    # scrgadm -a -j app_rs -g app_rg -t SUNW.gds \
           -y Scalable=TRUE -y Start_timeout=120 \ 
           -y Stop_timeout=120 -x Probe_timeout=120 \
           -y Port_list="2222/tcp" \
           -x Start_command="/export/app/bin/start" \
           -x Stop_command="/export/app/bin/stop" \
           -x Probe_command="/export/app/bin/probe" \
           -x Child_mon_level=0 -y Network_resource_used=hhead \
           -x Failover_enabled=TRUE -x Stop_signal=9
    
  7. 네트워크 자원이 포함된 자원 그룹을 온라인 상태로 전환합니다.


     # scswitch -Z -g sa_rg
    
  8. 자원 그룹 app_rg를 온라인 상태로 전환합니다.


    # scswitch -Z -g app_rg