- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@streamcontroller ~]# cinder service-list
/ `! i+ r5 Q8 |& B0 C, w+------------------+-----------------------+------+----------+-------+----------------------------+-----------------+4 q$ k6 ^' _ N* Z
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |: U& }$ |6 ]' z4 p
+------------------+-----------------------+------+----------+-------+----------------------------+-----------------+6 }. K; R* ^1 Y4 B+ P K+ n* x7 B
| cinder-scheduler | streamcontroller | nova | enabled | up | 2025-02-22T05:23:32.000000 | - |/ w+ y5 I" H9 \2 o
| cinder-volume | rbd:images@images | nova | enabled | up | 2025-02-22T05:23:32.000000 | - |
# j: D$ |2 q. [: p4 {| cinder-volume | rbd:volumes@volumes | nova | enabled | up | 2025-02-22T05:23:32.000000 | - |9 Q5 p3 Z, A3 ^' v! }9 R1 v' i
| cinder-volume | streamcontroller@ceph | nova | disabled | down | 2025-02-22T05:02:19.000000 | - |
/ L2 y0 ^5 ]% ~. E& D+------------------+-----------------------+------+----------+-------+----------------------------+-----------------+% F- t0 U, F$ I3 Y/ l
[root@streamcontroller ~]# mysql -uroot -p4 j% g* X: \- v& M. l
Enter password: / O( J% C/ ?, B. @9 e3 e- ?3 W3 Y
Welcome to the MariaDB monitor. Commands end with ; or \g., { L+ w. f& D" ]( |' j+ ^
Your MariaDB connection id is 316
3 n) x! l6 \" A( P' l3 \3 `Server version: 10.5.27-MariaDB MariaDB Server
2 y% g# C& ~2 g" t! g( z6 q8 I- \7 i, M7 Y5 j
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.# ?2 P' A0 ]# _8 T( h; T! ^
: j9 a2 l; b) [* K$ ]$ j D& j
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
+ q% o* c( _- }
$ h [2 R1 F- M0 Z9 DMariaDB [(none)]> user cinder
( d+ b0 j+ y4 W3 {$ e. c, T -> ;
S+ D+ B2 P0 j' D: |# IERROR 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" p& J& O& ~* f; }# z
MariaDB [(none)]> show databases;8 w( S D' B* b4 i l0 L+ h
+--------------------+7 I0 {/ v% D' ]7 |1 v
| Database |
- o' }$ H; W8 G' A" J+ }+--------------------+
, s! v( s. |$ P: Z9 k| cinder |
$ H$ G$ |* y0 t ^, w8 D| glance |
e6 a5 T. C6 `3 U9 |+ ]! d| information_schema |
- C. _, H5 q0 h( Q; O% ?| keystone |! p6 ^! _; _" X; Z
| mysql |9 G5 ]* H% S: R3 U0 W
| neutron |
; t, o% F1 I0 k& Y+ B, \| nova |5 x4 }; \0 A/ F1 F; v$ [4 y* A6 B0 I
| nova_api |7 y, e7 @ y6 ?$ O
| nova_cell0 |
8 W- g0 I( Y D. R8 G3 R| performance_schema |
: z" P& R# S5 l1 q6 l# z, N0 Y| placement |( j1 i" o8 k, F& }
+--------------------+" j* Y. ]. Q! W+ I4 ]& }/ O
11 rows in set (0.044 sec)
g- U7 [/ A/ |; q' z$ t8 R5 Z5 L: S1 a
( J4 B/ x$ [3 n) NMariaDB [(none)]> use cinder
) s+ d1 A( W- o1 `7 O2 FReading table information for completion of table and column names
/ {1 Q: C6 T9 r$ z+ zYou can turn off this feature to get a quicker startup with -A
/ T1 V, `% S" Z6 {8 i9 T8 Q8 d a) u
+ [) S% N, W r% h. [+ V& @! iDatabase changed5 \' Y: ?* f2 t8 H' B b
MariaDB [cinder]> show tables;0 `3 n- R/ T# v6 x. O, R9 ^7 r
+----------------------------+
" z. O+ H; Y1 ^% W1 v2 }8 T( K1 R0 M| Tables_in_cinder |
- u& d. b& a! o" a5 b+----------------------------+: |, D* g9 \ k" x/ m6 E; \( V! s
| alembic_version |7 p9 J* A. p/ n9 q, a- ~
| attachment_specs |' b$ n7 j$ }* B6 B1 _
| backup_metadata |) i- @2 c* N- |4 W! F) J
| backups |0 l! X. ~% @7 G$ ]) h1 R5 r& s
| cgsnapshots |8 g! N5 u0 D" b! K8 n
| clusters |
3 Y3 F& g' S% f ~| consistencygroups |# \% k. M1 w/ j; ?
| default_volume_types |
. X, O$ o. c8 L: x$ @0 A| driver_initiator_data |
- j# R6 I, B i| encryption |
- s( p \+ V3 ^' B! s| group_snapshots |$ n' s! }$ Y; N. q+ C9 J
| group_type_projects |
# U! O: Z$ |9 J4 l| group_type_specs |
. p! t- V' G% S; || group_types |6 {: p1 S( ^- [
| group_volume_type_mapping |
2 Q7 d8 i. W5 T* r2 q: ?| groups |7 ` |) q. X% h+ f1 _
| image_volume_cache_entries |
7 D8 _# ?+ P, {$ h( z| messages |/ \7 S2 j* e& F- J
| quality_of_service_specs |) |4 L% d! I7 Q8 B `# O! K
| quota_classes |
, S( m; ]- W0 g| quota_usages |
9 e% R9 b7 J3 c* M! K4 ]8 O| quotas |4 K1 ~7 V2 \0 _; _0 y
| reservations |
6 |$ P* O* m3 R, s; i| services |
1 Y$ @% ]; j. ?| snapshot_metadata |
" B+ L0 ?1 x0 T/ p' L| snapshots |. [! }9 I5 E. ?% Y) ?. ^* b, W
| transfers |
3 l, O+ r! J3 @# B4 [# g| volume_admin_metadata |/ Q: R, ]& d# q/ U" }8 ^" l$ c
| volume_attachment |
! q6 f' m; ?" _3 a| volume_glance_metadata |
" C3 e+ ?# e# Q| volume_metadata |
; \/ V" m. E4 y& F) z| volume_type_extra_specs |: f* g. \# `8 \' R7 U
| volume_type_projects |
8 E( q8 F2 I r. @| volume_types |* d6 H9 Z; z7 }% O3 N/ _
| volumes |: d; B/ G+ L' Q, `
| workers |3 {( t' i2 N0 ~& [
+----------------------------+
3 }) {; k J t36 rows in set (0.001 sec)
' L& Y6 ^/ D- v4 R* v$ s6 M. ~, L3 Y8 @: J" T
MariaDB [cinder]> select * from services;* e" ^+ B! P( P' I* }; [" r
+---------------------+---------------------+------------+---------+----+-----------------------+------------------+------------------+--------------+----------+-------------------+-----------------+---------------------+---------------------+------------------------+--------------------+--------+-------------------+--------------+--------------------------------------+8 l; a, P6 J( `3 ^/ T& _/ G
| 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 |
2 b& }: J0 H) e2 C+ h$ Q2 _# U+---------------------+---------------------+------------+---------+----+-----------------------+------------------+------------------+--------------+----------+-------------------+-----------------+---------------------+---------------------+------------------------+--------------------+--------+-------------------+--------------+--------------------------------------+
5 E) M3 y" z, _, x| 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 |
% e8 ?. E$ R' Q M* f| 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 |2 R& s) k; r, p" `) @6 d7 s) w! Z
| 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 |) {0 {' W( O0 R' S$ X1 b1 ~, J: S
| 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 |
0 N& Z; f2 Y; f2 ?1 D2 q" w( A+---------------------+---------------------+------------+---------+----+-----------------------+------------------+------------------+--------------+----------+-------------------+-----------------+---------------------+---------------------+------------------------+--------------------+--------+-------------------+--------------+--------------------------------------+
4 l4 h3 g3 V \, D4 rows in set (0.001 sec)0 S; L$ T7 m8 c' F, X
/ G8 c2 b0 \% g- h" ]$ zMariaDB [cinder]> select * from services\G;, Z% D2 @1 ?, Y- Y$ F K; B
*************************** 1. row ***************************1 Z# R3 d2 P: ?: j# H" u6 d
created_at: 2025-02-21 08:46:15
$ `$ \( M1 t4 D; B. Y% F updated_at: 2025-02-22 05:24:52
4 Y, v% @) r! ?) X0 S3 F deleted_at: NULL
- ^: p) Q; B6 e% o7 O deleted: 02 J5 K5 N& j- `- W/ Y. L! Y* J: y
id: 1
) ]1 y1 t% q' E3 q O9 ]+ ]0 J host: streamcontroller
% r: p; w- i3 ?) K- \ binary: cinder-scheduler/ F' |5 U! [/ p1 K1 ^
topic: cinder-scheduler6 h/ Q5 D5 B5 U1 t# h% W) i
report_count: 73128 |/ x# v: s" P* B C1 j1 |
disabled: 0
7 e. c1 j/ S y! P availability_zone: nova
% F. F+ ~% g W! o0 K% m8 ~ disabled_reason: NULL
8 l7 ]6 Q7 ?% E+ A4 G modified_at: NULL
, d. q; K! E5 O ^. d; T1 g rpc_current_version: 3.12
/ S& C& u# g; {' a& @+ Dobject_current_version: 1.39( H* E; z# f0 A2 o
replication_status: not-capable( C: V( S! \& E1 t9 J
frozen: 0
* m5 O4 } _! \+ i' [ active_backend_id: NULL
$ |9 {5 v) h: T" B/ u: A cluster_name: NULL
) L; c# S0 Q e1 F uuid: 25a9a766-4a38-4865-a579-20fc13311a1d
8 z- w$ _4 q# B( {1 [( H) D8 C; E
9 y- \9 Y4 O! M1 |查询相关语句:
) M2 ]; ?& l. B$ K/ KMariaDB [cinder]> select id,uuid,host,deleted from services;
* ~+ I7 w) s o5 M0 O) X+----+--------------------------------------+-----------------------+---------+& c# _6 A, R# r& a. R8 h1 Z
| id | uuid | host | deleted |& h3 j# u2 S& @. O6 l2 X4 A
+----+--------------------------------------+-----------------------+---------+5 P% o" G K v4 f
| 1 | 25a9a766-4a38-4865-a579-20fc13311a1d | streamcontroller | 0 |; V, w" E+ S4 T Q2 M* X
| 2 | 0842668e-c3d1-46e4-a06a-d49220948c49 | streamcontroller@ceph | 0 |
: V$ o6 I, r/ s+ Y- ~& ^/ k9 K( v| 3 | 7cb2a139-c176-4195-8f8d-fffc81872145 | rbd:volumes@volumes | 0 |
# T( t e5 A, l+ S| 4 | 14a90401-32ec-482e-94fd-d36e46e8f823 | rbd:images@images | 0 |
( f# h; R: B% y' s$ b/ M" g+----+--------------------------------------+-----------------------+---------+
$ [+ \/ {8 V' q2 j6 v4 rows in set (0.001 sec)
0 ?& @0 Q9 X* S1 B+ y4 J! \) a& N
设置状态deleted为1:
$ L8 Y4 D/ Z) F' m N" g, [# O
0 E: W$ e$ P% I ^! g& y" [' N; |( p7 jMariaDB [cinder]> update cinder.services set deleted='1' where uuid='0842668e-c3d1-46e4-a06a-d49220948c49';
' d5 k K" L3 Y' [, G/ ` BQuery OK, 1 row affected (0.001 sec)
! J# I+ u( D0 D7 sRows matched: 1 Changed: 1 Warnings: 0
: N$ Z! u7 k: N) P' H
+ @. n3 F' W( K& e( k" _ aMariaDB [cinder]> select id,uuid,host,deleted from services;$ i8 n7 v) s+ d2 M3 O" {% ]
+----+--------------------------------------+-----------------------+---------+3 {) U- D5 ~8 s8 b5 O* P
| id | uuid | host | deleted |
0 j4 Y K7 T7 b$ E2 O( ?+----+--------------------------------------+-----------------------+---------+2 x5 x% d) P# q& s
| 1 | 25a9a766-4a38-4865-a579-20fc13311a1d | streamcontroller | 0 |6 [& y- B% B- y: ~
| 2 | 0842668e-c3d1-46e4-a06a-d49220948c49 | streamcontroller@ceph | 1 |# ]( c: _- d8 }6 Q9 G( @7 O( i! f* b
| 3 | 7cb2a139-c176-4195-8f8d-fffc81872145 | rbd:volumes@volumes | 0 |8 q& @) n" F) |5 k" R5 V% m. |
| 4 | 14a90401-32ec-482e-94fd-d36e46e8f823 | rbd:images@images | 0 |0 y8 \5 r- d* e
+----+--------------------------------------+-----------------------+---------+
# w* E( `+ x6 G5 M' r5 I9 c4 rows in set (0.001 sec)
& H7 D7 `7 A6 ?, R8 o: u* t2 h* r- i7 k5 \" U
再次检查状态:# e& v" e5 |% }& U$ \# F' {( @
[root@streamcontroller ~]# cinder service-list
( X4 k- s' J; {3 s/ O' X6 \& |+------------------+---------------------+------+---------+-------+----------------------------+-----------------+
. O' Q+ e& O: M. E. @| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |# I7 c N; M( `% P! x; K
+------------------+---------------------+------+---------+-------+----------------------------+-----------------+7 m- D8 ]- ~; x; g5 r& U% A9 ^. Z# j9 P
| cinder-scheduler | streamcontroller | nova | enabled | up | 2025-02-22T05:31:32.000000 | - |3 q6 `4 j4 C9 z. l3 ^8 i
| cinder-volume | rbd:images@images | nova | enabled | up | 2025-02-22T05:31:32.000000 | - |
! b N% G& C0 s7 f" S$ G9 \# I, `| cinder-volume | rbd:volumes@volumes | nova | enabled | up | 2025-02-22T05:31:32.000000 | - |, \* z5 ^; l' N D# J* E8 \" |. T0 Y
+------------------+---------------------+------+---------+-------+----------------------------+-----------------+: v& f/ e2 u+ y* W. \& A% P
6 L4 [( B$ W/ I+ j* [
$ J8 n- e2 @1 w- P% R h
% V* h) f8 j2 Z L( A7 v) R |
|