易陆发现互联网技术论坛

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

hosts fail cephadm check ceph分布式存告警

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

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

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

x
health: HEALTH_WARN# a* a/ P" t* `" i9 m4 R! K9 M" X
            1 hosts fail cephadm check
  A# q( e) p: E7 n  m% y( bCEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
2 W+ V1 x; q/ ?' o' q8 ?& i# ceph health detail + K9 E. ]/ i* ?2 W
HEALTH_WARN 1 hosts fail cephadm check
, r1 R" S0 f1 G/ B5 x& Q6 o3 {# w[WRN] CEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
! a' `6 w" E3 ]3 Q: \2 h9 q    host gm268-1 failed check: Failed to connect to gm268-1 (gm268-1).
) r* A/ t! U; \/ v4 @8 f, ?Please make sure that the host is reachable and accepts connections using the cephadm SSH key3 z& u$ n1 q# d' b- N6 H0 R1 v# g8 P
2 i; G3 P7 p  z# \
To add the cephadm SSH key to the host:: S% g* S. g0 t/ {' d7 r( p
> ceph cephadm get-pub-key > ~/ceph.pub
+ q' I8 P+ A8 O& Z/ Z( y* w; W- z> ssh-copy-id -f -i ~/ceph.pub root@gm268-1
9 ]8 n9 T5 z, P2 c! b' D; ~3 W, K8 m
" B0 {+ H6 P$ s$ A% PTo check that the host is reachable:
6 `8 w; T. e* G( w! Z, L6 q/ A> ceph cephadm get-ssh-config > ssh_config
( U2 y0 f( i3 C! d/ X> ceph config-key get mgr/cephadm/ssh_identity_key > ~/cephadm_private_key* V$ \5 B5 H3 }" A
> chmod 0600 ~/cephadm_private_key5 _* g8 M( @% F! L) Y6 o. W7 {
> ssh -F ssh_config -i ~/cephadm_private_key root@gm268-1
' H* T+ [2 Y  ^' k% a/ V7 N! I, n& [/ @; J& j

( i0 b5 d( ~  S- u, m6 z0 G: L- y# r; I
 楼主| 发表于 2023-2-3 22:14:53 | 显示全部楼层
[root@gm268-5 ~]# ceph cephadm check-host gm268-16 ~! q3 b/ d: `( h0 y
podman|docker (/usr/bin/podman) is present. ^. I  F7 ]) d
systemctl is present
) ^, j9 q8 P4 N  tlvcreate is present
' |. A$ n+ q# a# l# s6 N' B- EUnit chronyd.service is enabled and running& w) H, V  I; g8 c" S% K8 c
Hostname "gm268-1" matches what is expected.
: n7 X, R$ f% PHost looks OK
+ `$ f( \5 X' D" g& ~gm268-1 (None) ok8 E) g1 v9 _4 {3 D3 S; `/ ^, P
[root@gm268-5 ~]# ceph cephadm check-host gm268-2
# K6 m5 h1 ]; |podman|docker (/usr/bin/podman) is present/ ^. W3 j, F! O1 i2 Z. I  `. [
systemctl is present8 m* O0 E% ]4 A( A
lvcreate is present
9 r! ]: L  L. k, c8 }. G4 [0 h3 xUnit chronyd.service is enabled and running3 {$ a! H6 N" i2 F
Hostname "gm268-2" matches what is expected.
9 E( H, p  y4 }, R  }& c! F' ~4 JHost looks OK2 t/ T5 a' i' b* N- o# h6 u
gm268-2 (None) ok, @( ^9 B: C  B  Z) D
[root@gm268-5 ~]# ceph cephadm check-host gm268-3# M8 @4 c+ [: N) N, M  o3 p* N
podman|docker (/usr/bin/podman) is present2 X) {7 p1 B+ K7 O' A$ P% \; E
systemctl is present
3 J  R: o( |, p: J0 a% |( V/ K% Flvcreate is present! l* o& T6 ^- Y6 I+ W6 M6 ~
Unit chronyd.service is enabled and running
, a; B3 C4 M8 X7 @8 q5 \! {Hostname "gm268-3" matches what is expected.2 d/ c6 k9 O1 T0 i% a2 |& B1 u/ ~
Host looks OK
9 x) b4 Y2 [3 ]$ Lgm268-3 (None) ok
3 L4 j4 z2 d  d
 楼主| 发表于 2023-2-3 22:19:10 | 显示全部楼层
[root@gm268-1 lib64]# ceph -s, {5 e- G& d4 [! g' M) w2 X
  cluster:0 P- |8 n, w2 ]4 V- C% Z2 ^2 z- Z
    id:     ce68aab8-8f46-11ed-88c0-ac1f6b3a30b9* Z5 n+ d7 b4 ]7 s6 s6 [  ]
    health: HEALTH_OK
+ E  e0 [! U% W  Y
$ L5 r+ D/ z) R  services:
& |5 g1 u1 B# j    mon: 3 daemons, quorum gm268-1,gm268-2,gm268-3 (age 11m)
+ C( c0 N4 |4 K! G    mgr: gm268-2.zttohs(active, since 3w), standbys: gm268-3.sjagqo, gm268-1.jgdvxs
1 N6 A/ F( v3 r    mds: cephfs:1 {0=cephfs.gm268-2.xdsdoz=up:active} 2 up:standby7 `8 X# }0 |! B" G
    osd: 41 osds: 41 up (since 10m), 41 in (since 2w); 1008 remapped pgs
. W% g) W6 e& s+ K% W1 G 7 P" G7 x  ]: e# {
  data:
: u; D' R9 N3 j! m3 F  T' D    pools:   3 pools, 9217 pgs% r! c* ~2 S7 B9 N. O' o
    objects: 10.14M objects, 14 TiB
: i1 |5 U3 r) \2 d: k    usage:   28 TiB used, 569 TiB / 597 TiB avail; F" m& a, f  ]  P/ W$ @$ ^
    pgs:     1026683/20286478 objects misplaced (5.061%)' V* F; Q# ^5 j2 S7 T" w
             8207 active+clean) }  `' o+ A; s1 ?* J9 p2 b: G
             958  active+remapped+backfill_wait' b* A% O# e' ]" w, |$ @
             52   active+remapped+backfilling4 @6 L3 ]3 ]$ k

% q6 {% o# P- U. f' _  io:
+ ^4 y0 T! P+ H, w( |3 B    recovery: 735 MiB/s, 14 keys/s, 484 objects/s( m# T% j3 c9 l) a

+ H( e0 J0 D, q: i. s: f" V! f[root@gm268-1 lib64]# ceph cephadm check-host gm268-1
6 L" T% t5 u/ ypodman|docker (/usr/bin/podman) is present
, c; U3 O1 c) hsystemctl is present
( p% W2 p4 F! Llvcreate is present6 Z, ~6 R, N8 q: d! e( g( j9 F
Unit chronyd.service is enabled and running$ g9 J& T! I5 ^# ?' K
Hostname "gm268-1" matches what is expected.
0 Q; S" y3 }* p/ ?5 Z- x+ jHost looks OK7 H' `' p- [# T  B0 P2 S
gm268-1 (None) ok
6 P5 }+ B5 M8 A1 n
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 10:33 , Processed in 0.086062 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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