Sun Cluster 数据服务开发者指南(适用于 Solaris OS)

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