|
|
[root@controller ~]# cinder snapshot-list # }+ L; m" ~9 p/ ?% z, V) s1 ^
+--------------------------------------+--------------------------------------+-----------+--------+------+
/ N) _' j) t4 b+ h6 o1 ^; t- h| ID | Volume ID | Status | Name | Size |6 J% W# i d) G
+--------------------------------------+--------------------------------------+-----------+--------+------+
9 T7 Y" n4 j8 D7 q! q2 I| 24d19ba9-6075-469e-9bf3-cdf5c5ffe402 | 409f3a86-2bd6-413c-86f0-f41f59b8d840 | available | backup | 1 |/ Q8 ~5 e& |0 H
+--------------------------------------+--------------------------------------+-----------+--------+------+
/ {2 m" U9 w3 t1 j错误:无法执行 删除卷快照: backup
4 h' t n/ D. S5 K, m
0 q/ K$ y, w2 v" P0 q9 t8 U. x8 [7 Z
[root@controller ~]# cinder snapshot-delete 24d19ba9-6075-469e-9bf3-cdf5c5ffe4025 a. X }: i2 ?6 f7 X: E6 l* d; p
Delete 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)0 Z' {& A' b! U" W) F, E0 g
ERROR: Unable to delete any of the specified snapshots.* N B: h! q& j0 d
9 v2 p+ Y: ]% b8 Q6 I0 Z( K) E' ^0 j9 ?, P! ?$ Z9 L6 b% _
联想到之前不让显示的卷,有可能是他的原因导致,修改数据库吧,变成0状态:. b: a! @* ~4 t4 t
% l% o B8 g! c+ F2 Y6 {$ ?4 M0 n; g% F0 f* H8 F* k! i
MariaDB [cinder]> update volumes set deleted='0' where id='409f3a86-2bd6-413c-86f0-f41f59b8d840';; I* {& p7 A4 n4 Q+ r
Query OK, 1 row affected (0.000 sec)# A" v) Q: z/ O; t7 E
Rows matched: 1 Changed: 1 Warnings: 0/ ]1 F; |( _3 _& D* z5 W8 f% X1 w
检查是不是有snap快照或者备份导致;
' _1 Y1 T: I0 C) q9 W2 m% C0 _! e, B5 _2 P! K" _
. K+ [0 o, F' A" b3 x3 |4 R, w9 h P% v: G& h2 ~ U0 |
7 Z8 ~9 P1 {5 r Z. {2 c删除snap即可。# e9 g( |' k: W( W* [
; l3 h, [% n3 v' l
; l1 f5 e# G- J# B, @* }; B) U[root@controller ~]# cinder snapshot-delete 24d19ba9-6075-469e-9bf3-cdf5c5ffe402
3 ], \- d- H1 s1 _7 M8 l3 u6 {' |删除成功。8 t+ H& F8 W% [3 v
* i t$ R9 X5 j! v
+ _) z5 O# M3 a: B3 \; h7 |3 |4 v6 h- G- B: I/ \8 g
" |7 R: ~3 q# T0 }) I
/ c* G6 O9 d; Y: U( D8 V" `
% S" n9 A7 D# h+ c" Q1 y: r |
|