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

hosts fail cephadm check ceph分布式存告警

[复制链接]

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
发表于 2023-2-3 22:11:28 | 显示全部楼层 |阅读模式
health: HEALTH_WARN6 G" ^, t2 _4 f/ v# b
            1 hosts fail cephadm check9 B3 d4 D+ t8 U3 v! U
CEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
9 y2 M7 U6 u8 }8 e5 O2 h/ \# ceph health detail
/ Y0 c2 W$ i* o7 ], c" g! p; nHEALTH_WARN 1 hosts fail cephadm check& {2 ~  b* b& d/ ], G. F# H
[WRN] CEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
  f3 A1 u! O4 Z# l    host gm268-1 failed check: Failed to connect to gm268-1 (gm268-1).
5 V; w5 e$ ]- K" I! @Please make sure that the host is reachable and accepts connections using the cephadm SSH key
' \. k9 G' G. w6 p
  M& C. Q8 W. n% S& }To add the cephadm SSH key to the host:
$ w  b# l( [: k- A/ a0 i> ceph cephadm get-pub-key > ~/ceph.pub( c+ V- F  _$ U: y; ]  z
> ssh-copy-id -f -i ~/ceph.pub root@gm268-1" Z5 r- \6 w# Z) d+ o( V; ?
6 D1 o/ o+ M( x! C  j4 @
To check that the host is reachable:( u7 C, ]7 Q2 b+ v4 d
> ceph cephadm get-ssh-config > ssh_config; g7 O, H' F) h# Q" g$ [
> ceph config-key get mgr/cephadm/ssh_identity_key > ~/cephadm_private_key5 H# k. j) k: }$ ?0 n) E8 r6 f
> chmod 0600 ~/cephadm_private_key  K8 |- t1 V0 o8 R) Y9 `0 @, {" w
> ssh -F ssh_config -i ~/cephadm_private_key root@gm268-1
  V+ s9 I3 D- d3 a+ v: I3 F/ x& W
3 k3 d; x' N% \. J1 G% s. @) [! q8 L1 O# i% n
& Z/ l' f* R: }4 V( T& t

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
 楼主| 发表于 2023-2-3 22:14:53 | 显示全部楼层
[root@gm268-5 ~]# ceph cephadm check-host gm268-1- P, N5 D: l( I; I# H/ Y
podman|docker (/usr/bin/podman) is present
- N7 y" z" K) t/ R$ [systemctl is present
0 Y3 G3 v0 I  w& U6 l1 t; slvcreate is present
* u# l0 Q# E6 ~8 cUnit chronyd.service is enabled and running1 t2 G% }) d! V" d+ }( v( y
Hostname "gm268-1" matches what is expected.
, m, p: `6 W9 mHost looks OK
9 P5 j# ^0 c% {1 ^/ Agm268-1 (None) ok
- ^7 m' x+ v* Z$ [6 i; g2 ~[root@gm268-5 ~]# ceph cephadm check-host gm268-2+ d$ |8 g4 Z8 T" Z3 Z. y: r/ }$ L
podman|docker (/usr/bin/podman) is present7 D5 Q) x6 x$ I" t* l6 {& ]
systemctl is present9 h$ L8 V+ Y8 [4 \
lvcreate is present
8 J- ]+ ?2 Y$ L( y% F2 C4 n) EUnit chronyd.service is enabled and running2 i0 z# C. D5 W; I' U7 j( o
Hostname "gm268-2" matches what is expected.) M2 t- z0 }- w& V
Host looks OK
  A! G  w. m7 r, S0 M% Ygm268-2 (None) ok
/ Z# |9 J9 J3 l# q$ L[root@gm268-5 ~]# ceph cephadm check-host gm268-32 [% P! [  d, f, I3 X! P
podman|docker (/usr/bin/podman) is present
0 r7 }! P) `7 I: rsystemctl is present
6 o" l7 Q' k# h: l: w9 \$ vlvcreate is present# A! h+ y- D9 z) V' {4 s
Unit chronyd.service is enabled and running
8 I0 }: ]% l" r0 ?( z2 PHostname "gm268-3" matches what is expected.$ k7 c+ @  D, `% R9 g; a
Host looks OK
1 s6 ?1 _& y$ {4 ~* u3 sgm268-3 (None) ok
* z( y' q  k* @/ X2 ~" {

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
 楼主| 发表于 2023-2-3 22:19:10 | 显示全部楼层
[root@gm268-1 lib64]# ceph -s
6 Q5 f/ r2 J1 H4 i, K# s- d1 Z  cluster:
! {% r0 _" H, i) n( f) _: Y9 w- p    id:     ce68aab8-8f46-11ed-88c0-ac1f6b3a30b9# P  m. Z3 c! e4 s+ m) Y
    health: HEALTH_OK  c8 }2 `. A- d" x
* M" N& y6 I, Z! G6 p( Q+ u) [' Z3 \
  services:/ a2 i9 O, H- r% Q) B4 q
    mon: 3 daemons, quorum gm268-1,gm268-2,gm268-3 (age 11m)
( t* J: M, v. A5 Z7 x    mgr: gm268-2.zttohs(active, since 3w), standbys: gm268-3.sjagqo, gm268-1.jgdvxs- O1 {# J7 ]% \& h5 @' F
    mds: cephfs:1 {0=cephfs.gm268-2.xdsdoz=up:active} 2 up:standby
7 j% d; t, b, o" f! j    osd: 41 osds: 41 up (since 10m), 41 in (since 2w); 1008 remapped pgs
) R7 `, I2 W  S/ @8 X, \ ' p+ H- q9 |# v$ c
  data:
' r( I8 U5 c; |- g9 l    pools:   3 pools, 9217 pgs
$ ~* q; E, j  Y    objects: 10.14M objects, 14 TiB  N! i' n- s# S" T# t5 F
    usage:   28 TiB used, 569 TiB / 597 TiB avail
* j" p! {. l$ B9 K    pgs:     1026683/20286478 objects misplaced (5.061%): I' F/ o# d% y* ], d$ n2 n
             8207 active+clean
" [$ T, A# U) l4 b! ~             958  active+remapped+backfill_wait: |, ~6 u7 P& ^0 G# J
             52   active+remapped+backfilling. R2 ]) J7 T$ }* m( X: u- D

) W% A( N: U$ d1 M4 ~7 h0 Q  ?1 {  io:& V6 }3 ~- y( p8 s) {
    recovery: 735 MiB/s, 14 keys/s, 484 objects/s
7 Y) ]: Y; p" B
5 |: U) b# Z+ h[root@gm268-1 lib64]# ceph cephadm check-host gm268-12 t& j# l1 z7 Q2 E- D1 y/ _
podman|docker (/usr/bin/podman) is present
# l# {7 w: p  ssystemctl is present
6 Z3 I# |6 Z* B* ?" B$ S/ T$ l6 Ilvcreate is present4 k; w6 d8 ]( b4 y0 j
Unit chronyd.service is enabled and running
5 P% ~4 d" n# HHostname "gm268-1" matches what is expected.. m7 g$ V% N" ^2 ?! u1 c4 k1 m9 v
Host looks OK; c, n& H/ @( G1 n
gm268-1 (None) ok; p# H4 |& p" Z# t
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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