- 积分
- 16841
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@controller ml2]# nova service-list
) q) B, ^+ O+ T2 N+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+9 ]% W3 A- ?0 Q. w
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |# Q P, ^" }% C
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+" h0 T* K8 r: s8 y
| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:24:19.000000 | - | False |
' |+ @( a' x2 ~$ A' v5 G4 G$ J| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:24:25.000000 | - | False |
) j( \' {5 J: ~) P% q' D, p| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | nova-compute | compute02 | nova | enabled | down | 2021-09-04T10:24:16.000000 | - | False |
1 U2 z0 }0 t z2 ^! p| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:24:22.000000 | - | False |
8 G6 j. Z1 {( D0 ?) ?| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:24:23.000000 | - | False |
4 V* p# d0 g" d. v' q+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
; {9 \. a+ b) f/ ^9 a9 [0 X$ I. }, u8 E. m+ m9 E" s
将down的节点disable掉:) {# O' s; W* n( ` T/ }* N
3 a' p! N, B4 Q, c9 s
[root@controller ml2]# nova service-disable beac6eb2-7daa-48ff-93d0-8c6833ffeee9 8 f9 R/ h( f7 Z8 V
+--------------------------------------+-----------+--------------+----------+( I$ @' r* o3 I9 F
| ID | Host | Binary | Status |
& m& K7 ]& a7 t G+--------------------------------------+-----------+--------------+----------+/ r. \8 J' ?1 J9 s) W. Q6 ^6 g+ ]
| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | compute02 | nova-compute | disabled |- l) [0 O3 l1 ], B4 i
+--------------------------------------+-----------+--------------+----------+5 e/ |7 w0 V0 i( K- b* m6 P9 D
U( K% Z2 y# P' F" S& q( n4 v9 u" J
1 [9 Y" B3 H0 }1 }) g# j* R
删除已经disable并且down掉的节点:
/ o' L* f6 s) f; ?) [* L
( {8 [- C# Q' `5 t( z0 g& P[root@controller ml2]# nova service-delete beac6eb2-7daa-48ff-93d0-8c6833ffeee99 b9 Y- U& H5 \
6 D) h. y: b( Z6 v4 ^4 n
查看down掉的节点已经被删除:1 l( V+ M1 k. |' E; T y
[root@controller ml2]# nova service-list 5 |+ F0 T" ]# ~# {( ?4 k! T: k
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+& ~, E; b! F" @' P; H
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |) J' u$ A, @& _% g$ I
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
[5 \4 ?7 n, z% I% I# \2 i| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:25:29.000000 | - | False |
; w" t8 H. L5 k. M* Y' t| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:25:25.000000 | - | False |
" ~% C+ p3 Z. h1 }# ~| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |' z- X4 V: K9 @' i( F
| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |
$ L6 ^7 \3 P0 M+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
?7 K3 C# Q( O$ m- x: Q[root@controller ml2]#
' R( F7 Q) p b6 C9 q8 U9 [2 { |
|