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

hosts fail cephadm check ceph分布式存告警

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2023-2-3 22:11:28 | 显示全部楼层 |阅读模式
health: HEALTH_WARN
$ x4 A- X4 N4 c8 ~            1 hosts fail cephadm check- e, }1 ?" f: h, k+ C! N" Z* W2 q
CEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
$ X5 F- r) L) }0 Z& F3 B8 b" T# ceph health detail
/ i; r/ n# b! J( B( X; L6 gHEALTH_WARN 1 hosts fail cephadm check# L7 `# w3 [4 `- r
[WRN] CEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
9 x- k8 n/ p$ m8 N) l' M! h    host gm268-1 failed check: Failed to connect to gm268-1 (gm268-1).
8 U4 Z3 X. f0 H" a* _Please make sure that the host is reachable and accepts connections using the cephadm SSH key
( p7 E/ |; C0 ^7 H1 e- ]4 U2 x4 L8 Q6 X3 k4 u* _
To add the cephadm SSH key to the host:
& r3 l5 w, O5 g* G3 {* \> ceph cephadm get-pub-key > ~/ceph.pub
3 r7 f3 C, G3 }+ f1 B, `> ssh-copy-id -f -i ~/ceph.pub root@gm268-1
7 S% a- r* X5 m6 U0 O2 g4 S6 f, k5 o: z# G# y$ _1 ~- I
To check that the host is reachable:
3 d- p' T( v! J) P5 w+ C; y4 E% z> ceph cephadm get-ssh-config > ssh_config
0 ^6 Y& ]. g. X2 l> ceph config-key get mgr/cephadm/ssh_identity_key > ~/cephadm_private_key7 h2 ?8 K9 K, l* r$ [0 G0 |% o
> chmod 0600 ~/cephadm_private_key, ]3 x. O6 S8 S- k, H9 d& w; `
> ssh -F ssh_config -i ~/cephadm_private_key root@gm268-1
- f; ]) @* P1 a0 x: ~" W/ ~. y9 g! [, j# y4 y' Q

7 k1 f& @. N  S) X5 c; h$ H5 @3 ^9 s+ g! u3 c) f% g

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-2-3 22:14:53 | 显示全部楼层
[root@gm268-5 ~]# ceph cephadm check-host gm268-1
" S1 G" B0 d  C! {podman|docker (/usr/bin/podman) is present8 U% R9 m$ g' o& a! C
systemctl is present
( j$ G3 k, w1 t5 olvcreate is present3 ]) _8 W% F% ~" _' W& J
Unit chronyd.service is enabled and running
3 ]- I1 B1 G: O/ H9 |) SHostname "gm268-1" matches what is expected.
: R5 \  j( Z) X* tHost looks OK2 H0 W0 ]! Q3 \8 X/ ?
gm268-1 (None) ok
/ Z5 A# G3 b% z% q% {% `. ~[root@gm268-5 ~]# ceph cephadm check-host gm268-2
5 w1 U. P& A2 Y5 W" A. a- v# q* ipodman|docker (/usr/bin/podman) is present
( o0 L" _- _. K7 N# j2 V) Dsystemctl is present1 c3 A& ~9 C+ u2 a: f0 u  @# j
lvcreate is present3 m, C, g5 ]  _8 Q
Unit chronyd.service is enabled and running. A* e  g, O# w0 _
Hostname "gm268-2" matches what is expected.' C( |0 R8 d0 h0 }) q
Host looks OK6 y7 a7 K6 i% T: {1 X  R
gm268-2 (None) ok. I9 u# Z8 q5 j, N# v. O
[root@gm268-5 ~]# ceph cephadm check-host gm268-3
1 J# A* g* S0 d( c& ~' U, gpodman|docker (/usr/bin/podman) is present3 p1 E0 u( G: s2 C
systemctl is present) R& k/ q# h2 q
lvcreate is present
- K- X9 I( `1 d' D( [4 T; _Unit chronyd.service is enabled and running
3 Q( d3 X7 @) H2 ^0 L- ~; aHostname "gm268-3" matches what is expected.( E5 Q$ `% K1 f# d- R6 j
Host looks OK
! T7 {$ y$ p5 ngm268-3 (None) ok1 m5 U: {6 V" ~4 V  m

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-2-3 22:19:10 | 显示全部楼层
[root@gm268-1 lib64]# ceph -s5 n1 T6 s" [2 w- H
  cluster:8 l8 h( g- J* D9 _; @' J
    id:     ce68aab8-8f46-11ed-88c0-ac1f6b3a30b9: q$ A1 c5 w1 M5 s
    health: HEALTH_OK
  y! \  O4 g% |$ l" d, j  c - e# O- Z1 Y# j: N8 T/ d
  services:+ C8 N* i' {0 U+ w- V
    mon: 3 daemons, quorum gm268-1,gm268-2,gm268-3 (age 11m)1 n3 C6 V% Z- k$ a
    mgr: gm268-2.zttohs(active, since 3w), standbys: gm268-3.sjagqo, gm268-1.jgdvxs
+ m7 m" E% @: V' G    mds: cephfs:1 {0=cephfs.gm268-2.xdsdoz=up:active} 2 up:standby' X4 T0 |7 L# b$ D! i* e& ~
    osd: 41 osds: 41 up (since 10m), 41 in (since 2w); 1008 remapped pgs
, j" s1 M9 Q' M8 S" x  r7 O
) h) a  Y8 M. \5 o2 x  data:+ k9 m6 L9 x0 U- \% ~( g) L
    pools:   3 pools, 9217 pgs
- h4 ^$ C! x% B+ y0 M    objects: 10.14M objects, 14 TiB. e' b% k! Z; j* u/ ]) U: P1 R8 w
    usage:   28 TiB used, 569 TiB / 597 TiB avail
5 I1 p- J7 I; n: _    pgs:     1026683/20286478 objects misplaced (5.061%)7 L0 s& o  Z. y
             8207 active+clean* c; t3 r) c% w6 Z2 l. `% f( }
             958  active+remapped+backfill_wait
0 Q& |$ ?8 ~0 S- g& h4 g& j             52   active+remapped+backfilling( s) R# W' k/ y4 e0 ]
# t( \& I. R7 R7 p: B# s
  io:2 V; }3 `$ g6 Z1 n) L7 {
    recovery: 735 MiB/s, 14 keys/s, 484 objects/s
# D, p; q: {( R8 m$ g  V) y; P  f
, l, S; a: D. ]' ]% m; j# _  {[root@gm268-1 lib64]# ceph cephadm check-host gm268-1
. f3 x' N5 K2 rpodman|docker (/usr/bin/podman) is present
: _5 p, [2 b! k( n. u8 Dsystemctl is present7 p$ ]* J2 ]* S3 ~+ V/ ]
lvcreate is present
# g1 N% U% q% vUnit chronyd.service is enabled and running$ z" `1 ?- k: m( x* y
Hostname "gm268-1" matches what is expected.  ^0 Z9 K- y; G+ R0 C! i, ?1 ]
Host looks OK& d" J& G; F; v. ~
gm268-1 (None) ok2 `( @6 Q  d# Q3 [
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-11 23:03 , Processed in 0.016376 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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