How to run the Start_Script outside the cluster
807567Jul 29 2008 — edited Jul 31 2008Hi
We have a 3 node cluster and we have 4 RG created. All is working fine.
In the situation , where the appliaction stops for some reason , I have created the probe script to only page the team and not do anything else. The probe script is always returning 0.
Also , I have suppresed the PMF monitoring as described by http://blogs.sun.com/TF/entry/disabling_pmf_action_script_with
This is the start of my start script
=====================================
#!/bin/ksh
while getopts 'R:G:' opt
do
case "${opt}" in
R) RESOURCE=${OPTARG};;
G) RESOURCEGROUP=${OPTARG};;
esac
done
sleep 60 &
/usr/cluster/bin/pmfadm -s ${RESOURCEGROUP},${RESOURCE},0.svc
[...rest of your code to start the application...]
===============================================
The reason , we did this way is because
1>When the application daemon goes down , only the master process goes down , all the child process are still up and running . The child process do not need the main daemon as long as they are UP. They only need main daemon if they need to restart.
2>If we go by complete restart of the Resource , it will kill all the child process before starting them. This can be cause of concern for us since restarting of the child process required vendor interaction attimes as most of them are TCPIP connections with various applications(We are interface engine shop)
3>However, We can just start the main daemon only and all the previous child process can connect back to it.
Question is how? I tried starting the Start script outside the cluster by passing the parameters of Resource and RG , but it threw this error
"pmfadm: ",,0.svc" No such <nametag> registered" , and I think this is because Iam running it outside the cluster as they do not have access to pmadm process. However, it starts the daemon , but I do not know if that will start PMF monitoring
4>So , how can I start the process outside the cluster
5>Also ,if I start the process outside the cluster , will it start the PMF monitoring
thanks
Dajiba
Edited by: Cluster_newbie on Jul 29, 2008 11:06 AM
Edited by: Cluster_newbie on Jul 29, 2008 11:08 AM