- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@controller ml2]# nova service-list
) H9 `& w% X: _+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
4 y0 \# q4 X& M% ?% ^| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |1 e5 j1 n7 T7 o6 e: F; F5 ^2 R
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
( n4 y$ n, y7 _1 [) `, `+ Y2 u8 A| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:24:19.000000 | - | False |3 n, J# {. L `+ I/ k) O) j; {) S
| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:24:25.000000 | - | False |
; j7 N2 A, b0 ]0 D; ~4 x| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | nova-compute | compute02 | nova | enabled | down | 2021-09-04T10:24:16.000000 | - | False |
7 Q: v L2 I) U) L6 T| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:24:22.000000 | - | False |5 q3 U+ X. n( N0 I- o" @, Q% g
| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:24:23.000000 | - | False |0 U) m; @9 g3 Y, _' ^
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
9 @1 ^) d+ F/ Y9 f9 a8 n! P4 c0 S J
将down的节点disable掉:+ k8 n) |4 B4 C% {) d, [
! } Y/ _. j @. |! I( a[root@controller ml2]# nova service-disable beac6eb2-7daa-48ff-93d0-8c6833ffeee9
3 |) }9 S) R3 r I+--------------------------------------+-----------+--------------+----------+# ] i. o$ v% s
| ID | Host | Binary | Status |1 |/ |/ b9 p% f% _
+--------------------------------------+-----------+--------------+----------+
0 u* S' H) ^. ~ Z1 ]8 b) P0 M| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | compute02 | nova-compute | disabled |
# s) |9 k8 B: B# D! i/ \: v+--------------------------------------+-----------+--------------+----------+1 z5 ~; Y; x1 H. J- G% m/ I
0 l$ R) f$ o: @$ G8 B4 b6 L7 l0 J* x/ a* Y# R* K) m; W
删除已经disable并且down掉的节点:9 w |* u. W' L" I5 I
. ^' s4 v; x' Z5 x; i, y' K4 m[root@controller ml2]# nova service-delete beac6eb2-7daa-48ff-93d0-8c6833ffeee9
1 P5 M0 |& z! R* x% c: G' O, H, |$ L' E) h' ?
查看down掉的节点已经被删除:
4 |: F! r2 I* R4 I[root@controller ml2]# nova service-list
- n3 t: b. c: K q+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+, e2 H- t% y9 E+ ]4 D
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |" G1 g- `8 P, g% `' I! a0 f# `
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+! l& r% J% m- p/ X; D
| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:25:29.000000 | - | False |
* ?& e! k! L! q$ y: U| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:25:25.000000 | - | False |" ~0 I& H, |2 i( w) e) {3 L; B2 n
| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |2 C# z, u# M) }
| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |
& t8 x: x7 f7 U c# Y1 l; V+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+# B& i2 i% B/ b: U: ~, D% \9 B, ^ P$ N
[root@controller ml2]# . y1 Y. B! _) ~- J
|
|