sách gpt4 ai đã đi

centos - ceph mds服务启动centos 7失败

In lại 作者:行者123 更新时间:2023-12-04 19:40:03 32 4
mua khóa gpt4 Nike

我正在尝试在 Ceph Nautilus 14.2.19 上的 Centos 7 上手动创建 ceph-mds。
首先我在 /var/lib/ceph/mds 中创建了一个文件夹格式为 -mds.然后运行以下命令:

ceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds./keyring --gen-key -n mds.
ceph auth add mds. osd "allow rwx" mds "allow *" mon "allow profile mds" -i /var/lib/ceph/mds/ceph-mds./keyring
然后我更改了 /var/lib/ceph/mds/ 内容的用户权限至 ceph:ceph .
当我检查 key 环和添加到 ceph auth list 上的 key 环时对于 mds,我可以确认它们是匹配的。
但是,当我运行 systemctl start ceph-mds@mds 时。守护进程没有启动,在 journalctl 上我得到以下错误输出:
Apr 20 11:38:14  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 ceph-mds[44742]: failed to fetch mon config (--no-mon-config to skip).
systemctl status ceph-mds@mds. 的整个输出:
● ceph-mds@mds..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 systemd[1]: Unit ceph-mds@mds..service entered failed state.
Apr 20 12:28:15 systemd[1]: ceph-mds@mds..service failed.
Apr 20 12:28:15 systemd[1]: ceph-mds@mds..service holdoff time over, scheduling restart.
Apr 20 12:28:15 systemd[1]: Stopped Ceph metadata server daemon.
Apr 20 12:28:15 systemd[1]: start request repeated too quickly for ceph-mds@mds..service
Apr 20 12:28:15 systemd[1]: Failed to start Ceph metadata server daemon.
Apr 20 12:28:15 systemd[1]: Unit ceph-mds@mds..service entered failed state.
Apr 20 12:28:15 systemd[1]: ceph-mds@mds..service failed.
这可能是什么原因?

1 Câu trả lời

解决。显然问题是因为 /var/lib/ceph/mds 中的目录命名错误。 .更改并重新启动服务后,它已修复。

关于centos - ceph mds服务启动centos 7失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67176419/

32 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com