Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

ctdb service can't start #35

Open
JackyChenNgu opened this issue Oct 18, 2018 · 3 comments
Open

ctdb service can't start #35

JackyChenNgu opened this issue Oct 18, 2018 · 3 comments

Comments

@JackyChenNgu
Copy link

ctdb: ctdb-4.7.1-9.el7_5.x86_64
os: CentOS Linux release 7.5.1804 (Core)
kernel : Linux nfs-ganesha-01 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
node: three nodes

I have with the cephfs + ctdb + nfs-ganesha to appear to HA nfs cluster , but when i configure ctdbd.conf ,and disabled selinux , then i start ctdb service ,

but the ctdb service can't start
err logs:

2018/10/17 12:41:38.789592 ctdbd[53761]: Unable to set scheduler to SCHED_FIFO (Operation not permitted)
2018/10/17 22:15:25.018211 ctdbd[257441]: Starting CTDBD (Version 4.7.1) as PID: 257441
2018/10/17 22:15:25.018396 ctdbd[257441]: Unable to set scheduler to SCHED_FIFO (Operation not permitted)

and , i have try echo 10000 > /sys/fs/cgroup/cpu/system.slice/cpu.rt_runtime_us

then start ctdb , and appear the same problem.

i hope get the reason and solved method.

look forward to your reply .

thanks

@icebal
Copy link

icebal commented Dec 1, 2018

fixed this by doing echo 95000 > /sys/fs/cgroup/cpu/system.slice/cpu.rt_runtime_us
then restarting ctdb.service. not sure what the long term fix would be.

@combrs
Copy link

combrs commented Jan 29, 2019

please see this bug , it contains long-term solution and link to [systemd clarification] (https://www.freedesktop.org/wiki/Software/systemd/MyServiceCantGetRealtime/)

I think it need to be packed in rpm! I'm using storhaug-1.0-1.el7.noarch from ovirt

@icebal
Copy link

icebal commented Mar 28, 2019

turns out this was (partly) a limits.conf issue. specifying * hard rtprio unlimited or 95000 worked for all users cept root. after specifying root hard rtprio 95000 when the service runs and "ExecStartPre=/bin/cat /sys/fs/cgroup/cpu/system.slice/cpu.rt_runtime_us" runs, it shows in the log as 95000, but still gets the "Unable to set scheduler to SCHED_FIFO (Operation not permitted)" issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants