|
|
[root@controller ~]# cinder snapshot-list
# v7 @* a- ~) u5 z5 B3 f% ?$ ?, A' E8 P+--------------------------------------+--------------------------------------+-----------+--------+------+- p7 g( z$ {! }
| ID | Volume ID | Status | Name | Size |
3 L L) S: U7 G0 v% d' ?+--------------------------------------+--------------------------------------+-----------+--------+------+1 S/ y" M$ H" s: [- z8 G
| 24d19ba9-6075-469e-9bf3-cdf5c5ffe402 | 409f3a86-2bd6-413c-86f0-f41f59b8d840 | available | backup | 1 |
( Z! l6 {6 k2 D& h+--------------------------------------+--------------------------------------+-----------+--------+------+4 h, [3 ~( V% t9 e, `, Y
错误:无法执行 删除卷快照: backup
1 N# l% |5 D" s4 b; l/ [% N
6 }. y. x# P Y. z: |# l- m( w# q# M: b' k, q& X" Q B2 |3 Y# d
[root@controller ~]# cinder snapshot-delete 24d19ba9-6075-469e-9bf3-cdf5c5ffe402
% \3 h' O4 I, B# ^' [9 I3 rDelete for snapshot 24d19ba9-6075-469e-9bf3-cdf5c5ffe402 failed: Volume 409f3a86-2bd6-413c-86f0-f41f59b8d840 could not be found. (HTTP 404) (Request-ID: req-5ac28f7e-be0c-4093-98c0-f4137628c7d8)
1 ^" P% R6 |! d$ A' n6 ZERROR: Unable to delete any of the specified snapshots.
! [+ h& u/ Y/ r0 N, H% p4 G4 s5 {2 x( }# `0 i4 P3 b
3 F n- M- p0 R% x! f- _2 R9 {联想到之前不让显示的卷,有可能是他的原因导致,修改数据库吧,变成0状态:
4 W$ T0 x$ K. Y/ k, @3 {" p
8 ~& |& _, T. x+ S N# B3 U! ^
3 G- c' F' }. J c# TMariaDB [cinder]> update volumes set deleted='0' where id='409f3a86-2bd6-413c-86f0-f41f59b8d840';+ N% Q8 U7 U) Q
Query OK, 1 row affected (0.000 sec): [; M4 W% Z) e9 j
Rows matched: 1 Changed: 1 Warnings: 0
H( o9 E1 [" D* U4 h# K0 b5 g8 o( H# X检查是不是有snap快照或者备份导致;
; K$ e& A& ?* T1 \3 }
$ C. [, T2 N! M$ @3 z# H* Y# `, Q1 E3 d4 r; v( r( a
0 t& B, b& R: k6 {. [: @
$ h+ @+ Q/ U5 a* F9 h0 I& p
删除snap即可。: ?7 d2 x0 o3 @0 E6 o0 w; ^5 V" _
: A. Z9 {% v" y& h) C( _
- X2 r r1 G- }) O+ l& L
[root@controller ~]# cinder snapshot-delete 24d19ba9-6075-469e-9bf3-cdf5c5ffe402
4 t0 C8 d! b% T! F5 q1 E删除成功。
% s" C3 o* Y$ j" q/ n: F/ S ]* n! `6 r! }& Z0 Q: P
5 a$ b/ }/ d p# v0 c( D" L- t( o$ _! o; N
3 L; d- w/ ^0 l( D7 _* f
* o2 r; D% X/ `6 m, P! {' \; J5 b. a j. E1 A) v) r4 H, g" p
|
|