找回密码
 注册
查看: 622|回复: 1

ceph-authtool 部署ceph-mds

[复制链接]

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
发表于 2022-7-26 15:00:29 | 显示全部楼层 |阅读模式
I'm trying to create ceph-mds manually on Centos 7 on Ceph Nautilus 14.2.19. first i created a folder inside /var/lib/ceph/mds in the format of <clusterid>-mds.<hostid> then ran the following commands:' G& |2 e: f8 v+ V% O! d% d

9 Y! {6 g& ~) t, u( W0 Y7 Nceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds.<hostid>/keyring --gen-key -n mds.<hostid>
$ W2 u' t; @/ c% s0 kceph auth add mds.<hostid> osd "allow rwx" mds "allow *" mon "allow profile mds" -i /var/lib/ceph/mds/ceph-mds.<hostid>/keyring* }# L  `2 x, A, B7 p
6 v' D1 m& `1 X; n% K, A# K1 N
4 J, ]; h$ h8 O% N  I/ |' D0 O/ j
Then i changed user permissions of contents of /var/lib/ceph/mds/ to ceph:ceph. When i check the keyring and the keyring added on ceph auth list  for mds i can confirm they are matching. 9 `/ _1 m, J. l- x
However when I run systemctl start ceph-mds@mds. the daemon doesnt start and on journalctl i get the following error output:7 _7 A9 F/ i4 Q, [9 |( z7 _
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]; k) W& e  i: y2 W5 i5 l! X
Apr 20 11:38:14 <hostid> ceph-mds[44742]: failed to fetch mon config (--no-mon-config to skip).
8 c+ p$ e4 l" S7 \: g
/ I$ E' f; j% y8 H
4 v2 u, o. D% G: z7 k( j, \: YThe entire output of systemctl status ceph-mds@mds.:
' q5 G+ `. J: M8 l1 Fceph-mds@mds.<hostid>.service - Ceph metadata server daemon0 W# d. B0 P( H1 p% E
   Loaded: loaded ([url=]/usr/lib/systemd/system/ceph-mds@.service[/url]; disabled; vendor preset: disabled)
" r6 D4 x% g7 S# t   Active: failed (Result: start-limit) since Tue 2021-04-20 12:28:15 +03; 11min ago
7 ~. R/ c3 w' ]7 Z/ q$ w3 d1 C  Process: 15564 ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph (code=exited, status=1/FAILURE)
0 L1 P- n6 u6 J( a Main PID: 15564 (code=exited, status=1/FAILURE)9 \7 f0 T. v; ?$ A- e$ P
Apr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state.: m. b! v7 x+ l+ u; p/ V
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed.: g* a3 E8 d1 z6 r6 p# ^3 ]
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service holdoff time over, scheduling restart.6 o+ g* G( W3 y0 S" w: D
Apr 20 12:28:15 <hostid> systemd[1]: Stopped Ceph metadata server daemon.
0 Z1 D# m& q# y5 ~# a! |$ aApr 20 12:28:15 <hostid> systemd[1]: start request repeated too quickly for ceph-mds@mds.<hostid>.service- m+ G! D9 b4 K% B! t2 ^. x* B: L
Apr 20 12:28:15 <hostid> systemd[1]: Failed to start Ceph metadata server daemon.& Q, M  o6 C# F. _* a( M' C9 V
Apr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state.
$ }+ x# V. _+ H  S& a8 m2 R: WApr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed.
$ z9 q$ A" l# _/ ~0 b
" w6 F: ~- ?& `* m8 C% a& f6 h5 ?% q4 V3 t' w
What might be the reason for this?
- {9 v; j* M3 [* f3 A

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
 楼主| 发表于 2022-7-26 15:00:30 | 显示全部楼层
[root@ceph-2 ceph-2]# mkdir -p /var/lib/ceph/mds/ceph-mds.ceph-2/; E' ?, R3 m$ q
[root@ceph-2 ceph-2]# ceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds.ceph-2/keyring --gen-key -n mds.ceph-2
7 p9 g: h; y- q  z: zcreating /var/lib/ceph/mds/ceph-mds.ceph-2/keyring2 C  m# f3 u7 H: s' H1 T; y
! @4 t1 A3 ~$ W7 t9 B. b
[root@ceph-2 ceph-2]# ceph auth add mds.ceph-2 osd "allow rwx" mds "allow *" mon "allow profile mds" -i /var/lib/ceph/mds/ceph-mds.ceph-2/keyring
' p. }: E) C' F- j5 |- u8 B. i( l" Y" l& _- ]% r7 L& G4 B. u; S
[root@ceph-2 ceph-2]# ceph auth add mds.ceph-2 osd "allow rwx" mds "allow *" mon "allow profile mds" -i /var/lib/ceph/mds/ceph-mds.ceph-2/keyring
% l, @, C3 C' w' fadded key for mds.ceph-2
8 @4 A* e  K9 z0 x% v% H; `[root@ceph-2 ceph-2]# ; @( E' y- {) p/ _3 k. c4 C+ I

7 s3 a% c, _+ o2 D8 G
: G' s6 t& g3 s* I[root@ceph-2 mds]# chown -R ceph:ceph ceph-mds.ceph-2/
4 |/ c6 c; \# D% [
) r% [4 v' [& B7 f! h8 @; G0 G
, o. R3 N. ~) \7 V/ T1 w# o( E2 KJul 26 14:19:36 ceph-2.novalocal ceph-mds[40265]: NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
) U: V9 X0 P, g2 S: UJul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service: main process exited, code=killed, status=6/ABRT$ f9 K, h" I$ z
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Unit ceph-mds@ceph-2.service entered failed state.9 W' q; U* F) g! D- e' ?$ ?
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service failed.& ~. P8 F( I$ x9 ?0 T. t
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service holdoff time over, scheduling restart.9 U0 j) D; _# W5 c, a
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Stopped Ceph metadata server daemon.: n& i3 E; k+ C; P5 h
-- Subject: Unit ceph-mds@ceph-2.service has finished shutting down
! N: B; v, a4 h% F; t3 n-- Defined-By: systemd8 G  n+ ^2 @/ b3 N
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
; B3 E  c6 Z7 j% T* Y--
2 d& B% d+ [6 o% b4 B6 n9 f-- Unit ceph-mds@ceph-2.service has finished shutting down.
' L$ C: p! ]& B( t- i2 ~4 eJul 26 14:19:36 ceph-2.novalocal systemd[1]: start request repeated too quickly for ceph-mds@ceph-2.service
& t+ T" {: E) h5 dJul 26 14:19:36 ceph-2.novalocal systemd[1]: Failed to start Ceph metadata server daemon.9 U: G3 m  t" M, [1 r. p) f$ q! |
-- Subject: Unit ceph-mds@ceph-2.service has failed
+ C5 m& b! t' S-- Defined-By: systemd1 ]/ B4 K: q9 L" Y3 d
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel7 U3 k% K4 L6 s1 j
-- 8 \% o; G$ g8 D9 A
-- Unit ceph-mds@ceph-2.service has failed.
: U7 S3 w: p/ v2 k) W-- ! e, m3 u( |% X
-- The result is failed.; ?0 `5 P8 N9 \  e8 F, j
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Unit ceph-mds@ceph-2.service entered failed state.
" S1 p+ ]- x5 ~$ a8 D8 dJul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service failed.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 22:58 , Processed in 0.032431 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表