[Pacemaker] ManageLXC Resource Agent

Florian Haas florian.haas at linbit.com
Thu May 26 14:04:41 UTC 2011


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110526/a972c121/attachment-0004.sig>


More information about the Pacemaker mailing list