易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 781|回复: 2
收起左侧

hosts fail cephadm check ceph分布式存告警

[复制链接]
发表于 2023-2-3 22:11:28 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
health: HEALTH_WARN, |5 e6 w; t6 U+ Z+ o  c/ L6 K$ h
            1 hosts fail cephadm check- ~: Z1 b. P  P- Q! k& _
CEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
1 K% W/ L6 ]1 z# B) |# ceph health detail $ J# X4 {& S# s
HEALTH_WARN 1 hosts fail cephadm check9 ?5 e( @" _: T2 o
[WRN] CEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check* d8 w( X* C- \' w& a
    host gm268-1 failed check: Failed to connect to gm268-1 (gm268-1).
# U% `5 Z2 U$ X9 ~Please make sure that the host is reachable and accepts connections using the cephadm SSH key
0 y. |: p3 M# u% e4 v3 l5 x5 B
; ^( y7 w& z  Z9 L6 v1 M0 CTo add the cephadm SSH key to the host:" F; p5 _4 e8 \# D5 c7 C6 A
> ceph cephadm get-pub-key > ~/ceph.pub
; }, S% _9 o  ]9 m/ z$ E% H> ssh-copy-id -f -i ~/ceph.pub root@gm268-1
, N5 D. p( w; w  B$ L6 W# m1 p! s- ?, h0 H" ?8 v% ]
To check that the host is reachable:! E8 j  L7 z4 e4 [
> ceph cephadm get-ssh-config > ssh_config
& p" b; t3 O7 n9 \( A3 {" }> ceph config-key get mgr/cephadm/ssh_identity_key > ~/cephadm_private_key
  f- J+ @& T1 U4 D, x* s* C> chmod 0600 ~/cephadm_private_key
" P9 u) C2 |+ {' r' {0 t# u2 C> ssh -F ssh_config -i ~/cephadm_private_key root@gm268-19 y( O7 }, ~) U

( y# e' K" b9 s3 ~2 n# q  }0 c" h! p; R) v' b4 B9 t

5 b- Q# m# j1 Y, f' J; j; c4 f
 楼主| 发表于 2023-2-3 22:14:53 | 显示全部楼层
[root@gm268-5 ~]# ceph cephadm check-host gm268-1
, j: C+ Y/ B6 Ypodman|docker (/usr/bin/podman) is present8 c( Z! N% o. `, C) B
systemctl is present& k, x7 i8 d6 F2 m* m9 T& w. D
lvcreate is present
: y* m4 W% s7 b1 yUnit chronyd.service is enabled and running
) ^  n9 j, y% D7 t( ?; DHostname "gm268-1" matches what is expected.# y) n# `: h2 A, I4 W# w
Host looks OK2 E: I* F4 f1 u7 K  z6 A
gm268-1 (None) ok: t: ]; u8 X' @2 H2 }4 e* h
[root@gm268-5 ~]# ceph cephadm check-host gm268-2
% e! `8 J+ K. h/ _3 Npodman|docker (/usr/bin/podman) is present3 e, b9 y8 O3 E' Q6 t
systemctl is present7 C# V0 p: F4 e! _
lvcreate is present5 w, \7 f' D* F3 g4 V" G
Unit chronyd.service is enabled and running
7 F% _. x. B5 O/ P! t7 G& i" xHostname "gm268-2" matches what is expected.
3 C* Q, }0 K5 w9 v2 I8 x3 H4 OHost looks OK
" U% v0 N4 Q! t; D# Fgm268-2 (None) ok
5 e( R2 x5 G3 }3 k[root@gm268-5 ~]# ceph cephadm check-host gm268-3
' @; c2 l2 R  [5 jpodman|docker (/usr/bin/podman) is present
8 ]2 R% X2 P8 N+ `systemctl is present
5 o8 @. X) x) klvcreate is present
: `8 Y* T: \# U4 {4 t) M+ [9 dUnit chronyd.service is enabled and running
2 {% s6 H$ f) T& R0 V: FHostname "gm268-3" matches what is expected.8 o* H7 @! j: l5 d1 _7 R, X& w
Host looks OK, @5 i# H: [/ ]* H% I% a# h% J
gm268-3 (None) ok
" {+ x4 P, H3 J
 楼主| 发表于 2023-2-3 22:19:10 | 显示全部楼层
[root@gm268-1 lib64]# ceph -s
( Q" {4 G9 k+ e5 O  cluster:- J% ]& e( h# a% p2 U  _. L  ?; i
    id:     ce68aab8-8f46-11ed-88c0-ac1f6b3a30b9/ B+ u; O+ K% x( H8 m- {' ^
    health: HEALTH_OK% c. T2 A$ z. A' j$ _
. K. ?8 Q. s4 D- C
  services:
7 x; J7 p3 C1 e% u1 A    mon: 3 daemons, quorum gm268-1,gm268-2,gm268-3 (age 11m)
/ P. z. _& j9 T& W6 j- W) d    mgr: gm268-2.zttohs(active, since 3w), standbys: gm268-3.sjagqo, gm268-1.jgdvxs
  N1 k# k, Y* g5 ^0 |5 V    mds: cephfs:1 {0=cephfs.gm268-2.xdsdoz=up:active} 2 up:standby
& d  x4 C! M) @0 \6 o: B    osd: 41 osds: 41 up (since 10m), 41 in (since 2w); 1008 remapped pgs
$ {; G+ l* s- O, m
: }/ r' A1 D' C6 P4 D% Y  data:
+ L; I/ P' `6 O0 d+ V    pools:   3 pools, 9217 pgs
: {5 m6 M6 G& R0 i- h" n9 Z4 p    objects: 10.14M objects, 14 TiB
" C% k2 @) E0 S6 _4 h+ f' L    usage:   28 TiB used, 569 TiB / 597 TiB avail
8 _# K6 Z+ [. h  o: [    pgs:     1026683/20286478 objects misplaced (5.061%)& a9 l3 Z% J; K" t, `. P* B. _
             8207 active+clean
- C% y( _' V4 T3 M0 R* D; S             958  active+remapped+backfill_wait- `. @" O7 u8 F7 x2 F- S9 K
             52   active+remapped+backfilling: o* R$ d0 @) [/ _/ R

2 l# o! ?+ W- J5 Q2 W. @  io:
& b: y5 k# m( K* `, D2 c# \( O; r    recovery: 735 MiB/s, 14 keys/s, 484 objects/s6 H6 m1 d2 x- A* w3 Q3 k- @
' G6 `! n' ]  |6 S6 f
[root@gm268-1 lib64]# ceph cephadm check-host gm268-1
3 a; e* o2 w, `/ M% p! H2 ]podman|docker (/usr/bin/podman) is present/ s% o) F& n+ p/ s
systemctl is present$ u5 B# f# x; D
lvcreate is present; M5 S: P; o; |3 x9 Q& t& P2 m
Unit chronyd.service is enabled and running
' z" B* ~' Z9 m5 q6 h3 RHostname "gm268-1" matches what is expected.6 c% X. y1 Z/ S" W
Host looks OK
. A0 B( \1 ~, v$ r- R& _/ xgm268-1 (None) ok
" d5 {3 a( N; f& J7 u" R! q
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 10:37 , Processed in 0.047824 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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