How to add a network unaware service to sun cluster?
Hi,
I am using
2 - T2000's running on Solaris 10 and using Sun Cluster 3.1 to form a Two node cluster.
I have a requirement where I need to run a script infinetly and configure few of the cluster resources to depend on this script.
I thought if using GDS to add the script as another resource, but the script does uses any port and is completely network unaware.
Kindly suggest alternate method to configure the same.
# 1
Hi Ramesh,this one i easy, just set the parameter Network aware to false and do not provide Network_resources used an Port_list.In this case a probe command is mandatory.Detlef
# 2
Detlef,
I am refering the link
http://docs.sun.com/app/docs/doc/817-0520/6mgajjtks?a=view
Under the section "Required Properties for GDS" it is clearly mentioned that port_list is required. Also in the list of properties, I dont see
Network_aware.
Please share the document you are refering.
Also let me know if it is possible to configure a resource with only stop script and no startup script.
# 3
Hi Rameesh,
Aou are right, this is currently not documented but working. I used it in the Standard Tomcat agent.
There is also a doc bug open to get the documentation problem fixed.
It is not possible to register a resource without a start script, but you can "disable" pmf in a noop start script which has a sleep for the start timeout at least..
the call needs to be:
pmfadm -s <resource roup name>,<resource name>,0.svc
in the stop script you should submit:
pmfadm -s <resource roup name>,<resource name>,0.svc KILL 2>/dev/null
To kill the remaining sleep if it is still there.
Detlef
# 4
Detlef,
Thanks for the response, But I am lost due to lack of exposure on these commands...
Please look at the following command I am planning to use to configure new resource under an existing resource group with dependency set on another resource.
scrgadm -a -j new_res -g ha-ora-rg -t SUNW.gds \
-y Scalable=false -y Start_timeout=60 \
-y Stop_timeout=300 -x Probe_timeout=180 \
-y Port_list="12345/tcp" \
-y Resource_dependencies=ora_server_res \
-x Start_command='<path>/startdummyloop.sh' \
-x Stop_command='<path>/shutdownscript.sh' \
-x Child_mon_level=0 -x Failover_enabled=true -x Stop_signal=9
Can you please help me to modify/refraze the command which does not require port number to be specefied?
# 5
Hi Rameesh,
iYou can set:
Network unaware:
-x Network_aware=false \
and remove the port_list
In this case, you might register /usr/bin/true as the probe command if you do not have one.
If you want to go network aware, you have to add
-y Network_resources_used=<logical hostname>
without a probe command, you should supply a port like telnet or ssh, because i gds is using the simple probe to 12345. I assume that nothing is answering on 12345/tcp if you do not specify a probe command. A better approach would be here to register
-x Probe_command="/usr/bin/true"
as well.
Detlef