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

ceph-authtool 部署ceph-mds

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
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:
* \% f0 K) v* \0 ~* V6 \$ {  d- J. U9 [+ x" m5 u
ceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds.<hostid>/keyring --gen-key -n mds.<hostid>
6 y7 [- [" m5 e; t2 Mceph auth add mds.<hostid> osd "allow rwx" mds "allow *" mon "allow profile mds" -i /var/lib/ceph/mds/ceph-mds.<hostid>/keyring
" D* ~3 D- D& W8 g' z/ m& ?5 v; x. s# A" ]( |0 N- R
& O! ~9 D: S! G8 P) I- P. Q
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. 1 f0 _/ N/ D% m' z. ?  K" v
However when I run systemctl start ceph-mds@mds. the daemon doesnt start and on journalctl i get the following error output:
" @/ w% m- A+ v. q4 K3 [# R: w0 HApr 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]) H/ |8 W# z+ ~6 Y! m
Apr 20 11:38:14 <hostid> ceph-mds[44742]: failed to fetch mon config (--no-mon-config to skip).' d2 F" z  p2 ~9 N; ?
0 T; c: F8 T% y- {4 |. R$ G) a2 @
4 L/ A$ D( O5 J0 p7 U  B- i
The entire output of systemctl status ceph-mds@mds.:- q/ e9 p" h8 n4 D1 i( e
ceph-mds@mds.<hostid>.service - Ceph metadata server daemon
6 p: ~1 Y0 _' p" C7 e   Loaded: loaded ([url=]/usr/lib/systemd/system/ceph-mds@.service[/url]; disabled; vendor preset: disabled)
" ?  ?5 s5 _3 L" v   Active: failed (Result: start-limit) since Tue 2021-04-20 12:28:15 +03; 11min ago
& ^" A1 X5 ^. s; }$ O  Process: 15564 ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph (code=exited, status=1/FAILURE)
. R7 e4 i$ \2 u Main PID: 15564 (code=exited, status=1/FAILURE)
. k7 w) {$ \& d' tApr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state.7 l2 J* Z: W' |7 K  p9 h8 @
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed., H8 L6 D% u" J0 l% u, _
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service holdoff time over, scheduling restart.5 V/ a2 m5 K0 o. R2 [# K
Apr 20 12:28:15 <hostid> systemd[1]: Stopped Ceph metadata server daemon.
) Q: T( G4 B. G. k  K( Y! QApr 20 12:28:15 <hostid> systemd[1]: start request repeated too quickly for ceph-mds@mds.<hostid>.service
8 X& c6 M& R" @' o6 o1 V6 `Apr 20 12:28:15 <hostid> systemd[1]: Failed to start Ceph metadata server daemon.* k- g* @! `+ [( [
Apr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state.1 |, M0 h" t2 {* N# e9 n9 k
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed.
7 O$ R6 B3 N1 }# B$ O% m7 Z; B8 T
3 p5 B4 }: A, z" n
+ M+ D& ^2 e. l/ _: OWhat might be the reason for this?
+ K% I; D1 J+ [( l+ C# ~

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-7-26 15:00:30 | 显示全部楼层
[root@ceph-2 ceph-2]# mkdir -p /var/lib/ceph/mds/ceph-mds.ceph-2/; `: U8 U" o1 g7 @' f; V9 S' `
[root@ceph-2 ceph-2]# ceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds.ceph-2/keyring --gen-key -n mds.ceph-2   e1 r( D0 I$ u% z, T
creating /var/lib/ceph/mds/ceph-mds.ceph-2/keyring
2 E4 {+ u( p) C- x0 f* Y, x: M  t2 U0 P- N. e
[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+ p3 v7 g. N& Z" C( O8 X" U/ C2 d, v

* F2 J& ^9 W. |; \( W* ^' \[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; J% s: y) U' R5 ]
added key for mds.ceph-2
4 k2 H! U$ Y0 d9 w5 l5 I  u[root@ceph-2 ceph-2]#
+ ]) j$ o8 @, {6 J, [- e! M( T: h  a( y! G% F

, h6 u0 |/ }+ v3 V[root@ceph-2 mds]# chown -R ceph:ceph ceph-mds.ceph-2/
# J' H; y" ^+ P" X/ z; N! G* Z/ Q8 F1 U( p/ o) h% e
1 W- v# S" S" V( p/ k6 O. u
Jul 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.
4 X5 \; L( P8 V& zJul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service: main process exited, code=killed, status=6/ABRT
# u  ]( a+ ~1 p, e. oJul 26 14:19:36 ceph-2.novalocal systemd[1]: Unit ceph-mds@ceph-2.service entered failed state.
$ k# K! l% |% U8 S( ^% BJul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service failed.
  b% u% H+ W) u9 F. s1 [8 gJul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service holdoff time over, scheduling restart.- h, X9 M* g! L# M- U" Q: l1 k) c
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Stopped Ceph metadata server daemon.
5 T, p( Y1 ]+ @6 F# F-- Subject: Unit ceph-mds@ceph-2.service has finished shutting down
5 j% n; r4 q8 o# {- ~2 J# q! G-- Defined-By: systemd
; a/ N  S; o% R% ?. v( b4 z-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
5 B7 s5 m1 W# a5 G% n7 W) X0 x--
8 ~2 q. ?9 n9 T5 H-- Unit ceph-mds@ceph-2.service has finished shutting down.
# L. `* b1 ^1 E3 X" {8 v" eJul 26 14:19:36 ceph-2.novalocal systemd[1]: start request repeated too quickly for ceph-mds@ceph-2.service+ a3 \; {4 ~+ @
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Failed to start Ceph metadata server daemon.
2 T: V/ X# e3 q( k5 f-- Subject: Unit ceph-mds@ceph-2.service has failed
/ @4 c1 a; [. y! N$ C-- Defined-By: systemd- }+ _0 H2 F4 B9 J3 y' D3 A
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel6 w1 H# u$ V" ]7 b9 i% }% e
--
$ y4 }) s: i+ ~( o3 \-- Unit ceph-mds@ceph-2.service has failed.7 j8 V, o4 W. N
--
3 n6 X8 _' D7 y4 G* ]9 k2 v: o-- The result is failed.
8 }( N: K1 N1 J% qJul 26 14:19:36 ceph-2.novalocal systemd[1]: Unit ceph-mds@ceph-2.service entered failed state.
# x. ]) X* F. T6 ~Jul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service failed.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:05 , Processed in 0.018012 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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