[Lxc-users] Cluster Resource Agent

Christoph Mitasch cmitasch at thomas-krenn.com
Thu Apr 7 06:55:04 UTC 2011


Hi Brian,

I'm using the init script supplied with Ubuntu Natty.

Regards,
Christoph

On 04/06/2011 07:55 PM, Brian K. White wrote:
> On 4/6/2011 4:56 AM, Christoph Mitasch wrote:
>> Hi,
>>
>> I'm wondering if anybody is using LXC in a high availability cluster.
>>
>> I tried to use it in a Pacemaker Cluster together with DRBD.
>>
>> In theory there would be the VirtualDomain Resource Agent supporting
>> libvirt. But since my libvirt experience together with LXC was not
>> promising, I think the best option is to use lxc-tools.
>>
>> It worked for me when using the lxc init script (/etc/init.d/lxc) for
>> active/passive configurations.
>>
>> As far as I found out only /etc/lxc/ and corresponding lxc rootfs dirs
>> have to be shared. /var/lib/lxc should not be necessary, because lxc
>> init script doesn't use lxc-create/lxc-destroy.
>>
>> Anything else to take care of when moving LXC containers around machines?
>>
>> For active/active and more advanced configurations an OCF Resource Agent
>> for LXC would be nice. It could be similar to the ManageVE RA for OpenVZ:
>> http://hg.linux-ha.org/agents/raw-file/tip/heartbeat/ManageVE
>>
>> Regards,
>> Christoph
> 
> What lxc init script? I think we all write our own and there is no 
> official one yet.
> 
> I write one for openSUSE but it's not in the suse lxc package nor in any 
> other official suse package, just in a stand-alone rclxc package in my 
> buildservice repo.
> 
> If the official packages for other distros includes an init script, it 
> will be different for each one since containers are such a low-level 
> feature that can be used for so many different kinds of jobs, it's hard 
> to imagine what an official init script would even be like.
> 




More information about the lxc-users mailing list