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

cinder volume节点存在down设备,要删除。使用cinder-manage方式删除

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2026-4-11 18:32:54 | 显示全部楼层 |阅读模式
[root@controller ~]# openstack volume service list
/ t# t! {: N# _1 c+------------------+-------------+------+---------+-------+----------------------------+
! p/ E) Q, H/ Q2 }# F0 E( N| Binary           | Host        | Zone | Status  | State | Updated At                 |( _: \6 z! g5 \) |# ^2 g
+------------------+-------------+------+---------+-------+----------------------------+- P0 g! K% l8 ^) ?# x8 S
| cinder-scheduler | controller  | nova | enabled | up    | 2026-03-11T18:29:39.000000 |2 G; J0 t7 r9 k. V6 k2 Y: y
| cinder-backup    | storage     | nova | enabled | down  | 2026-03-11T08:14:28.000000 |! z% K' r3 n; H" V1 q: v$ V6 V1 u% G
| cinder-volume    | storage@lvm | nova | enabled | down  | 2026-03-11T08:14:28.000000 |
8 m3 Q0 m1 I% ]1 D" ?* ~/ c3 V0 r+------------------+-------------+------+---------+-------+----------------------------+, V5 g+ n* O0 x  i( y5 C3 C  q
[root@controller ~]# cinder-manage service remove cinder-backup storage
% N( l' B( f. }5 @Service cinder-backup on host storage removed.
: X6 @/ ?6 n9 d5 J5 c5 L[root@controller ~]# cinder-manage service remove cinder-volume storage@lvm
" c: ]5 z( t+ d/ F& |& F) U1 WService cinder-volume on host storage@lvm removed.
7 U5 a/ U- y: c/ t' f! D; w2 d4 @[root@controller ~]# openstack volume service list # x& t6 m0 q0 f3 c1 o
+------------------+------------+------+---------+-------+----------------------------+
" ~4 v- a5 B0 d5 J2 k| Binary           | Host       | Zone | Status  | State | Updated At                 |/ I4 K" G( [3 f
+------------------+------------+------+---------+-------+----------------------------+8 l$ W" }4 X8 a
| cinder-scheduler | controller | nova | enabled | up    | 2026-03-11T18:30:59.000000 |8 a# Z) w5 w2 S' J2 K0 y6 H7 j
+------------------+------------+------+---------+-------+----------------------------+/ P8 }1 D+ s" s& r7 l
[root@controller ~]#
0 D6 e& H' k/ Y2 V" H
+ T6 s! k# m* G6 k- w+ ^4 o4 {
/ K* s" c9 N6 A. m; [/ |

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2026-4-11 18:33:41 | 显示全部楼层
当然也可以采用更新数据库的方式删除,请参考:
# R& d( g# ?  \) i3 D$ mhttps://www.bbs168x.cn/forum.php ... mp;highlight=volume

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2026-4-11 18:56:54 | 显示全部楼层
openstack volume service set [--enable | --disable] [--disable-reason <reason>] <host> <service>, N/ u- K! o' i4 ~
! N2 R; {6 m9 d$ Z% S. _* L
openstack volume service set --disable storage cinder-volume
: ]1 D! n! U, P1 s7 dopenstack volume service set --disable storage cinder-backup% V2 Z% n5 }) m& P5 j" x
4 K7 n8 l# P1 Y6 z+ H$ O9 k2 `
如果想记录禁用原因,可以加上 --disable-reason 参数:
: p1 X/ g1 t& M, h4 ]3 H
( ^! x" d% F' G" o4 D9 f0 c( p3 Mbash) B5 M" L6 ^) J$ P7 e5 r
openstack volume service set --disable --disable-reason "Maintenance" storage cinder-volume, Z' |+ Y' D' c( t! J# H! K" q

  l1 x( Y* _; J+ X
# l2 E, {: e( Y% E" c5 b  n 启用服务
2 k1 n' e/ a8 h+ @) T维护完成后,可以重新启用该服务,使其能够接收新的卷操作请求。
4 l+ }4 T) N5 W2 W  \6 c/ c% M3 k0 c2 G* M, ]$ C
操作
5 V2 V: Z; [0 O+ B5 D: K7 ?3 u3 _; B4 x- k! d* z+ @1 P
bash
) U7 g1 x+ |3 p- u6 c3 wopenstack volume service set --enable storage cinder-volume+ u; ~% U- K: U
openstack volume service set --enable storage cinder-backup8 j0 Q7 g6 h- M: {- p
输出示例
$ U! [( S. W, v( R1 j4 X再次检查服务状态,Status 会恢复为 enabled。$ \% e1 t' @( L# g7 n2 N& C: W/ |
5 j/ d8 e: C+ g; L
text8 Q1 B- E) Z* C5 z+ l2 Y' T
| cinder-volume | storage@lvm | nova | enabled | up    | 2026-03-11T18:29:39.000000 |
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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