Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Force Failover when Disk fills up

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


jayfitzpatrick at gmail

Sep 22, 2009, 8:06 AM

Post #1 of 3 (662 views)
Permalink
Force Failover when Disk fills up

Hi all.

I was greeted yesterday by our 2 node Heartbeat, DRBD, CUPS, SMB server
having problems printing,

it seemed that the root drive had filled up due to a corrupt log, and that
there was no space for the print spooler to hold jobs, and I was wondering
if there is any way of setting heartbeat to fail over resources in the event
there are disk resource issues. (I have alerting setup, but this happened
over the weekend on a server that is in test and not a priority)

Thanks a mill

Jay
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


misch at multinet

Sep 22, 2009, 8:30 AM

Post #2 of 3 (616 views)
Permalink
Re: Force Failover when Disk fills up [In reply to]

Am Dienstag, 22. September 2009 17:06:28 schrieb Jason Fitzpatrick:
> Hi all.
>
> I was greeted yesterday by our 2 node Heartbeat, DRBD, CUPS, SMB server
> having problems printing,
>
> it seemed that the root drive had filled up due to a corrupt log, and that
> there was no space for the print spooler to hold jobs, and I was wondering
> if there is any way of setting heartbeat to fail over resources in the
> event there are disk resource issues. (I have alerting setup, but this
> happened over the weekend on a server that is in test and not a priority)
>
> Thanks a mill
>
> Jay

Have a look at the sysoinfo resource. If called with monitor it looks for some
parameters of the system, like CPU usage and space on root partition. You can
make a location constraint to move resources if the space mark is too low.

If you want to watch your /var partition just change the sysinfo resource
script. it is bash and changes should be quite simple.

The other option is to use #system-health attributes. See:
http://www.clusterlabs.org/wiki/SystemHealth

You would need to write a Health Deamon that looks for df on the partitions.
Please publish your code. This would be of public interest.

Greetings,

--
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: misch [at] multinet
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


jayfitzpatrick at gmail

Sep 22, 2009, 11:34 AM

Post #3 of 3 (589 views)
Permalink
Re: Force Failover when Disk fills up [In reply to]

Hi Michael..

I nearly fell of the chair when I read the bit about writing my own Daemon,
just a little outside of my skill set!

I reckon sysinfo is my best bet!

Thanks again

Jay

2009/9/22 Michael Schwartzkopff <misch [at] multinet>

> Am Dienstag, 22. September 2009 17:06:28 schrieb Jason Fitzpatrick:
> > Hi all.
> >
> > I was greeted yesterday by our 2 node Heartbeat, DRBD, CUPS, SMB server
> > having problems printing,
> >
> > it seemed that the root drive had filled up due to a corrupt log, and
> that
> > there was no space for the print spooler to hold jobs, and I was
> wondering
> > if there is any way of setting heartbeat to fail over resources in the
> > event there are disk resource issues. (I have alerting setup, but this
> > happened over the weekend on a server that is in test and not a priority)
> >
> > Thanks a mill
> >
> > Jay
>
> Have a look at the sysoinfo resource. If called with monitor it looks for
> some
> parameters of the system, like CPU usage and space on root partition. You
> can
> make a location constraint to move resources if the space mark is too low.
>
> If you want to watch your /var partition just change the sysinfo resource
> script. it is bash and changes should be quite simple.
>
> The other option is to use #system-health attributes. See:
> http://www.clusterlabs.org/wiki/SystemHealth
>
> You would need to write a Health Deamon that looks for df on the
> partitions.
> Please publish your code. This would be of public interest.
>
> Greetings,
>
> --
> Dr. Michael Schwartzkopff
> MultiNET Services GmbH
> Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
> Tel: +49 - 89 - 45 69 11 0
> Fax: +49 - 89 - 45 69 11 21
> mob: +49 - 174 - 343 28 75
>
> mail: misch [at] multinet
> web: www.multinet.de
>
> Sitz der Gesellschaft: 85630 Grasbrunn
> Registergericht: Amtsgericht München HRB 114375
> Geschäftsführer: Günter Jurgeneit, Hubert Martens
>
> ---
>
> PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
> Skype: misch42
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.