Sun Cluster 資料服務開發者指南 (適用於 Solaris 作業系統)

Procedure如何使用 Sun 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