成为超级用户或作为等效角色。
注册资源类型 SUNW.gds。
# scrgadm -a -t SUNW.gds |
创建资源组,其中包含 LogicalHostname 资源和故障转移服务本身。
# scrgadm -a -g haapp_rg |
为 LogicalHostname 资源创建资源。
# scrgadm -a -L -g haapp_rs -l hhead |
为故障转移服务本身创建资源。
# 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 |
将资源组 haapp_rg 联机。
# scswitch -Z -g haapp_rg |