找回密码
 注册
查看: 625|回复: 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:7 H5 v5 z+ m& ~. R& @- ^  m: j9 r: b

( W" M7 S# D4 H) r! L; G( gceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds.<hostid>/keyring --gen-key -n mds.<hostid>6 u* Q9 T- u) e4 b& o4 W& J" I
ceph auth add mds.<hostid> osd "allow rwx" mds "allow *" mon "allow profile mds" -i /var/lib/ceph/mds/ceph-mds.<hostid>/keyring) E# N  C. S; |

0 P' ^- {( _# q$ \/ H' B
3 O' y, t4 R) `1 I% B  L( BThen 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.
2 w! J) V& u5 J1 {! V- lHowever when I run systemctl start ceph-mds@mds. the daemon doesnt start and on journalctl i get the following error output:
+ J# v. S6 J9 U/ x" ~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]
9 R) }" Z( e" fApr 20 11:38:14 <hostid> ceph-mds[44742]: failed to fetch mon config (--no-mon-config to skip).# r- M* z8 B+ j* I6 K' G7 X
1 y$ Y) [. ~; x  S4 V( I/ U

8 X. \+ R, j4 {/ [# Q+ p8 n! Z' dThe entire output of systemctl status ceph-mds@mds.:
# p+ D! k' a6 O0 K4 T6 _) e2 yceph-mds@mds.<hostid>.service - Ceph metadata server daemon
4 T, r2 ^# ~0 L% a   Loaded: loaded ([url=]/usr/lib/systemd/system/ceph-mds@.service[/url]; disabled; vendor preset: disabled)
6 y- X2 ^* H3 J' t- l   Active: failed (Result: start-limit) since Tue 2021-04-20 12:28:15 +03; 11min ago
6 Q# T7 C  \9 r4 J! J% I  Process: 15564 ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph (code=exited, status=1/FAILURE)) e3 n( {3 u5 H) Y
Main PID: 15564 (code=exited, status=1/FAILURE)* \& X' X( w4 N) `7 F0 o
Apr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state.; C% Z* n4 T# A9 O$ G  O3 O
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed.$ ]. W2 `6 M8 X* ~. |$ M
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service holdoff time over, scheduling restart.
5 \3 `3 _* ~/ _Apr 20 12:28:15 <hostid> systemd[1]: Stopped Ceph metadata server daemon.+ X9 J9 Z5 I. g0 r% `9 D# e$ q
Apr 20 12:28:15 <hostid> systemd[1]: start request repeated too quickly for ceph-mds@mds.<hostid>.service3 t# s) }0 s& I, j% N
Apr 20 12:28:15 <hostid> systemd[1]: Failed to start Ceph metadata server daemon.$ `9 M, c% }% J- T3 @; J- g: L
Apr 20 12:28:15 <hostid> systemd[1]: Unit ceph-mds@mds.<hostid>.service entered failed state.! b! f2 j$ |& ]* {7 J  }
Apr 20 12:28:15 <hostid> systemd[1]: ceph-mds@mds.<hostid>.service failed.. S5 g8 }+ j7 h) H; @4 v+ ^
) m) r, x2 A) L+ e4 z" p5 W

+ z$ e) q% M0 H' |6 v- kWhat might be the reason for this?+ _! r; s' ~+ A9 z& n

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/
! r" A* {& J: ?$ d[root@ceph-2 ceph-2]# ceph-authtool --create-keyring /var/lib/ceph/mds/ceph-mds.ceph-2/keyring --gen-key -n mds.ceph-2
: T0 j& t! A7 k2 h! M/ k  kcreating /var/lib/ceph/mds/ceph-mds.ceph-2/keyring
0 G2 s3 d2 a! X
( P7 c/ G; w+ o9 B) |9 I- D* f7 b& f! T[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
) D: r9 [0 P( w- T9 V* q1 @0 `( ^; v7 v+ k2 \  z1 K5 A
[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
8 }# W# w9 q! [7 A# badded key for mds.ceph-2+ P' O) i5 U. r3 \, _* |. o7 d
[root@ceph-2 ceph-2]#
% {2 i" _; r4 D8 ~2 p( m. m8 f4 R+ [  E; s7 P/ {
( T( M% T% ^$ ~* Y7 b% z$ G; X
[root@ceph-2 mds]# chown -R ceph:ceph ceph-mds.ceph-2/1 K  q1 {2 y; ^, m

& V) t6 j! `* }0 |% e6 K: ~; x
7 ?. b, F$ V+ w- \9 F' @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., ~* z4 `4 ^4 P' m0 i$ \
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service: main process exited, code=killed, status=6/ABRT; W! n4 F, z$ I( P0 L& C( G; O. z4 s
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Unit ceph-mds@ceph-2.service entered failed state.3 o/ i( I. K+ p4 U: G- G, O( \' F
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service failed.
: T  i2 i8 d* DJul 26 14:19:36 ceph-2.novalocal systemd[1]: ceph-mds@ceph-2.service holdoff time over, scheduling restart.( C9 b2 z+ V* `9 Q
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Stopped Ceph metadata server daemon.
1 z- T4 k& o  p) [9 f2 }  a  d-- Subject: Unit ceph-mds@ceph-2.service has finished shutting down" P, c( Q9 `) k: b: j
-- Defined-By: systemd: ]* U" C2 n# B
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
& h; H' X. p1 ]3 v-- 6 [' Y3 d% ^7 f  q7 b( f
-- Unit ceph-mds@ceph-2.service has finished shutting down.
& _$ l$ i( Z: ^9 i9 k# C0 x$ uJul 26 14:19:36 ceph-2.novalocal systemd[1]: start request repeated too quickly for ceph-mds@ceph-2.service/ I1 |2 f" R5 [: \) y
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Failed to start Ceph metadata server daemon.  ^" f3 g% O$ I6 U, O  q4 ^
-- Subject: Unit ceph-mds@ceph-2.service has failed6 K5 i+ |" n% i$ O1 ]. P
-- Defined-By: systemd  m( K* O- _; x/ q  t
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
. G1 j' b1 [" |) ~- a' N. R-- 5 U( x6 h/ `, l& j
-- Unit ceph-mds@ceph-2.service has failed.7 N% _# J) U2 i4 |+ G2 M0 R
-- ) D) ?) U1 Z' n1 C/ V0 H
-- The result is failed.7 U5 _/ Z: v& c4 Z$ D2 J
Jul 26 14:19:36 ceph-2.novalocal systemd[1]: Unit ceph-mds@ceph-2.service entered failed state.
% g) {/ U5 E, [6 N7 AJul 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:06 , Processed in 0.018113 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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