Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.
Register the resource type SUNW.gds.
# clresourcetype register SUNW.gds |
Create the resource group for the SharedAddress resource.
# clresourcegroup create sa_rg |
Create the SharedAddress resource hhead in resource group sa_rg.
# clressharedaddress create -g sa_rg hhead |
Create the resource group for the scalable service.
# clresourcegroup create -S -p RG_dependencies=sa_reg app_rg |
Create the resource for the scalable service.
# clresource create -g app_rg -t SUNW.gds
-p Validate_command="/export/app/bin/configtest" \
-p Scalable=TRUE -p Start_timeout=120 \
-p Stop_timeout=120 -p Probe_timeout=120 \
-p Port_list="2222/tcp" \
-p Start_command="/export/app/bin/start" \
-p Stop_command="/export/app/bin/stop" \
-p Probe_command="/export/app/bin/probe" \
-p Child_mon_level=0 -p Network_resource_used=hhead \
-p Failover_enabled=TRUE -p Stop_signal=9 app_rs
|
Bring the resource group that contains the network resources online.
# clresourcegroup online sa_reg |
Bring the resource group app_rg online in a managed state.
# clresourcegroup online -M app_reg |