- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@controller ml2]# nova service-list
8 t6 u A2 q$ n7 \) x5 e- f+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+4 o% F0 R+ L" _& I5 r5 d; Y
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
. H& M) _+ B0 V4 A9 Z! A. H8 |+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
~; W5 c! x+ W" N2 F5 W( f| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:24:19.000000 | - | False |. R8 t$ E" n3 [- u/ j
| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:24:25.000000 | - | False |( w- S" A; a0 B: C: U3 g: }$ [, V
| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | nova-compute | compute02 | nova | enabled | down | 2021-09-04T10:24:16.000000 | - | False |
6 R7 `, j+ {. E f; n. |2 j5 V| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:24:22.000000 | - | False |
) t: M5 s6 r* R) Y| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:24:23.000000 | - | False |
7 F- [ @: q: X* N5 W/ k+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
?3 U# ^3 j; a8 M. F" Q; e( |2 s6 _4 X! K9 \1 m8 j
将down的节点disable掉:1 V4 k: [; g+ }% t, A$ r& n5 b
V8 |- P' ^3 m3 R[root@controller ml2]# nova service-disable beac6eb2-7daa-48ff-93d0-8c6833ffeee9
2 o# z& f" D3 }' \* d+--------------------------------------+-----------+--------------+----------+' o5 K& _* \& ] z% h) e) Z
| ID | Host | Binary | Status |, Q/ b2 h4 @0 [3 |1 O
+--------------------------------------+-----------+--------------+----------+
* W# O+ R _& B| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | compute02 | nova-compute | disabled |
& _2 _6 d" @: y/ x7 i6 T+--------------------------------------+-----------+--------------+----------+# M- o# z# ^9 J) b% j8 z
# s6 q) r# y" K1 {2 K+ e1 J, J9 c1 A4 g! d) A& p v/ U8 p
删除已经disable并且down掉的节点:3 r; Q6 W! I, f1 B
6 R% w& v" Y; B7 |2 ^! e
[root@controller ml2]# nova service-delete beac6eb2-7daa-48ff-93d0-8c6833ffeee9
+ _) {9 s" s* E# R5 i
' Z' v0 o1 o( _. M* j5 c) Q6 m' B6 ]查看down掉的节点已经被删除:
4 _ {* u9 G! l[root@controller ml2]# nova service-list
9 O1 g1 [" \, B' s, m: v+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
8 ?8 t& |' @8 k1 t7 Z9 Z# A| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
& @4 ], ^6 [3 @6 S8 K1 H+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+6 Z9 ]5 S$ q2 @# Z& |! e
| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:25:29.000000 | - | False |
( Z9 C$ i1 V# B* P( g4 @: q| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:25:25.000000 | - | False |
0 @3 _. O6 w9 [" Q| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |+ @+ V" u8 f) V% z9 r1 x4 n$ Y/ D
| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |) L0 _$ g9 a2 t% U
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
8 y _( p( E7 X[root@controller ml2]#
5 m& v- \ C t4 _3 K" S+ \ |
|