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

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

[复制链接]

0

主题

0

回帖

9

积分

管理员

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

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
 楼主| 发表于 2020-12-27 13:19:00 | 显示全部楼层
[root@controller ~]# cinder service-disable controller@CEPH2 cinder-volume  6 R1 c# ?: |. ~7 u0 S0 l9 O
+------------------+---------------+----------+
% @* p- U  d& E| Host             | Binary        | Status   |% f' L. z6 t% o9 `: Q
+------------------+---------------+----------+
0 K7 X( a& H8 r: i( [0 E| controller@CEPH2 | cinder-volume | disabled |7 K( T9 f6 {0 T1 k+ q1 q/ [# Y
+------------------+---------------+----------+* @1 ]" p: D; r
[root@controller ~]# cinder-manage service remove cinder-volume controller@CEPH2
! E9 ]+ a) G( w9 N0 bOption "logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group "DEFAULT".
6 Q5 B6 K# J2 D9 {Service cinder-volume on host controller@CEPH2 removed.
/ x) t( d0 T) R" }- U
/ M% ?1 E' j5 @, u7 [Every 2.0s: cinder service-list                                                                                                            Sun Dec 27 13:19:18 2020
$ B( B- ^6 {. a$ V3 T1 ?8 n; f4 F* J: X
+------------------+------------------+------+---------+-------+----------------------------+-----------------+2 o2 A: n7 c+ Q' u
| Binary           | Host             | Zone | Status  | State | Updated_at                 | Disabled Reason |
/ o6 V' |8 m0 v- u+ f1 J. q; ]+------------------+------------------+------+---------+-------+----------------------------+-----------------+* ^4 X* b3 {  ~* {& @; v
| cinder-scheduler | controller       | nova | enabled | up    | 2020-12-27T05:19:11.000000 | -               |
- S! S/ s" q$ x' Q, Q0 D( ~| cinder-volume    | controller@CEPH1 | nova | enabled | up    | 2020-12-27T05:19:12.000000 | -               |& P; Z. m* q; T9 Q
+------------------+------------------+------+---------+-------+----------------------------+-----------------+
/ }$ d( |5 x$ O$ {- ]$ |1 l3 U
' F. J; [% g4 S3 r只要volume服务没有停止,过几秒钟状态又会恢复:
% ]# \3 _4 p/ A( D% C, Z8 P, P$ Y7 c: ~9 X" M
Every 2.0s: cinder service-list                                                                                                            Sun Dec 27 13:20:01 2020
! W8 p" E' n& B: Q/ E
* e( [( w/ w8 w+ `. W; F: `+------------------+------------------+------+---------+-------+----------------------------+-----------------+
! ^* n& V* [- y| Binary           | Host             | Zone | Status  | State | Updated_at                 | Disabled Reason |1 ]$ l( t. C0 C' S9 `: z
+------------------+------------------+------+---------+-------+----------------------------+-----------------+
& e& n) u% u, i5 ]| cinder-scheduler | controller       | nova | enabled | up    | 2020-12-27T05:20:01.000000 | -               |
! R0 g) p! |$ U% y- j! J# {| cinder-volume    | controller@CEPH1 | nova | enabled | up    | 2020-12-27T05:20:02.000000 | -               |
5 s2 {, r* f2 W* ?8 X| cinder-volume    | controller@CEPH2 | nova | enabled | up    | 2020-12-27T05:20:02.000000 | -               |' r5 \6 Y8 B' ?9 E/ ~0 S
+------------------+------------------+------+---------+-------+----------------------------+-----------------+

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
 楼主| 发表于 2023-12-30 23:04:13 | 显示全部楼层
root@controller:~# cinder service-disable controller@lvm cinder-volume
- `" Y( W6 s- M" o+----------------+---------------+----------+
, W0 B2 B3 m& |" Y# D( c| Host           | Binary        | Status   |
: Z9 v8 I' d( G0 H. q+----------------+---------------+----------+
  S) N( i( W6 N2 ~- O' ?1 s* s| controller@lvm | cinder-volume | disabled |
% N- l8 E8 {3 X. O! X+ d, M1 E+----------------+---------------+----------+
$ l" |: k: u0 Y3 D% Z( }& s. wroot@controller:~# cinder service-list
& y& C8 z' K# k/ u: Y+ D+------------------+-----------------+------+----------+-------+----------------------------+-----------------+  J; D  R" f" m3 U6 H' t
| Binary           | Host            | Zone | Status   | State | Updated_at                 | Disabled Reason |) B1 k* H. ^% l$ k- ]
+------------------+-----------------+------+----------+-------+----------------------------+-----------------+
1 e' i2 i# [. @/ v) ^7 h| cinder-scheduler | controller      | nova | enabled  | up    | 2023-12-30T15:02:18.000000 | -               |2 V0 T( O+ [2 W8 Y4 c, q% `1 I* q
| cinder-volume    | controller@ceph | nova | enabled  | up    | 2023-12-30T15:02:17.000000 | -               |
5 E) t& e/ o; k1 [$ D# m# c( a" L| cinder-volume    | controller@lvm  | nova | disabled | down  | 2023-12-30T15:00:28.000000 | -               |
8 t% g  N5 ^: k+------------------+-----------------+------+----------+-------+----------------------------+-----------------+7 w; g0 ?* z" I- K
root@controller:~# cinder-manage service remove cinder-volume controller@lvm % S0 g7 J% w8 V. q4 d5 z
Service cinder-volume on host controller@lvm removed.
8 h5 O% D$ \) I; t' o! z0 Droot@controller:~# cinder service-list
1 D* q( U- y2 o% g+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
! B# v5 \- ^5 @  O  j1 r| Binary           | Host            | Zone | Status  | State | Updated_at                 | Disabled Reason |' g4 u9 d* @- L0 H6 I
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+0 B, {; p  k  C- q7 g
| cinder-scheduler | controller      | nova | enabled | up    | 2023-12-30T15:03:28.000000 | -               |- S4 [- T" D$ T: y- l
| cinder-volume    | controller@ceph | nova | enabled | up    | 2023-12-30T15:03:27.000000 | -               |
* e1 I; x! s* e# j+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
; l' i$ @9 r& |( p
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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