cron sync


 
Thread Tools Search this Thread
Operating Systems Solaris cron sync
# 1  
Old 05-29-2006
cron sync

hi all ,

i have a E4900 server cluster that consists of 2 Servers (Cluster1 and cluster2 )

all of my crons are located under /var/spool/cron/crontabs .

I am trying to put them on a shared place , so thati dont have to edit both crons on every system .

thank you
cheers
# 2  
Old 05-30-2006
Why not NFS export the /var/spool/cron/crontabs directory from one server and mount it on the other? You will be able to edit the files on one system through crontab, but you will have to restart cron on the other system for the changes to take effect.
# 3  
Old 05-30-2006
I dun agree to use NFS export here.
Using cluster is to achieve high availability.
Use NFS for cronjob will cause the eliminate the usefulness of clustering.

The uptime of the application will only be as good as the NFS server itself.

If using NFS is a must, use a very very high uptime Enterprise NAS is an option.

Else you can use cluster filesystem that can be mounted on both system.

PS: Failing over cronjob has been a tricky problem for Open System like Solaris and Veritas Cluster. Unless the cluster is tightly integrated into the OS, e.g. Queue Manager in OpenVMS, this problem is very very hard to solve.
Frankly speaking, I dun have a good solution too.


I would encourage the application owner to design and write their application (cronjob) in a HA manner instead of depending on the OS cron to run their job (as it is on local HDD).
# 4  
Old 05-31-2006
Quote:
Originally Posted by izy100
I dun agree to use NFS export here.
Using cluster is to achieve high availability.
Use NFS for cronjob will cause the eliminate the usefulness of clustering.

The uptime of the application will only be as good as the NFS server itself.

If using NFS is a must, use a very very high uptime Enterprise NAS is an option.

Else you can use cluster filesystem that can be mounted on both system.

PS: Failing over cronjob has been a tricky problem for Open System like Solaris and Veritas Cluster. Unless the cluster is tightly integrated into the OS, e.g. Queue Manager in OpenVMS, this problem is very very hard to solve.
Frankly speaking, I dun have a good solution too.


I would encourage the application owner to design and write their application (cronjob) in a HA manner instead of depending on the OS cron to run their job (as it is on local HDD).

I agreed with Izzy. NFS is a bad solution. THis is a common problem with an easy fix. A cron on each node must be configured. You then add a wrapper to each cron script to check which node the particular service group is running on. Veritas provides a hostactive state that you can query to determine if the service group is active. And if so, execute the script else quit.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Execution problem with Cron: Script works manually but not w/Cron. Why?

Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup is shown below: #!/bin/ksh db2... (3 Replies)
Discussion started by: okonita
3 Replies

2. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

4. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

5. UNIX for Dummies Questions & Answers

Help with sync

Folks; I have 2 SUSE DNS servers, one will be the master and one will be the slave. we normally update the master when adding any new servers to the DNS list. I'm looking for a way to sync both servers every night, so the slave is updated nightly. I thought of using "rsync" with cron to sync... (1 Reply)
Discussion started by: Katkota
1 Replies

6. Shell Programming and Scripting

Sync Solaris System Clock With PDC Using Cron

Hi, I currently use the ntpdate and date command to sync the internal clock source of my Solaris systems to the primary domain controller. admin@myserver # ntpdate -d -u 192.168.???.??? 14 Jan 17:42:02 ntpdate: ntpdate 3-5.93e+sun 03/06/05 23:16:45 (1.4) transmit(192.168.???.???)... (2 Replies)
Discussion started by: jamba1
2 Replies

7. Solaris

User entry in both cron.allow and cron.deny

Hello All, Anybody please help me to know ,what happens when a user having entry in both cron.allow and cron.deny files.Wheather the user will be able to access the crontab??? Thanks in advance Vaisakh (5 Replies)
Discussion started by: ksvaisakh
5 Replies

8. Solaris

Sync to Green vs. Separate Sync

Hi all....I have a Sun Ultra2 that I want to use with my PC monitor. I have purchased an adapter that does not work and I was told I need to change my video card setting (if I can) to Separate Sync.....my Monitor product number ends in 1343......I am running SunOS 5.7 ......anyone have any ideas? ... (0 Replies)
Discussion started by: psantinello
0 Replies

9. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

10. AIX

AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log

Hi, I can use 'crontabs –e' and do all the scheduling I like. However I would like to auto send myself just the cronjobs logs that fail. That is to say the PIDs that fail and the related lines with those PID’s only. (Not the full set of logs) Has anyone done this work? Or does an AIX 5.3 tool... (0 Replies)
Discussion started by: Keith Johnson
0 Replies
Login or Register to Ask a Question