Am 12.07.2012 um 17:04 schrieb Dejan Muhamedagic:

> Hi,
>
> On Thu, Jul 12, 2012 at 03:05:28PM +0200, Helmut Wollmersdorfer wrote:
>> Hi,
>>
>>
>> today one DomU running mainly Apache, Typo3, MySQL went unusable.
>>
>> Last message from Nagios:
>>
>> Ram : 98%, Swap : 100% :  99, 90 : CRITICAL
>>
>> Logging in with xm console I saw oom-killer messages and did an xm
>> destroy.
>>
>> Is there any solution to automatically destroy and restart a DomU in
>> such a case?
>
> You can add the script hook to your xen resource. See:
>
> crm ra info Xen
> ...
> monitor_scripts (string): list of space separated monitor scripts
>    To additionally monitor services within the unprivileged domain,
>    add this parameter with a list of scripts to monitor.
> ...
>
> A script should exit with 0 on success. I guess that you can
> just do curl URL which exercises the apache and/or mysql.

Ok, I will try this. Thanks for the hint.

Helmut Wollmersdorfer
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to