Centralized Cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

Dear All,

Is there any way to make a centalized cron while using Redhat HA cluster with Sahred storage. I mean to put the crontab entry for a particular user on shared storage, so that when the cluster shifts, on the other node cron should read from the cron file in shared storage.

This setup has the advantage that we don't need to manullay update the cron entry in both nodes.

I tried two ways , but not success

a) Make a soft link from /var/spool/cron/<user> to /path/to/shared/storage/<user>. This will work as long as I didn't make any changes to existing crontab. Once I make changes to crontab, the link is removed and file is created at /var/spool/cron/<user>

b) Soft link the cron directory in /var/spool to /path/to/shared/storage/cron. This is working till the cluster shift. The cron is getting dead when the cluster shifts as it lose the /var/spool/cron link's destination driectory which will be mapped to the other node

Thanks in advance

Saju John



--

Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux