成為超級使用者,或者假定一個對等身份。
註冊 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 |