- 积分
- 16844
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@controller ml2]# nova service-list $ E7 q- S, ^4 w/ A* H8 w" \8 m+ d ]
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
0 r1 k) {+ [% F' F) W2 E| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
% X3 g9 C; E" j6 H+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+. x! l: `4 k; _$ [8 A
| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:24:19.000000 | - | False |
" a y/ @0 C3 G+ U7 Q| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:24:25.000000 | - | False |
( K- ], `. e1 m+ t N1 y| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | nova-compute | compute02 | nova | enabled | down | 2021-09-04T10:24:16.000000 | - | False |
$ ?" ~. o2 K$ N| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:24:22.000000 | - | False |
" I( u/ l: Z2 Z C7 m- B| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:24:23.000000 | - | False |- J# y! n4 |# M* d7 S3 \2 |
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
# o/ A; {* p$ K/ H# Q) e9 V( o+ e# d( S
将down的节点disable掉:
8 C2 Q9 A5 e6 A/ i! O9 O. [ F: q5 h
[root@controller ml2]# nova service-disable beac6eb2-7daa-48ff-93d0-8c6833ffeee9
: S Y3 P( ~1 T' s+--------------------------------------+-----------+--------------+----------+
: ~' Z5 J7 j6 ~) U# r1 J| ID | Host | Binary | Status |
7 V, f! {6 Z( k3 `. v, [9 f6 r+--------------------------------------+-----------+--------------+----------+
, i) V, G& M6 s$ J4 H' `| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | compute02 | nova-compute | disabled |. G8 p+ h0 I5 _! T, C2 z$ z
+--------------------------------------+-----------+--------------+----------+
) x: w) n; ]6 R- g
6 J! e' h: v# O4 D; D$ u! j" n8 Y% j ?4 p
删除已经disable并且down掉的节点:
8 a/ o: s3 z" s u# r
5 |; t$ r u& u K9 J[root@controller ml2]# nova service-delete beac6eb2-7daa-48ff-93d0-8c6833ffeee9
) ?4 |, s" ~, U1 F. F9 O2 \' H: ^3 K6 c/ \) p" r7 ]; I7 D2 a
查看down掉的节点已经被删除:
1 n* V0 }' m6 Y# m$ s& }[root@controller ml2]# nova service-list
" Q5 k; ]* { L: J4 A4 W: O1 J+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+' o* E) i, r. ]7 J$ h5 u, ~: n
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |- G2 [9 f! {* \& S+ ^, A
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+, `- v. ]0 k- q( a
| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:25:29.000000 | - | False |
$ \, J1 ], A( t" n| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:25:25.000000 | - | False |# i( f/ C! g7 h+ W6 q
| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |7 M+ Z2 k7 {% T0 e! g9 d
| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |9 v+ a, ~/ a- I: C
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
. \% Y$ b: p8 [% p9 `4 C) ~4 F[root@controller ml2]# 8 h$ a7 U" ^% ]3 C6 J) _- N4 S
|
|