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

cinder 管理volume节点host,删除volume服务节点步骤

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2020-12-27 13:11:44 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 5 金钱 才能浏览

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2020-12-27 13:19:00 | 显示全部楼层
[root@controller ~]# cinder service-disable controller@CEPH2 cinder-volume  ! F# u' b6 S9 r7 f( C, a% \5 O
+------------------+---------------+----------+( w% `0 h- t  \0 r/ X: ^3 g
| Host             | Binary        | Status   |
2 R7 `+ e( x+ b. D! z8 S0 I/ d+------------------+---------------+----------+
- x) T$ O7 ?; ^7 M' ^, B- v! ~. Q| controller@CEPH2 | cinder-volume | disabled |- |9 M& e. u" p9 Z% c2 f
+------------------+---------------+----------+
7 k* }3 u, k$ ~# K, o$ Y% Z3 V0 [  B[root@controller ~]# cinder-manage service remove cinder-volume controller@CEPH27 ]) q4 i- Q( `3 q: j5 A. U- e
Option "logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group "DEFAULT".
3 [# n$ i1 G4 h5 F3 ^Service cinder-volume on host controller@CEPH2 removed.
  H1 Y" u  X" z
) G$ n. @+ g7 ]1 g; N' U. f; oEvery 2.0s: cinder service-list                                                                                                            Sun Dec 27 13:19:18 2020
) }# x" t" G+ E! v" I5 K$ g$ p
* h' T: ~2 B! z( w& k5 t" m+------------------+------------------+------+---------+-------+----------------------------+-----------------+
' Y# w3 r7 ]) o4 x| Binary           | Host             | Zone | Status  | State | Updated_at                 | Disabled Reason |: T0 L1 o5 _: B: h
+------------------+------------------+------+---------+-------+----------------------------+-----------------+) q0 y, }$ }, D% {" V7 b5 C7 U0 \
| cinder-scheduler | controller       | nova | enabled | up    | 2020-12-27T05:19:11.000000 | -               |
$ n8 b7 l+ o7 r) S+ l; i; [. X| cinder-volume    | controller@CEPH1 | nova | enabled | up    | 2020-12-27T05:19:12.000000 | -               |, l0 ~1 l% Y! {
+------------------+------------------+------+---------+-------+----------------------------+-----------------+
# ^) l: S# X- x  N
$ p% D7 _' x% k# P2 H" y只要volume服务没有停止,过几秒钟状态又会恢复:
. t3 k* R1 _: `, j; i0 `  O1 E- b0 {) O5 v9 j. E" n
Every 2.0s: cinder service-list                                                                                                            Sun Dec 27 13:20:01 2020
$ b3 t+ c5 I; T4 p' N4 o
, h/ W4 T  q2 b7 E& F+------------------+------------------+------+---------+-------+----------------------------+-----------------+' z4 k4 d/ c8 k! g5 h% C  u
| Binary           | Host             | Zone | Status  | State | Updated_at                 | Disabled Reason |) G2 u1 v7 L+ B' P7 x: h
+------------------+------------------+------+---------+-------+----------------------------+-----------------+
6 W" U; h* h+ c4 }| cinder-scheduler | controller       | nova | enabled | up    | 2020-12-27T05:20:01.000000 | -               |0 q! @1 Q# T2 ~  h0 _: h( t) z
| cinder-volume    | controller@CEPH1 | nova | enabled | up    | 2020-12-27T05:20:02.000000 | -               |
3 J; A% |, K; x& `% ~8 A| cinder-volume    | controller@CEPH2 | nova | enabled | up    | 2020-12-27T05:20:02.000000 | -               |5 g: L% u) C( \$ c* T. n  {
+------------------+------------------+------+---------+-------+----------------------------+-----------------+

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-12-30 23:04:13 | 显示全部楼层
root@controller:~# cinder service-disable controller@lvm cinder-volume
' \; S' Y. L( e# ?7 U+ O# ^* [+----------------+---------------+----------+$ n1 N8 k/ ^# Z9 {5 |0 Q# H
| Host           | Binary        | Status   |
7 t  _3 |7 s* R0 L! r+ F& F+----------------+---------------+----------+( R) r$ v) o" U. z2 X
| controller@lvm | cinder-volume | disabled |
4 ]) C  d% Y' N; ^( v# n+----------------+---------------+----------+' ~: t2 Y  ~' C0 T0 [( c
root@controller:~# cinder service-list
8 ]2 `; c/ }; y$ k" \7 {+------------------+-----------------+------+----------+-------+----------------------------+-----------------+
4 _, p5 s3 u& O( g| Binary           | Host            | Zone | Status   | State | Updated_at                 | Disabled Reason |
2 K5 G% @& V( u0 ~9 q+------------------+-----------------+------+----------+-------+----------------------------+-----------------+
2 O6 f! v( h1 q* W| cinder-scheduler | controller      | nova | enabled  | up    | 2023-12-30T15:02:18.000000 | -               |8 j) U) w1 D9 o+ P4 l3 d
| cinder-volume    | controller@ceph | nova | enabled  | up    | 2023-12-30T15:02:17.000000 | -               |" s8 Z5 u7 I. I9 Y
| cinder-volume    | controller@lvm  | nova | disabled | down  | 2023-12-30T15:00:28.000000 | -               |$ K) p- R5 g# }4 B/ O5 n2 h# H
+------------------+-----------------+------+----------+-------+----------------------------+-----------------+8 n' a' x# ~9 [) n* ~* v  c
root@controller:~# cinder-manage service remove cinder-volume controller@lvm
, o/ [) `! u! ?# _, zService cinder-volume on host controller@lvm removed.
) H  V9 e" \9 v3 D/ O' qroot@controller:~# cinder service-list
6 o4 c+ I1 x6 P/ A2 h1 Y+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
+ |4 O8 o' I* |  ~& H| Binary           | Host            | Zone | Status  | State | Updated_at                 | Disabled Reason |
: c% b) j3 n  K' O+------------------+-----------------+------+---------+-------+----------------------------+-----------------+; u3 R! \, A1 n8 o
| cinder-scheduler | controller      | nova | enabled | up    | 2023-12-30T15:03:28.000000 | -               |0 D# M8 b5 ^4 X0 I
| cinder-volume    | controller@ceph | nova | enabled | up    | 2023-12-30T15:03:27.000000 | -               |
9 E0 O" K( r+ W) z" s+------------------+-----------------+------+---------+-------+----------------------------+-----------------+: l9 j2 \& r  E. j6 ^
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:05 , Processed in 0.018217 second(s), 24 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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