# Clustering Apache - Logrotate

**URL:** <https://forums.suse.com/t/clustering-apache-logrotate/24809>\
**Category:** SLES High Availability Extension\
**Created:** [November 26, 2013, 6:29pm UTC](https://forums.suse.com/t/clustering-apache-logrotate/24809 "2013-11-26T18:29:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfcadmin](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@dfcadmin](https://forums.suse.com/u/dfcadmin)\
**Post date:** [November 26, 2013, 6:29pm UTC](https://forums.suse.com/t/clustering-apache-logrotate/24809/1 "2013-11-26T18:29:18Z")

</div>

Hi,

I’ve got a 3 node cluster running various apache instances, had a problem today where on of the pool mounts ran out of disk space because the access\_log reached 3.2GB

I’m new to SUSE Clustering and wondering what the best approach is to setting up scheduled job that only runs on the node with the active instance

Cheers

---

<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:** [November 26, 2013, 7:30pm UTC](https://forums.suse.com/t/clustering-apache-logrotate/24809/2 "2013-11-26T19:30:02Z")

</div>

On Tue, 26 Nov 2013 16:34:02 +0000, dfcadmin wrote:  
[color=blue]

> I’m new to SUSE Clustering and wondering what the best approach is to  
> setting up scheduled job that only runs on the node with the active  
> instance[/color]

What I’ve done in the past is to set it up so that it runs on all nodes,  
but have the script check to see if the current node has the resource  
(file system, in this case) local, and if not, then just exit immediately.

## –

David Gersic [dgersic\_@\_niu.edu](mailto:dgersic_@_niu.edu)  
Knowledge Partner [http://forums.netiq.com](http://forums.netiq.com)

Please post questions in the forums. No support provided via email.  
If you find this post helpful, please click on the star below.

---

<div class="post-metadata">

**Author:** ![dfcadmin](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@dfcadmin](https://forums.suse.com/u/dfcadmin)\
**Post date:** [November 27, 2013, 11:06am UTC](https://forums.suse.com/t/clustering-apache-logrotate/24809/3 "2013-11-27T11:06:35Z")

</div>

OK thanks for that, i’ll write a script to that effect

Regards  
Dave
