[Pacemaker] [Lxc-users] ManageLXC Resource Agent

Christoph Mitasch cmitasch at thomas-krenn.com
Fri May 27 11:34:20 CEST 2011


Hi Florian,

good pointer, I asked a while ago about a RA on lxc-users but didn't get
any response.

The existing lxc RA seems to work. I had to create the
/var/run/resource-agent directory (seems to be a known bug) and insert
the powerfail line (as mentioned in the description of the RA).

I will further test it and contribute back.

Regards,
Christoph

On 05/26/2011 04:04 PM, Florian Haas wrote:
> Hi Christoph,
> 
> On 2011-05-26 15:14, Christoph Mitasch wrote:
>> Hello,
>>
>> I just ported the ManageVE Resource Agent for OpenVZ to work with LXC
>> System Containers. The result is ManageLXC, you can find it enclosed.
>>
>> There are 2 parameters required:
>> - ctname: name of the container
>> - lxcconf: absolute path to container configuration
>>
>> The resource agent tries to make use of the lxc-ctrlaltdel command
>> supplied by Tobias Gruetzmacher to cleanly shutdown a container. The
>> script should reside in /usr/bin.
>> http://www.mail-archive.com/lxc-devel@lists.sourceforge.net/msg00881.html
>> If lxc-ctrlaltdel is missing or fails to execute, the RA uses lxc-stop
>> in addition.
>>
>> The RA does not support migration at the moment, since the LXC
>> Checkpoint/Restore feature is not in mainline so far.
> 
> Googling for "ocf lxc" could have highlighted that such a resource agent
> is already in review, contributed by Darren Thompson.
> 
> https://github.com/fghaas/resource-agents/tree/lxc
> 
> At this point I'd much prefer you contribute to the existing version,
> rather than roll a new one.
> 
> Cheers,
> Florian



More information about the Pacemaker mailing list