# HA; cron and mount

**URL:** <https://forums.suse.com/t/ha-cron-and-mount/21892>\
**Category:** SLES Configure-Administer\
**Created:** [December 8, 2011, 4:56pm UTC](https://forums.suse.com/t/ha-cron-and-mount/21892 "2011-12-08T16:56:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [December 8, 2011, 4:56pm UTC](https://forums.suse.com/t/ha-cron-and-mount/21892/1 "2011-12-08T16:56:01Z")

</div>

Hi,

I want to change a single server - SLES 11 SP1 - into a two server HA  
cluster.  
To have a service IP and openldap run on the server does not seem to be  
a problem.

There are now two scripts started by cron on the server. Each of them  
can only run at one server at a time in the cluster.  
One of the scripts requires a NFS spool to be mounted.

The goal is to only have the two script and the mount active on the  
server with the service IP.

What is the best way to get this managed by the HA cluster software?  
Are there any useful recource agents available?

## – MoserHans

MoserHans’s Profile: [http://forums.novell.com/member.php?userid=53101](http://forums.novell.com/member.php?userid=53101)  
View this thread: [http://forums.novell.com/showthread.php?t=449332](http://forums.novell.com/showthread.php?t=449332)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [December 12, 2011, 5:56pm UTC](https://forums.suse.com/t/ha-cron-and-mount/21892/2 "2011-12-12T17:56:01Z")

</div>

Hi Hans,

pacemaker has an IPAddr2 agent for the IP address, a FileSystem agent,  
which handles NFS as well as other mounts quite nicely - and when you  
change your scripts to operate as LSB scripts, then you have the  
corresponding agent at hand, too. When you define a colocation  
constraint, you should be where you want to be.

If you really need/want to run your scripts from within cron, then a  
simple check for the prereqs (IP address and/or mount) at script startup  
should be sufficient.

With regards  
Jens

## – from the times when today’s “old school” was “new school” :eek:

jmozdzen’s Profile: [http://forums.novell.com/member.php?userid=32246](http://forums.novell.com/member.php?userid=32246)  
View this thread: [http://forums.novell.com/showthread.php?t=449332](http://forums.novell.com/showthread.php?t=449332)
