[Samba] Does CTDB run under LXC containers?
psteele at peaxy.net
Tue Aug 4 20:23:42 UTC 2015
One more thing: I assume that by enabling the sys_nice cap, this makes a
specific path under /sys or /proc to be accessible. Can you give me the
full path that the sys_nice cap maps to? Thanks.
On 08/04/2015 12:58 PM, Peter Steele wrote:
> I'm using libvirt_lxc and that has an XML based configuration. Based
> on what I've read, I think I need to add this to the ctdb container's
> <capabilities policy='default'>
> <sys_nice state='on'/>
> That didn't do the trick though. I need to figure out how to turn on
> all caps to see if that does the job.
> On 08/04/2015 10:27 AM, Ralph Böhme wrote:
>> Hi Peter,
>> On Tue, Aug 04, 2015 at 10:11:56AM -0700, Peter Steele wrote:
>>> We're transitioning from a VM based environment to one that uses LXC
>>> containers running under CentOS 7. CTDB runs fine under our CentOS 7
>>> The same packages running under LXC however seem to have issues:
>>> # systemctl start ctdb.service
>>> Job for ctdb.service failed. See 'systemctl status ctdb.service' and
>>> 'journalctl -xn' for details.
>>> # systemctl status ctdb.service
>>> ctdb.service - CTDB
>>> Loaded: loaded (/usr/lib/systemd/system/ctdb.service; disabled)
>>> Active: failed (Result: exit-code) since Tue 2015-08-04 10:09:06
>>> PDT; 5s
>>> Process: 9023 ExecStart=/usr/sbin/ctdbd_wrapper
>>> /run/ctdb/ctdbd.pid start
>>> (code=exited, status=1/FAILURE)
>>> Aug 04 10:09:04 pws-01 ctdbd: CTDB starting on node
>>> Aug 04 10:09:04 pws-01 ctdbd: Starting CTDBD (Version 2.5.4)
>>> as PID:
>>> Aug 04 10:09:04 pws-01 ctdbd: Created PID file
>>> Aug 04 10:09:04 pws-01 ctdbd: Unable to set scheduler to
>>> (Operation not permitted)
>> your container is dopping sys_nice cap, fix the container config. On
>> my Fedora LXC host this is done in a global include that is pulled
>> into all containers by default. I simply gave all caps to the
>> containers intended for ctdb and then it worked just fine.
More information about the samba