- 积分
- 16841
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@streamcontroller ~]# cinder service-list ! u+ _) E6 @3 _/ ~* A1 E
+------------------+-----------------------+------+----------+-------+----------------------------+-----------------+9 N/ G7 s& l1 f* k! ^: M' Z. F$ Q
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
5 D7 v/ @. c3 d* o, {# B+------------------+-----------------------+------+----------+-------+----------------------------+-----------------+$ S1 U! E9 f, h9 h
| cinder-scheduler | streamcontroller | nova | enabled | up | 2025-02-22T05:23:32.000000 | - |
0 A+ z7 I: `$ K0 e' i& ~| cinder-volume | rbd:images@images | nova | enabled | up | 2025-02-22T05:23:32.000000 | - |/ T$ x: V8 u, |- ?8 L* S
| cinder-volume | rbd:volumes@volumes | nova | enabled | up | 2025-02-22T05:23:32.000000 | - |
" `7 q3 y6 f0 |/ h8 Z$ E| cinder-volume | streamcontroller@ceph | nova | disabled | down | 2025-02-22T05:02:19.000000 | - |" [, t* m a" u* ^
+------------------+-----------------------+------+----------+-------+----------------------------+-----------------+
3 B$ x j2 b& J8 k# `1 ?* W' I8 y0 j[root@streamcontroller ~]# mysql -uroot -p* S8 Q( Y U, ~$ h& m- f
Enter password:
3 l. @5 X' f3 uWelcome to the MariaDB monitor. Commands end with ; or \g.9 y. F2 r6 I$ @1 K$ Y+ L
Your MariaDB connection id is 316
- g6 c" [3 N+ k# MServer version: 10.5.27-MariaDB MariaDB Server) z4 i* e+ W: N2 h
2 a* Q0 W9 J( M5 ^
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.9 q! j6 w/ P$ E2 W
: e' N. _% U3 G- m0 F( h6 X
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.$ G5 i& k3 x9 E a! a) P
1 L! j6 v+ c' B* a, r
MariaDB [(none)]> user cinder' v2 L! s0 [7 S/ e; D* B
-> ;
) f# K; ^! W/ W7 Q wERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'user cinder' at line 1, H1 P: [' v* b* ?
MariaDB [(none)]> show databases;0 q# u9 T3 s2 c4 B+ G
+--------------------+
v4 T3 K- {& u6 l& \# ]| Database |
8 Z3 ]. Z2 ~( P! Q- h) d8 h' A, l2 J+ B( i+--------------------+7 `( h: \7 J' a7 k) k+ Z; y
| cinder |& R) C/ A$ @( U
| glance |; k0 y5 \1 d6 U0 e
| information_schema |
9 f# _0 u Y( w- ~| keystone |
& K+ K* [0 N8 j' Q% J# T| mysql |
) x- t9 M6 x, m5 z| neutron |
- ?4 Y& H& G- h| nova |' | W( B3 c$ a. f- V8 Z
| nova_api |
6 i! x# U, m+ Q+ U! k* P" L: C| nova_cell0 |8 u; _% f) O: E- h; P: E3 e0 q
| performance_schema |
# W% |/ Z# S) z$ W6 s| placement |
1 i7 w( p }) b+ U8 X+--------------------+( N& t* |. S, T( T
11 rows in set (0.044 sec)) x1 v0 S* |+ k; o" C
: v8 N: x. @0 T3 yMariaDB [(none)]> use cinder
# c! `, [# P7 E: UReading table information for completion of table and column names
$ r+ \" ]' N3 Q* B' tYou can turn off this feature to get a quicker startup with -A* |8 m: h2 O& O( n
9 t9 V9 F" E1 O4 x1 X, n, ~
Database changed
: }0 d- E) ]) D aMariaDB [cinder]> show tables;+ R% Y: m; L8 n$ b+ `
+----------------------------+5 W% X- X F6 P
| Tables_in_cinder |2 @) z, B! }. A+ _- F
+----------------------------+* w& W- T3 d4 W9 D+ E4 \1 h
| alembic_version |
) R( |6 O9 b' M- S! l& g0 q1 Q# R/ z| attachment_specs |
9 d' L* O" E* T7 i' h3 H) \& `& l| backup_metadata |# C5 V$ i; U5 y: b: X) A
| backups |- k. ^ ~3 D* W4 W& v' m
| cgsnapshots |- {, w4 ~- E% \* ?
| clusters |
: t' @' L/ f p3 J7 B| consistencygroups | M5 f* v9 L0 [
| default_volume_types |
: q, E7 B' _ Z) \2 d" W| driver_initiator_data |
* S2 k9 A; }0 R4 K7 T& R| encryption |' k! ?1 I6 _8 N5 X0 C( g
| group_snapshots |
6 Z1 d! g# G+ r3 p0 u, N0 O8 I' v| group_type_projects |
4 K4 |6 D D9 b9 s| group_type_specs |
( w" C. |; I' U% G) G( i5 {0 Y: h| group_types |1 e5 \# b6 h" Q0 P+ J- G8 E
| group_volume_type_mapping |8 |) O/ G+ W% l8 ]$ j" ?
| groups |9 P) W) i, i, n/ W" v5 p' F
| image_volume_cache_entries |
+ L* x8 i) Z' u W1 P Y, Y| messages |9 n! |, m/ }3 O6 ]" }
| quality_of_service_specs |
7 ^# E1 `/ E6 f3 e) y| quota_classes |
* [; B$ ~; l+ n" E| quota_usages |; ~: a0 n- g+ c' U& K2 N# O: m
| quotas |5 N$ _1 Q. h5 u+ C0 C& H* `9 O m
| reservations |5 n2 M' J. U9 w7 s H$ j# n$ X
| services |: K1 N' w( K# H
| snapshot_metadata |
- j! M* g" U3 y" p7 t| snapshots |* b" t% I- q7 U% e$ {5 q
| transfers |
. y: J& ~# l' u" I+ [; D| volume_admin_metadata |& k: [( f' [. w8 m* h; ~4 q
| volume_attachment |
y, c: G( G/ i# q5 n| volume_glance_metadata |8 f8 b) T, G: u2 [: U! ~
| volume_metadata |$ X/ p' M+ V2 P: |& `
| volume_type_extra_specs |4 e) B# o0 c( K e+ J7 J
| volume_type_projects |
, w% U) D0 K- b: N| volume_types |
; E9 F9 E! N) m& L+ V| volumes |
& ~) E8 `$ @4 Q! E9 m, q| workers |9 G- K; {# E- s, M3 |
+----------------------------+
) X- ?1 b9 t @9 P% L36 rows in set (0.001 sec)
$ v- ^- D. t' x* f3 e, @$ T! t% B# {; `5 H. R) N& y0 G
MariaDB [cinder]> select * from services;/ r) }+ D# x1 e! x
+---------------------+---------------------+------------+---------+----+-----------------------+------------------+------------------+--------------+----------+-------------------+-----------------+---------------------+---------------------+------------------------+--------------------+--------+-------------------+--------------+--------------------------------------+
. K. k; C; c. Q0 X) ?# r" w| created_at | updated_at | deleted_at | deleted | id | host | binary | topic | report_count | disabled | availability_zone | disabled_reason | modified_at | rpc_current_version | object_current_version | replication_status | frozen | active_backend_id | cluster_name | uuid |% t3 E$ O2 L7 y. O2 P8 ^3 g7 ?
+---------------------+---------------------+------------+---------+----+-----------------------+------------------+------------------+--------------+----------+-------------------+-----------------+---------------------+---------------------+------------------------+--------------------+--------+-------------------+--------------+--------------------------------------+& _! v. C- u1 r% W
| 2025-02-21 08:46:15 | 2025-02-22 05:24:42 | NULL | 0 | 1 | streamcontroller | cinder-scheduler | cinder-scheduler | 7311 | 0 | nova | NULL | NULL | 3.12 | 1.39 | not-capable | 0 | NULL | NULL | 25a9a766-4a38-4865-a579-20fc13311a1d |3 _8 }9 I% u! _/ ~9 |+ H4 L6 a
| 2025-02-21 08:54:12 | 2025-02-22 04:21:32 | NULL | 0 | 2 | streamcontroller@ceph | cinder-volume | cinder-volume | 0 | 1 | nova | NULL | 2025-02-22 05:02:19 | 3.18 | 1.39 | not-capable | 0 | NULL | NULL | 0842668e-c3d1-46e4-a06a-d49220948c49 |
8 S8 c3 |3 I# O( t* ?| 2025-02-22 05:00:22 | 2025-02-22 05:24:42 | NULL | 0 | 3 | rbd:volumes@volumes | cinder-volume | cinder-volume | 39 | 0 | nova | NULL | NULL | 3.18 | 1.39 | disabled | 0 | NULL | NULL | 7cb2a139-c176-4195-8f8d-fffc81872145 |5 J! z: `+ x6 w3 d* V4 u
| 2025-02-22 05:00:22 | 2025-02-22 05:24:42 | NULL | 0 | 4 | rbd:images@images | cinder-volume | cinder-volume | 39 | 0 | nova | NULL | NULL | 3.18 | 1.39 | disabled | 0 | NULL | NULL | 14a90401-32ec-482e-94fd-d36e46e8f823 |
1 q6 R$ Y0 G5 p$ l W% }, R: U+---------------------+---------------------+------------+---------+----+-----------------------+------------------+------------------+--------------+----------+-------------------+-----------------+---------------------+---------------------+------------------------+--------------------+--------+-------------------+--------------+--------------------------------------+8 |$ D+ t! J+ o' d0 C
4 rows in set (0.001 sec)' N' K$ i# K- n# h9 d
. v' a a2 G2 h( c3 z* r8 h% {MariaDB [cinder]> select * from services\G;
; B) |* S& g* g5 v6 L*************************** 1. row ***************************
$ n1 i. m0 d% w& t6 r9 b% I5 K created_at: 2025-02-21 08:46:15
% o x3 \! M2 x6 ]! q updated_at: 2025-02-22 05:24:52
) j& g6 i$ L/ S8 W. }) C( @ deleted_at: NULL- Z! m- `, b2 g2 V o% h+ ?+ `5 G
deleted: 0; p: f. U2 J6 H) X& L. R5 K) g
id: 12 ~: w) H& G3 ]. c2 c
host: streamcontroller4 h2 L( V: Y7 e: E
binary: cinder-scheduler7 F# W& d. V0 L. D7 z- j- M
topic: cinder-scheduler
$ j6 i+ X0 [7 P- L report_count: 7312
* ?; l9 z, G9 I5 m3 ?1 o) @ disabled: 0
3 p& Z7 N; Q9 v: C. [7 } availability_zone: nova6 ?1 B' f" D9 b# L% @7 D2 c
disabled_reason: NULL8 A* E# I6 m% Y' t5 v0 X
modified_at: NULL
, ]0 z+ {" k7 [' z4 g rpc_current_version: 3.12
; @. \: `/ k9 m/ Robject_current_version: 1.39
- h" B* a- B$ n( q: D/ I1 M replication_status: not-capable
E& o2 x, J& ~# J @ frozen: 0
; }6 b* n2 q* X2 g9 L; W6 ~ active_backend_id: NULL7 o$ a, Z( ]) F0 c* r D7 P
cluster_name: NULL1 K; C5 y" i. B/ [8 G* z8 Z+ |, [
uuid: 25a9a766-4a38-4865-a579-20fc13311a1d
& [4 ~. g" A5 @4 {
2 G% |4 ~ o) D1 x$ U查询相关语句:) W b: T0 I% S& e8 F3 X+ d
MariaDB [cinder]> select id,uuid,host,deleted from services;! e( A/ W' t2 l- i" u U, o
+----+--------------------------------------+-----------------------+---------+" x5 p& p, }6 H/ v& L7 r" k
| id | uuid | host | deleted |
7 z' d0 f) @; u+ P+----+--------------------------------------+-----------------------+---------+
# J/ w5 B. N4 j% o$ i! Q| 1 | 25a9a766-4a38-4865-a579-20fc13311a1d | streamcontroller | 0 |
5 V/ h9 Z) {- ~, O% ^. j# j| 2 | 0842668e-c3d1-46e4-a06a-d49220948c49 | streamcontroller@ceph | 0 |
. [ Y' R7 o. h& f| 3 | 7cb2a139-c176-4195-8f8d-fffc81872145 | rbd:volumes@volumes | 0 |
9 z2 }% O* z8 t6 `3 v| 4 | 14a90401-32ec-482e-94fd-d36e46e8f823 | rbd:images@images | 0 |
. F) u5 F4 J/ U% \' t+----+--------------------------------------+-----------------------+---------+
& y" _& i8 c! K5 \* J/ E) v( q6 h4 rows in set (0.001 sec)
2 o4 d2 j' `4 q. G
* v( F3 l1 T' s# i+ J设置状态deleted为1:
% w I% B: ]$ J
- z; ~$ G/ A9 W: ?+ |6 {3 z8 yMariaDB [cinder]> update cinder.services set deleted='1' where uuid='0842668e-c3d1-46e4-a06a-d49220948c49';
* u3 L8 [. x% F* A2 U) VQuery OK, 1 row affected (0.001 sec)2 x s. q2 d0 _! `, R
Rows matched: 1 Changed: 1 Warnings: 06 ]2 J+ R* u! w6 S
# @5 a. J- n' N2 sMariaDB [cinder]> select id,uuid,host,deleted from services;
2 E5 m! ^* _- j& K+----+--------------------------------------+-----------------------+---------+
8 B* C; X% b# o' Z- Z| id | uuid | host | deleted |& p: q1 j# h' s/ Y8 b: q. p
+----+--------------------------------------+-----------------------+---------+
" K# Q/ K" j& y% L| 1 | 25a9a766-4a38-4865-a579-20fc13311a1d | streamcontroller | 0 |7 g9 ^& g) ~' C0 M; j5 x( R
| 2 | 0842668e-c3d1-46e4-a06a-d49220948c49 | streamcontroller@ceph | 1 |% s9 V2 l1 \/ Q6 j: L: M
| 3 | 7cb2a139-c176-4195-8f8d-fffc81872145 | rbd:volumes@volumes | 0 |. I# N' o# V7 _8 r- C1 [$ A) V
| 4 | 14a90401-32ec-482e-94fd-d36e46e8f823 | rbd:images@images | 0 |
0 a5 `- i1 e+ `. p+----+--------------------------------------+-----------------------+---------+
0 L$ m% |4 c# B0 n& n( y' x4 rows in set (0.001 sec)
2 z! U. h/ f9 B0 J4 T5 s7 O0 d: s/ n: L# I: c
再次检查状态:! |7 x6 R. w o% T6 R" {
[root@streamcontroller ~]# cinder service-list
! c9 g& B' }# i. ]+------------------+---------------------+------+---------+-------+----------------------------+-----------------+
6 C' w# F) b7 G9 {! Q, w! T" t| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |$ v' k1 g' j, W6 v& p) L/ v
+------------------+---------------------+------+---------+-------+----------------------------+-----------------+
) P. i& u; J$ Y& _| cinder-scheduler | streamcontroller | nova | enabled | up | 2025-02-22T05:31:32.000000 | - |: h6 v2 ^& N( c
| cinder-volume | rbd:images@images | nova | enabled | up | 2025-02-22T05:31:32.000000 | - |
+ t$ t' k# q8 n4 W. Z" R" d: o| cinder-volume | rbd:volumes@volumes | nova | enabled | up | 2025-02-22T05:31:32.000000 | - |6 ~( n% D) T) H$ E+ v
+------------------+---------------------+------+---------+-------+----------------------------+-----------------+
5 L$ [- U/ B, x0 N; w0 m
' p, @5 G% C+ W8 Z" R" B6 {( C3 N" ]/ ~) y
" b$ Y% e; i6 u0 T0 f/ ^
|
|