找回密码
 注册
查看: 623|回复: 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:
( U% x+ |1 T- u: ~0 Z  C) q$ J9 h
1 a( e- l# Z; a  p5 C3 E& Kceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds.<hostid>/keyring --gen-key -n mds.<hostid>" M" k* d# D, x
ceph auth add mds.<hostid> osd "allow rwx" mds "allow *" mon "allow profile mds" -i /var/lib/ceph/mds/ceph-mds.<hostid>/keyring' a! x' R' Y/ \7 u

. f$ ]) x& J! e
; |2 f! l  H% DThen 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. & g$ k7 n" P- a& C; r. {$ Z8 I
However when I run systemctl start ceph-mds@mds. the daemon doesnt start and on journalctl i get the following error output:
& X( {& b, w' l9 G* ~+ iApr 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]! J, `7 \0 n% f) a3 W  p
Apr 20 11:38:14 <hostid> ceph-mds[44742]: failed to fetch mon config (--no-mon-config to skip).
# Y6 S( ^. s/ u$ ?+ T
; o$ g6 n  s4 L3 B& q7 D" {0 ?1 j1 o% p  D
The entire output of systemctl status ceph-mds@mds.:
) P( |3 v$ ]' S3 k. ~ceph-mds@mds.<hostid>.service - Ceph metadata server daemon
- S7 @) E& X: m8 Y8 m6 b7 Q: g   Loaded: loaded ([url=]/usr/lib/systemd/system/ceph-mds@.service[/url]; disabled; vendor preset: disabled)
0 q+ o8 w$ [8 g3 \7 o/ T7 C   Active: failed (Result: start-limit) since Tue 2021-04-20 12:28:15 +03; 11min ago
' Z, y  f4 X0 s  j, B& ?  Process: 15564 ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph (code=exited, status=1/FAILURE)
! y3 @- g2 N4 v8 g5 X Main PID: 15564 (code=exited, status=1/FAILURE)5 G! r2 ~: m/ B! ^6 y9 V
Apr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state.
  b0 p3 c, E" b, C# u- h* ]Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed.. i9 d! g) k1 C  [, u0 n& g
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service holdoff time over, scheduling restart.5 c* V2 h$ A9 d! k: K  Z  }
Apr 20 12:28:15 <hostid> systemd[1]: Stopped Ceph metadata server daemon.9 }$ N4 w" {) T( O/ f
Apr 20 12:28:15 <hostid> systemd[1]: start request repeated too quickly for ceph-mds@mds.<hostid>.service
- m8 C: G7 w& w$ CApr 20 12:28:15 <hostid> systemd[1]: Failed to start Ceph metadata server daemon.
  F; F( P1 M# J8 S& y+ eApr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state./ w5 Z7 {* }; Z, D% d8 t$ d
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed.' A3 o. P7 i, e: B' ~

5 U+ E1 {8 T# C  O7 ?7 N* w6 M' N- P) u$ n6 u2 ^
What might be the reason for this?" V4 v! B$ u  z- V, e

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/
( N( A7 s; ]2 M% j; @# b- B[root@ceph-2 ceph-2]# ceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds.ceph-2/keyring --gen-key -n mds.ceph-2
# y/ O/ T2 b* _7 ycreating /var/lib/ceph/mds/ceph-mds.ceph-2/keyring
0 J3 P+ x% M- G* H& g+ q, s. a7 F7 S3 V' B* f' V4 C- M( {
[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
/ Q! o3 X) n. G+ P/ s
  B/ n& w. B, o8 ^9 A9 K0 q# [[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
% F8 Z0 i. n) {4 K8 ]added key for mds.ceph-2: E& J  j; |. h" E9 m
[root@ceph-2 ceph-2]#
9 d+ u+ N" p& i; G' K' ?; f3 o5 P5 K- }1 S. \; p

* d4 ]/ v1 }" Q( T9 v  `# U[root@ceph-2 mds]# chown -R ceph:ceph ceph-mds.ceph-2/
* e  ~2 p; U) n( W7 e* |8 i1 A" t+ F: J! V- V7 ^, n
7 p1 m) p: [  A4 v* K
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.
' R* ^& ]6 }3 i9 DJul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service: main process exited, code=killed, status=6/ABRT
  a0 n; r2 `" h* p: {Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Unit ceph-mds@ceph-2.service entered failed state.
& T, t% l5 V3 J( ~2 n  M- FJul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service failed.
9 S* J. n# a; u) a8 e6 NJul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service holdoff time over, scheduling restart.6 ~( e" C! {; P2 L8 R4 v, t
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Stopped Ceph metadata server daemon.7 {9 U: i- ^" W: I
-- Subject: Unit ceph-mds@ceph-2.service has finished shutting down
4 W1 O* p2 @- U7 e-- Defined-By: systemd- N3 E  \$ k( l0 {2 a; @  J8 B
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel3 ^& V6 m- [5 [8 n2 D
-- # w% u5 B! p5 C9 r  r* c) G
-- Unit ceph-mds@ceph-2.service has finished shutting down.
; E; }2 ^% e- d! n; IJul 26 14:19:36 ceph-2.novalocal systemd[1]: start request repeated too quickly for ceph-mds@ceph-2.service
+ i1 z2 x( o6 [3 G1 XJul 26 14:19:36 ceph-2.novalocal systemd[1]: Failed to start Ceph metadata server daemon.
; q0 |6 T! Q, J1 V- V7 o-- Subject: Unit ceph-mds@ceph-2.service has failed6 D! e2 V% t- s6 m) }5 U! E7 c7 A
-- Defined-By: systemd( j$ I. N- K% P4 u
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
5 }; v% j) X+ f* g+ I  Y-- / E) B4 G. y5 @' S& {  ^
-- Unit ceph-mds@ceph-2.service has failed.4 a' K9 w/ W: v$ K5 p
-- + z2 y; v, F+ [  g* \" I
-- The result is failed.
7 O5 B: e2 ?% p: i! S% Z  t2 UJul 26 14:19:36 ceph-2.novalocal systemd[1]: Unit ceph-mds@ceph-2.service entered failed state.. r+ t9 c! s+ s( r
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service failed.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-11 23:02 , Processed in 0.017085 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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