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

hosts fail cephadm check ceph分布式存告警

[复制链接]

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
发表于 2023-2-3 22:11:28 | 显示全部楼层 |阅读模式
health: HEALTH_WARN7 _. |  u: }  O$ p4 _# t
            1 hosts fail cephadm check
4 c' {% a8 |# u8 h' B+ P- e1 FCEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check
& b! G5 l) z: O. B7 Y7 e( ]/ u# ceph health detail
6 J( E% d8 F) U! K1 [% dHEALTH_WARN 1 hosts fail cephadm check$ z) S( x6 a6 b! d
[WRN] CEPHADM_HOST_CHECK_FAILED: 1 hosts fail cephadm check, a. j% g9 w/ w
    host gm268-1 failed check: Failed to connect to gm268-1 (gm268-1).% }6 s7 w( @) Q4 l) g" f
Please make sure that the host is reachable and accepts connections using the cephadm SSH key) w7 ?" Y, z- r% \

6 g, i/ }% E! B) dTo add the cephadm SSH key to the host:
5 M6 {/ |. m: J> ceph cephadm get-pub-key > ~/ceph.pub
+ {7 M  w' D2 `9 [3 h> ssh-copy-id -f -i ~/ceph.pub root@gm268-1
! u/ h- a4 D# Q/ U5 r) B# a3 z% r1 Z! Y6 x, f& C4 t
To check that the host is reachable:
  q$ H, s- S; x; a3 A  W$ A> ceph cephadm get-ssh-config > ssh_config% I- s5 \  ]$ S6 J* M# \
> ceph config-key get mgr/cephadm/ssh_identity_key > ~/cephadm_private_key
2 E9 p& o+ i, c2 ]> chmod 0600 ~/cephadm_private_key
, [' L! J+ G4 y; s> ssh -F ssh_config -i ~/cephadm_private_key root@gm268-1
6 m% f# S0 ]6 i" O7 `9 j' C/ D. G0 ^; V3 ^+ D

/ q% U4 ^/ U: n8 B% j3 g7 Q5 m, k( C. I) w( y

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
 楼主| 发表于 2023-2-3 22:14:53 | 显示全部楼层
[root@gm268-5 ~]# ceph cephadm check-host gm268-1  N- U6 J  ?' o- c, y  {
podman|docker (/usr/bin/podman) is present  `9 e% p& W/ Z8 `6 U
systemctl is present
, z' T4 e- X6 zlvcreate is present4 h. X7 o3 s0 n0 B4 P
Unit chronyd.service is enabled and running
0 J. a2 O/ s+ v4 `- G( l) y: Q$ ]8 bHostname "gm268-1" matches what is expected.
% a0 ~3 A* [5 E9 [; iHost looks OK
1 G$ n* X% K# G/ K9 _3 B* ggm268-1 (None) ok
/ [. t3 N* p/ d3 r7 S& ?[root@gm268-5 ~]# ceph cephadm check-host gm268-21 M3 u" B% y2 P  W/ I; ~- |; x
podman|docker (/usr/bin/podman) is present0 g3 ?3 A3 W9 ?3 Z2 G6 L1 L0 H. h
systemctl is present: _( i7 ]1 M2 E. s
lvcreate is present! K/ ]9 i2 y( I' d: h
Unit chronyd.service is enabled and running
2 g  ^' k/ u$ {7 oHostname "gm268-2" matches what is expected.; O% ^+ `  ]% @9 N
Host looks OK3 W8 x2 E8 P! ]0 P# q
gm268-2 (None) ok" A; H" u0 }# `" K# n
[root@gm268-5 ~]# ceph cephadm check-host gm268-33 l# Y: S5 [2 |* J2 a9 p
podman|docker (/usr/bin/podman) is present
8 V( x5 H7 W( Wsystemctl is present
% F* E8 V& w" @0 ~lvcreate is present
# r5 G8 r" U" h# k# b  yUnit chronyd.service is enabled and running
5 K. V7 B/ F) ?. q( L3 K6 B/ BHostname "gm268-3" matches what is expected.2 B8 a% Q" Z8 P) m
Host looks OK
- w, X. A! d1 k! e( agm268-3 (None) ok: K- t- U' e- K* Y1 u, K2 l

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
 楼主| 发表于 2023-2-3 22:19:10 | 显示全部楼层
[root@gm268-1 lib64]# ceph -s
  o8 `7 p  D8 o' s, e0 h  cluster:
4 R# d" f9 u/ P% S5 W, D    id:     ce68aab8-8f46-11ed-88c0-ac1f6b3a30b9
5 C& U+ e, Q6 ]+ Z    health: HEALTH_OK
9 q/ G, a( e7 p! @8 T7 h# `% D 4 b3 e0 M% E; ]! e& U
  services:
" f5 d- G5 m/ n7 ?! w0 n) {, i    mon: 3 daemons, quorum gm268-1,gm268-2,gm268-3 (age 11m)2 f1 ?9 H2 F' W% a/ C6 }
    mgr: gm268-2.zttohs(active, since 3w), standbys: gm268-3.sjagqo, gm268-1.jgdvxs1 j0 ?. b: _9 {# Z
    mds: cephfs:1 {0=cephfs.gm268-2.xdsdoz=up:active} 2 up:standby
* O0 f7 I# G1 e7 I5 o& ]6 x- I    osd: 41 osds: 41 up (since 10m), 41 in (since 2w); 1008 remapped pgs9 P) p1 r5 k& i9 M! S; `
0 P  _. {0 q# ?9 @3 m
  data:
5 C/ G' @. X" c' S; r  a' W    pools:   3 pools, 9217 pgs
9 R& P5 o. W% K, \  P, r9 ^- j    objects: 10.14M objects, 14 TiB& t& J* J7 M* B$ z
    usage:   28 TiB used, 569 TiB / 597 TiB avail7 N7 L; A" R. s7 D  t
    pgs:     1026683/20286478 objects misplaced (5.061%): j; e; ?! `" }  u0 U
             8207 active+clean2 T; a+ u. ]+ V5 }/ o' L( b' V
             958  active+remapped+backfill_wait
3 H# r8 O! h9 g3 m             52   active+remapped+backfilling# U4 r$ k" J& q3 I
' D( T6 E9 `3 t6 Q9 {
  io:
5 k0 `$ g. V6 L0 F. H6 A% {) P    recovery: 735 MiB/s, 14 keys/s, 484 objects/s7 m2 a4 A2 U& q
6 ^* M; w6 _$ P8 ?! ]
[root@gm268-1 lib64]# ceph cephadm check-host gm268-1
8 g: e, c* U7 c# d# `9 mpodman|docker (/usr/bin/podman) is present
6 n0 r: N" o# Esystemctl is present
/ i, F5 ~0 K- Vlvcreate is present* N: S$ a0 l0 x: a6 e7 |
Unit chronyd.service is enabled and running
/ p  \6 O. i4 y3 s% p# [: @Hostname "gm268-1" matches what is expected.4 Q9 [3 }$ f6 E' o; y" @
Host looks OK+ m7 q7 o3 R, u7 a) o& o# j
gm268-1 (None) ok
$ b1 {1 Q4 M7 s/ h( L! w& T. t  G
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-11 21:58 , Processed in 0.035767 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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