在为Ceph集群创建新的OSD时,错误出现在/var/log/syslog
中。这些症状是无声的,并且ansible显示以下错误:
monclient: authenticate NOTE: no keyring found; disabled cephx
authentication", "librados: client.admin authentication error (95)
Operation not supported", " stderr: [errno 95] error connecting to the cluster"
答案 0 :(得分:0)
解决方案是固定主机上的资源限制。
$ vim /lib/systemd/system/ceph-osd@.service
查看限制
[Service]
LimitNOFILE=1048576
LimitNPROC=1048576
检查系统的最大限制。
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 148786
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 145383
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 148786
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
设置主机期望的限制。
[Service]
LimitNOFILE=145383
LimitNPROC=148786
重新加载systemctl守护程序
$ sudo systemctl daemon-reload
重新启动服务