将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

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

ceph存储删除mon节点命令

[复制链接]
发表于 2021-10-25 17:16:00 | 显示全部楼层 |阅读模式

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

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

x
[root@ceph1 deploy]# ceph-deploy mon destroy compute3
2 r3 F' \( h/ k- Z; p/ F[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf4 k: L( I$ c1 q) s! }; k5 M
[ceph_deploy.cli][INFO  ] Invoked (2.0.1): /usr/bin/ceph-deploy mon destroy compute30 `5 ~8 o- s, V: \- m& z" A  K
[ceph_deploy.cli][INFO  ] ceph-deploy options:
- ^! H9 l5 S3 p. \  o* h[ceph_deploy.cli][INFO  ]  username                      : None
/ Z7 z( V+ S& f[ceph_deploy.cli][INFO  ]  verbose                       : False' u; a: [/ z8 A0 E" C; w
[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
. u  r, K, C; q+ ^) c3 z[ceph_deploy.cli][INFO  ]  subcommand                    : destroy
/ M0 H3 p' S! d' ]7 W6 z4 k% v[ceph_deploy.cli][INFO  ]  quiet                         : False
3 k2 W( P2 |$ H  X[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7f32cfeb71b8>
& u& F: w  E: {8 K' s7 Z) X[ceph_deploy.cli][INFO  ]  cluster                       : ceph
$ {- z- s$ }5 p6 N4 G. i% \+ `7 R; ^& c[ceph_deploy.cli][INFO  ]  mon                           : ['compute3']
: m3 R3 b% t( @4 r  n- t[ceph_deploy.cli][INFO  ]  func                          : <function mon at 0x7f32cff05410>
. Y' q3 |; Y, O. t& y/ T8 w[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
. v6 ?- l' v4 Y7 f) Q[ceph_deploy.cli][INFO  ]  default_release               : False& J2 n/ V. a! X9 l* y' U: A2 {% x
[ceph_deploy.mon][DEBUG ] Removing mon from compute3
0 ^3 V9 R7 |  L: F6 A9 w5 ][compute3][DEBUG ] connected to host: compute3
: E1 r# I( i( q" [4 d2 x# T9 Q/ c[compute3][DEBUG ] detect platform information from remote host( o" o3 C0 e+ c9 h$ N  P' }
[compute3][DEBUG ] detect machine type
% j+ F0 @2 L2 h. q7 k; a* S/ L[compute3][DEBUG ] find the location of an executable
& m! V+ f6 E( G$ t& j[compute3][DEBUG ] get remote short hostname# C# e% j6 y  j1 t8 y  Z7 _' K
[compute3][INFO  ] Running command: ceph --cluster=ceph -n mon. -k /var/lib/ceph/mon/ceph-compute3/keyring mon remove compute3) D3 E( m. C$ ^. d$ u7 g4 N
[compute3][WARNIN] removing mon.compute3 at [v2:172.16.7.6:3300/0,v1:172.16.7.6:6789/0], there will be 5 monitors
7 H& T% X$ Y% m$ ^) z[compute3][INFO  ] polling the daemon to verify it stopped
9 P/ |" N" s7 k0 d! O3 F" f2 G$ h[compute3][INFO  ] Running command: systemctl stop ceph-mon@compute3.service8 u  y: ]/ L% n+ Y
[compute3][INFO  ] Running command: mkdir -p /var/lib/ceph/mon-removed
: `  r; R+ ]7 K0 E[compute3][DEBUG ] move old monitor data9 W3 Q9 H6 R- s4 @9 H7 ~
 楼主| 发表于 2021-10-27 09:55:33 | 显示全部楼层
这样就清除了mon节点了。
3 Z7 H# ]) A+ C) r% C- ]6 o: ~ceph -s
7 Q/ N. D- e& o......
* h  b* z+ r9 y  services:
$ Q9 k" `: u- u! [" Y    mon: 5 daemons, quorum ceph1,ceph2,ceph3,compute1,compute2 (age 22h), s9 }0 v2 }1 d- f& K: U3 b
    mgr: ceph2(active, since 22h), standbys: compute3, compute2, ceph1, compute1, ceph3
6 y: V' I$ I- c7 m  I7 V5 X    osd: 36 osds: 31 up (since 21h), 31 in (since 4m); 165 remapped pgs
2 q: W3 ^9 y  Y! Z5 i% a........0 i) ^* ~  f! t# d- |7 j" `
- P" A0 A0 E2 o$ F1 i
 楼主| 发表于 2021-10-28 14:29:21 | 显示全部楼层
[root@hostceph1 deploy]#  ceph-deploy --overwrite-conf mon  destroy hostceph1; d; R! A- }4 V9 v; e; P
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf* P! o( D5 T$ K
[ceph_deploy.cli][INFO  ] Invoked (2.0.1): /usr/bin/ceph-deploy --overwrite-conf mon destroy hostceph1
8 q' C, G: c8 A5 l: s9 m% z[ceph_deploy.cli][INFO  ] ceph-deploy options:
0 _* Q4 t% A; O( U[ceph_deploy.cli][INFO  ]  username                      : None3 _5 _4 h$ m8 [" L
[ceph_deploy.cli][INFO  ]  verbose                       : False
4 u2 l  F" Z3 o[ceph_deploy.cli][INFO  ]  overwrite_conf                : True! x- L* a  [" l. a. e: J1 e$ O, r- i) w
[ceph_deploy.cli][INFO  ]  subcommand                    : destroy
- [0 P( ~" a) l) t2 f6 \[ceph_deploy.cli][INFO  ]  quiet                         : False
/ u0 b9 {" v. ]; A7 P- ~4 x' j[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7fed29235e60>
3 m, z) P( l& `0 p% c3 H[ceph_deploy.cli][INFO  ]  cluster                       : ceph2 H7 c9 D6 X5 x1 e( d% v# p% u
[ceph_deploy.cli][INFO  ]  mon                           : ['hostceph1']: k6 U/ @# F5 L% u
[ceph_deploy.cli][INFO  ]  func                          : <function mon at 0x7fed29289410>
) ?. `; A$ X. ?  e[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
* `( ]7 O* R) E: k[ceph_deploy.cli][INFO  ]  default_release               : False+ I7 C/ e8 ]  t9 z* l) E
[ceph_deploy.mon][DEBUG ] Removing mon from hostceph1& v/ a7 F0 A$ ]; T
[hostceph1][DEBUG ] connected to host: hostceph1 ' P' w2 R5 K- E7 B6 j, f+ T
[hostceph1][DEBUG ] detect platform information from remote host+ D9 }5 E8 l( @
[hostceph1][DEBUG ] detect machine type
0 }  [" c& Y" b# w) C) q, J! y[hostceph1][DEBUG ] find the location of an executable3 C: U! E5 w6 e2 A; s! Q  K
[hostceph1][DEBUG ] get remote short hostname
# f" m# e9 h$ f, S[hostceph1][INFO  ] Running command: ceph --cluster=ceph -n mon. -k /var/lib/ceph/mon/ceph-hostceph1/keyring mon remove hostceph16 m( k% P! T0 T/ [8 _5 F# U
[hostceph1][WARNIN] No data was received after 7 seconds, disconnecting...
* G: e+ }  c, O! W# k9 Z8 P[hostceph1][INFO  ] polling the daemon to verify it stopped
. P; ]5 }, W3 {& |5 g[hostceph1][INFO  ] Running command: systemctl stop ceph-mon@hostceph1.service
  u+ X4 S0 j# M: v/ [/ L( X[hostceph1][INFO  ] Running command: mkdir -p /var/lib/ceph/mon-removed6 b( A+ e0 D# O1 a
[hostceph1][DEBUG ] move old monitor data
/ T  R. _  e- W6 V+ ~$ n4 X" Q[root@hostceph1 deploy]#
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-11-28 19:52 , Processed in 0.044409 second(s), 22 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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