centos - ceph mds服务启动centos 7失败
问题描述
我正在尝试在 Ceph Nautilus 14.2.19 上的 Centos 7 上手动创建 ceph-mds。首先我在里面创建了一个文件夹/var/lib/ceph/mds
,<clusterid>-mds.<hostid>
然后运行以下命令:
ceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds.<hostid>/keyring --gen-key -n mds.<hostid>
ceph auth add mds.<hostid> osd "allow rwx" mds "allow *" mon "allow profile mds" -i /var/lib/ceph/mds/ceph-mds.<hostid>/keyring
然后我将内容的用户权限更改/var/lib/ceph/mds/
为ceph:ceph
。当我检查密钥环和ceph auth list
为 mds 添加的密钥环时,我可以确认它们匹配。但是,当我运行 systemctl start ceph-mds@mds 时。守护进程没有启动,在 journalctl 上我得到以下错误输出:
Apr 20 11:38:14 <hostid> ceph-mds[44742]: 2021-04-20 11:38:14.592 7f53bcaef700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2]
Apr 20 11:38:14 <hostid> ceph-mds[44742]: failed to fetch mon config (--no-mon-config to skip).
systemctl status ceph-mds@mds. 的整个输出:
● ceph-mds@mds.<hostid>.service - Ceph metadata server daemon
Loaded: loaded (/usr/lib/systemd/system/ceph-mds@.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Tue 2021-04-20 12:28:15 +03; 11min ago
Process: 15564 ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph (code=exited, status=1/FAILURE)
Main PID: 15564 (code=exited, status=1/FAILURE)
Apr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state.
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed.
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service holdoff time over, scheduling restart.
Apr 20 12:28:15 <hostid> systemd[1]: Stopped Ceph metadata server daemon.
Apr 20 12:28:15 <hostid> systemd[1]: start request repeated too quickly for ceph-mds@mds.<hostid>.service
Apr 20 12:28:15 <hostid> systemd[1]: Failed to start Ceph metadata server daemon.
Apr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state.
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed.
这可能是什么原因?
解决方案
解决。显然问题是因为里面的目录命名错误/var/lib/ceph/mds
。更改并重新启动服务后,它已修复。
推荐阅读
- typescript - Is it possible to mimic webpack custom module resolution in TypeScript?
- ios - 无法将“Swift.__SwiftDeferredNSArray”(0x104cd8ae8)类型的值转换为“NSMutableArray”(0x7fff87c52960)
- javascript - 为什么 axios 在解析推特搜索 api 响应后会以某种方式修改推文的 id?
- asp.net - 我可以像 Tinymce 一样将 Gutenberg 文本编辑器与 Asp.net 明确集成吗?
- javascript - 在图片网址中添加字符串
- pdf - 谁使用 PDF 中的 `UserUnit` 属性?
- lua - 如何使用停止按钮停止音乐播放?
- python - 如何在 Django 中为 zip 文件创建可下载的 URL?
- android - 我无法通过 taskSnapshot.getStorage().getDownloadUrl().toString() 方法加载我的图像,请告诉我是否有任何建议
- splunk-query - 我可以使用什么正则表达式命令在 splunk 中创建一个字段