Clustering and cronjobs

Zu Zhihui (祖志辉) zuzhihui-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Aug 15 06:52:45 UTC 2006


Assume your shared storage is mounted on /opt/data
Use the following script as your cron script.


mountpoint -q /opt/data
if [ $? -eq 0 ]; then
   echo "this is the active node"
   #execute some scripts.
else
   echo "this is not the active node, do nothing"
fi


Hope it help

2006/8/14, Neil Watson <tlug-neil-8agRmHhQ+n2CxnSzwYWP7Q at public.gmane.org>:
> I'm setting up a cluster using the Redhat Cluster suite.  The cluster
> offers a DB2 service.  So far my tests seem to be working.  I'll post a
> report on how is did this later if anyone is interested.
>
> I'm not sure how to handle specific cron jobs that must be run on the
> active node only.  Does anyone have any experience with this?
>
> --
> Neil Watson             | Gentoo Linux
> System Administrator    | Uptime 18 days
> http://watson-wilson.ca | 2.6.16.19 AMD Athlon(tm) MP 2000+ x 2
> --
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
>
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list