找回密码
 注册
查看: 784|回复: 2

hosts fail cephadm check ceph分布式存告警

[复制链接]

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
发表于 2023-2-3 22:11:28 | 显示全部楼层 |阅读模式
health: HEALTH_WARN" Y- g. X8 @2 H! p6 c
            1 hosts fail cephadm check
; |; k' H5 S! |7 VCEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
& m8 Q0 R( t4 ?: W3 ]  T* d# ceph health detail
. e7 {) |$ B: L3 z, G# q7 o8 I' Y/ tHEALTH_WARN 1 hosts fail cephadm check9 {6 ?- T8 g& x7 g
[WRN] CEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
6 R- ]/ Y3 w+ L9 e2 Y; D7 ^: T    host gm268-1 failed check: Failed to connect to gm268-1 (gm268-1).# [; f3 Q+ k8 @6 Y2 `( Z
Please make sure that the host is reachable and accepts connections using the cephadm SSH key9 H; l7 |) E+ j! e% h8 t" f
  {/ Z7 j9 z$ A: f) J
To add the cephadm SSH key to the host:
7 u. ^! h* `0 k0 E4 y+ y2 h% {> ceph cephadm get-pub-key > ~/ceph.pub
4 o: C/ f* {6 F5 P+ U* o+ ]> ssh-copy-id -f -i ~/ceph.pub root@gm268-1
! w- K8 |' F6 e2 x3 M; e
# Z. I, a) K) [* mTo check that the host is reachable:3 }4 i0 G) T! C( w& d$ ~
> ceph cephadm get-ssh-config > ssh_config
1 `5 p3 ^) ]4 W6 |3 }* l* l7 w" R> ceph config-key get mgr/cephadm/ssh_identity_key > ~/cephadm_private_key
- H5 f( Y& Z$ s/ @> chmod 0600 ~/cephadm_private_key
1 \! ]3 `1 j+ V" V# f1 d- b% Q> ssh -F ssh_config -i ~/cephadm_private_key root@gm268-1+ i; f' p5 ~" ^* O3 i* S2 O. |
  J: o& [4 L* s& _9 @

# _' L% v. e. M% [' g( e
$ E" G. A" }; ~, }; v

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
 楼主| 发表于 2023-2-3 22:14:53 | 显示全部楼层
[root@gm268-5 ~]# ceph cephadm check-host gm268-1, z/ W$ U! t! _# @
podman|docker (/usr/bin/podman) is present
* O& S2 p2 h- L% R& L" _6 `5 Q3 dsystemctl is present2 x( g4 o& k$ ~1 E9 N" n; Z+ t
lvcreate is present! ?* \( ^) F% f+ D. Z3 g
Unit chronyd.service is enabled and running
6 J- {+ }$ W' R: m7 QHostname "gm268-1" matches what is expected.
& a: {" h, J& [  B6 b0 m( F) @2 rHost looks OK7 J/ n7 T, s- Q" H  J7 [% n/ _
gm268-1 (None) ok
) n# s7 O6 K% X' `[root@gm268-5 ~]# ceph cephadm check-host gm268-2( w2 l4 h% ?5 s7 Z" `
podman|docker (/usr/bin/podman) is present
3 Y, Q0 }8 l$ U5 p7 |; W* Esystemctl is present
  f$ M& C+ ]: z, ^) g% ^4 X! M; ]lvcreate is present
  M) H! x) _7 D" x/ ~" Y) G- o" H9 oUnit chronyd.service is enabled and running
. ?. e. F: f+ `9 D& LHostname "gm268-2" matches what is expected.
5 j" I9 F3 q  Z8 h0 kHost looks OK* ?& j! `( z+ v7 k5 a' u
gm268-2 (None) ok
) ^1 o' l. Z  X+ n$ @[root@gm268-5 ~]# ceph cephadm check-host gm268-3
& V" E+ p0 G$ w$ K3 ?" Rpodman|docker (/usr/bin/podman) is present1 G+ E8 H3 M  Z$ S9 f  A) l
systemctl is present
  f7 T' N0 T9 @: Q# G. J- x. J, N! ^lvcreate is present
" Y- B& l1 n- IUnit chronyd.service is enabled and running5 S* h! c) T) D5 F  r$ b* h% ^
Hostname "gm268-3" matches what is expected.' S: I0 G% ?1 d" }+ S
Host looks OK
! d, r% B; j5 M  W8 [: y& hgm268-3 (None) ok  e+ j  E4 |( F9 W6 S. i4 }6 r

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
 楼主| 发表于 2023-2-3 22:19:10 | 显示全部楼层
[root@gm268-1 lib64]# ceph -s! I# P. D8 H/ T# X0 `% ^
  cluster:
: f' Y# ~& {! d$ O    id:     ce68aab8-8f46-11ed-88c0-ac1f6b3a30b9
4 }& L1 Y1 P2 F- \1 Z    health: HEALTH_OK
0 b, A! K/ l& M5 R# W8 n3 ^: k 3 r+ A5 O, \3 `# D
  services:
- e3 k" l( h& [& P5 l7 n* h    mon: 3 daemons, quorum gm268-1,gm268-2,gm268-3 (age 11m)
6 _8 {  U$ l! g    mgr: gm268-2.zttohs(active, since 3w), standbys: gm268-3.sjagqo, gm268-1.jgdvxs+ f5 l0 P5 I* q! X# F
    mds: cephfs:1 {0=cephfs.gm268-2.xdsdoz=up:active} 2 up:standby; Y5 @5 S! C: _: r0 [
    osd: 41 osds: 41 up (since 10m), 41 in (since 2w); 1008 remapped pgs
9 k  p3 h  b9 K, p5 E9 l* C# H
  u+ O, N/ @, ]! X1 T$ ^$ b  data:
3 q+ A1 b& }& _/ o4 _) h    pools:   3 pools, 9217 pgs
( r- Q+ `& X5 u: U3 v# I    objects: 10.14M objects, 14 TiB1 u3 d3 c, A$ y; @
    usage:   28 TiB used, 569 TiB / 597 TiB avail" }) I& p  p( L, n  i, q" n- d- k
    pgs:     1026683/20286478 objects misplaced (5.061%)# t; H) }6 ^% ~% s  V8 S
             8207 active+clean6 C% h3 h# ^! K# W3 R( g
             958  active+remapped+backfill_wait. M6 ~( [+ G9 s+ J5 t
             52   active+remapped+backfilling$ o6 i2 ?' Q" S9 j

" \. f' h& E8 Y  io:
2 Q7 }6 \& X% z  x5 i. q; n    recovery: 735 MiB/s, 14 keys/s, 484 objects/s, g5 y( a3 W* P  u) S- n
9 l5 m6 w2 p! `% Q; l1 c
[root@gm268-1 lib64]# ceph cephadm check-host gm268-1* p; V, g8 Y) l( q% L) ]! `
podman|docker (/usr/bin/podman) is present
% @. N9 L1 r5 H( [$ h, _7 psystemctl is present$ i  E! D/ m0 u; w  I
lvcreate is present$ e- @' B% i  h8 }: V' }
Unit chronyd.service is enabled and running; H( M# [" p. i: R7 }% T- Q
Hostname "gm268-1" matches what is expected.
  @1 A: C) w! B# r* S1 WHost looks OK; e2 p6 x) y: Q; E4 E# ?4 P# x5 G
gm268-1 (None) ok4 F1 O9 z( a! O8 [8 X) X5 O0 N6 Z' O
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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