- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2025-2-10 10:46:49
|
显示全部楼层
9 T2 b5 g! b/ x8 x0 P7 q接下来修改nova的数据库+ B, O; Y" R* k" u
MariaDB [nova]> select * from instances where uuid='7c91cb27-ecde-4930-a56a-e8210a3e4176' \G;! T8 ], S, c5 t) L+ a
*************************** 1. row ***************************3 F4 [% H h+ d
created_at: 2025-02-10 02:43:49 f" P% i( O' d9 \ e
updated_at: 2025-02-10 02:44:00
, c f7 b/ I9 U: [2 ?8 w) H deleted_at: NULL
! W8 }; O+ e: o. h; z id: 1651" Y8 n7 I2 U; k! H2 ]! @! O6 q
internal_id: NULL
. o, X- `$ w6 T! \9 k, ~3 e user_id: 1e1454d784f945a69d29bef4c246a28d
( N2 h( c/ U/ H project_id: b7912d3927a241109b7d682b888c197e8 D0 e3 c7 @; p) z
image_ref: 2 n& l- U% g0 Q4 i$ E0 J, H
kernel_id: 5 |% D% x* z4 {0 O! F: W. o- w
ramdisk_id:
! U. N8 V0 c! q1 {$ Z9 M launch_index: 0" M1 b1 p( O8 e K. t8 X
key_name: NULL: _ |$ ^( c I, _" f0 \/ K
key_data: NULL
6 t9 y: h l- ` v- k power_state: 1
. A E. W7 Y& b: |8 c' N vm_state: active
; j/ C5 L$ Z$ A7 I B2 }# x memory_mb: 4096
$ g# C( G5 a/ \8 Z* }- J7 V1 g vcpus: 20 s" _9 q/ X o: E+ ^- }& H4 M T
hostname: testcinder
9 N$ q& l" i- ^2 D host: yz-ksc-kcn01
% e$ r9 H% p" Q- {7 N! p' `6 c+ Z user_data:
; Y* J. p4 s: f$ c) F7 ` reservation_id: r-hgn9w9v0
- ~6 M2 |) g h# a8 ?+ Y" {8 x scheduled_at: NULL
, t. M6 o: X1 J* n! k( d% T launched_at: 2025-02-10 02:44:00
5 U2 e% y. ~" V6 y5 _5 M- G terminated_at: NULL
' G' c a# R( d" ^' o: ~# Q* k# N display_name: testcinder
4 B5 B w% D9 y5 E3 g display_description: testcinder
% o R5 O5 K$ [( N availability_zone: 智网AZ! U- ^5 r- _* r9 g- Y5 k, f
locked: 00 @" t% u- C+ p/ X# O2 H. K8 d2 w
os_type: linux
2 W, [0 [ U+ Q launched_on: yz-ksc-kcn015 @- O' i( S/ F8 P1 m( P6 `, m) O) L
instance_type_id: 5
0 m% x$ G+ g8 e9 Y: ?& f9 Z vm_mode: NULL
6 k* s; y5 E) x$ D9 u/ e) e uuid: 7c91cb27-ecde-4930-a56a-e8210a3e4176 B+ a, J& x! U' k4 H3 I+ B
architecture: NULL
8 S/ [' o6 T, b- A/ F1 ~! f n; s root_device_name: /dev/vda
. Z+ f9 ?% {% a/ j( k8 W6 b, T access_ip_v4: NULL! g. b) ~- J5 h9 r4 e+ f# ^
access_ip_v6: NULL3 t7 }9 m1 N- l0 m
config_drive:
; @' x( T1 H Q. N: D# N# g {& e" H task_state: NULL) _) N# j8 U2 E* ~) j
default_ephemeral_device: NULL8 a5 |( H3 \# G7 G$ r& l
default_swap_device: NULL+ E. i: M* G2 @8 l. Z9 j$ Z
progress: 0
* N+ d) W: b1 p% p auto_disk_config: 0
, I, e+ c+ ?! x4 P n3 f shutdown_terminate: 08 D1 y9 |& F' L% L ?5 p! b% x# R0 g
disable_terminate: 0
1 \4 W7 Z0 s$ n root_gb: 50
& P1 e: _" L6 A- u) M# I/ @4 V n ephemeral_gb: 0
. L( d- n& J2 n: l: g cell_name: NULL
7 v9 i3 s/ c+ h( J+ `( D node: yz-ksc-kcn01
9 O1 S, Y1 R. j. f$ F deleted: 03 A8 R; w* \6 Y9 _3 e
locked_by: NULL
" e/ a9 b' h, Y# r cleaned: 0
- @0 G6 o# U4 L. O: i6 V ephemeral_key_uuid: NULL% L. J. Q6 a; R$ {3 f
is_bare_metal: 03 C: B# y1 A* S! t! n! g
is_power_vm: 0+ E4 L: I5 g- ?5 z7 }
guest_type: kvm- o( O8 ]! ]+ G, L2 L9 f+ x
service_type: vm-cloud
' [8 F2 ~# i4 K! j& z2 w% Z3 I4 ~- K) n1 row in set (0.00 sec)# g. I; g" Y( r% n& c3 J$ ]$ Q4 O
$ F! U: Z* _7 }0 R; WERROR: No query specified
% {' N" C7 r# K% y [2 H2 j* Z) x3 T0 h/ i4 x1 j
MariaDB [nova]> select uuid,root_gb from instances where uuid='7c91cb27-ecde-4930-a56a-e8210a3e4176' \G;5 Y6 G! E" _/ G7 b! \. }0 F% \- z- l
*************************** 1. row ***************************
/ m$ O/ q! i# J% d uuid: 7c91cb27-ecde-4930-a56a-e8210a3e4176
x- }/ V4 j/ V$ K" T7 groot_gb: 502 u. a5 I' f; e3 }
1 row in set (0.00 sec)3 G* Z' e2 Z; U9 d
: O2 _/ n0 I( c( f3 jERROR: No query specified6 C- V- f( L9 D! n" ^8 A2 T8 P. \
* y0 k1 u( b5 {4 A% s' W# UMariaDB [nova]> select uuid,root_gb from instances where uuid='7c91cb27-ecde-4930-a56a-e8210a3e4176';
: d% O" Z4 R7 \+ t8 s: I3 _+--------------------------------------+---------+
9 Q5 e: n' p7 _1 s3 L" O2 S! t| uuid | root_gb |
/ R$ g+ z( m( ]' G+ r# \+--------------------------------------+---------+
& {3 R" W* \2 T# c' \" ?- o" e| 7c91cb27-ecde-4930-a56a-e8210a3e4176 | 50 |
: f. I7 ?4 b' a7 v4 [+--------------------------------------+---------+
7 d% R" D' M% x; _( i1 row in set (0.00 sec)6 [1 h$ p8 D$ l+ d2 r7 j% d( ?
5 G: G' r+ O- p
MariaDB [nova]> update nova.instances set root_gb='70' where uuid='7c91cb27-ecde-4930-a56a-e8210a3e4176';0 _' e+ f& {$ w
ERROR 2013 (HY000): Lost connection to MySQL server during query
l+ x5 o6 U( V$ i+ KMariaDB [nova]> update nova.instances set root_gb='70' where uuid='7c91cb27-ecde-4930-a56a-e8210a3e4176';/ z q% i" p- t! Q) [
ERROR 2006 (HY000): MySQL server has gone away0 |( k( a) Q+ M" r) G; Q9 F
No connection. Trying to reconnect...
8 Z' ~+ I C* L" q9 |/ UConnection id: 930837359 z- }8 D/ n" n( c* d1 ^
Current database: nova
) j6 {$ J9 Y. e3 `. }3 E
2 _# l" ?3 k! B% o+ FQuery OK, 1 row affected (0.19 sec)
" i& a) {3 d; U% t5 G( WRows matched: 1 Changed: 1 Warnings: 0 |
|