Subject: Re: [vserver] Ocf resource agent
From: Edward Capriolo <edlinuxguru@gmail.com>
Date: Thu, 15 Apr 2010 22:11:42 -0400
Thu, 15 Apr 2010 22:11:42 -0400
On Tue, Apr 13, 2010 at 5:44 AM, Olivier BATARD <obatard@gmail.com> wrote:

> Thanks, work like a charm :)
>
> 2010/4/10 Adrian Reyer <are@lihas.de>
>
>  On Sat, Apr 10, 2010 at 10:09:06AM +0200, Olivier BATARD wrote:
>> > I've set up drbd resources and filesystem resource, everything woeks
>> fine, failover is nice but now I want to have a resource to start and stop
>> vserver ? Does anyone know how to do that ? I've found several script with
>> google for heartbeat but doesn't work so much ... especially with the meta
>> part.
>>
>> I wrote myself one a few months ago. Recently I discovered ocf-tester,
>> so I took the opportunity and corrected the failed tests and here it is,
>> the ocf-tester-approved and hopefully still working
>> /usr/lib/ocf/resource.d/lihas/VServer-lihas
>>
>> Regards,
>>        Adrian
>> --
>> LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
>> Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
>> Mail: lihas@lihas.de - Web: http://lihas.de
>> Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart
>>
>
>
My version should work too. Run dos2unix on it to be safe.

http://www.jointhegrid.com/ha-ocf-jtg/index.jsp




On Tue, Apr 13, 2010 at 5:44 AM, Olivier BATARD <obatard@gmail.com> wrote:
Thanks, work like a charm :)

2010/4/10 Adrian Reyer <are@lihas.de>

On Sat, Apr 10, 2010 at 10:09:06AM +0200, Olivier BATARD wrote:
> I've set up drbd resources and filesystem resource, everything woeks fine, failover is nice but now I want to have a resource to start and stop vserver ? Does anyone know how to do that ? I've found several script with google for heartbeat but doesn't work so much ... especially with the meta part.

I wrote myself one a few months ago. Recently I discovered ocf-tester,
so I took the opportunity and corrected the failed tests and here it is,
the ocf-tester-approved and hopefully still working
/usr/lib/ocf/resource.d/lihas/VServer-lihas

Regards,
       Adrian
--
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
Mail: lihas@lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart


My version should work too. Run dos2unix on it to be safe.

http://www.jointhegrid.com/ha-ocf-jtg/index.jsp