[DRBD-user] DRBH/HeartBeat and CROND

Rui Meireles rmeireles at tec.dsr.telecom.pt
Wed Aug 22 16:50:33 CEST 2007

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Thanks for the quick replies!

This solution should work fine, and it's quite simple.
Tomorrow I'll try it.

Thanks for the help. =D

RM


-----Original Message-----
From: Martin Bene [mailto:martin.bene at icomedias.com] 
Sent: quarta-feira, 22 de Agosto de 2007 15:34
To: Rui Meireles; drbd-user at linbit.com
Subject: AW: [DRBD-user] DRBH/HeartBeat and CROND

Hi,

> I've sucessfully installed DRBD and HeartBeat in 2 servers using a
> Primary/Secondary configuration.
> 
> Is there any way for me to start/stop ONLY the "root crontab" 
> and the "user1 crontab" with heartbeat?

I've aproached this in a slightly differnet manner:

Cron is active on both nodes, crontab is identical on both nodes.

But: contab entries check that a directory on the drbd volume exists, so
the jobs only execute on the primary host.

Example (drbd provides a filesystem that gets mounted as /usr/www)

8 * * * *       nobody  test -d /usr/www/apache && wget -O /dev/null -q
http://cms.example.com/cms/cache_purge.php

For my setup that seems to me much easier that fiddling with differnet
crontabs or having multiple cron daemons.

Bye, Martin




More information about the drbd-user mailing list