|
|
[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed565971, H( H# }* x4 E5 t* F
2021-07-21 16:48:16.039 7f68e7916b00 -1 librbd::image::PreRemoveRequest: 0x55a0f4aa5930 check_image_snaps: image has snapshots - not removing$ t4 y9 @" b. f( n$ Q
Removing image: 0% complete...failed.( g" y- f/ n$ \) ~
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.& h l! z! {! X" C, N
[root@compute02 ~]# rbd rm images/64079697-b54d-4499-872b-a79d3daa48b8 V" V# d( k- r* k1 c* ?. t
2021-07-21 16:48:34.530 7f5bedb1eb00 -1 librbd::image::PreRemoveRequest: 0x56445263f940 check_image_snaps: image has snapshots - not removing" d7 z4 f/ Q3 k; v5 q- w
Removing image: 0% complete...failed.# j8 y; O) Z9 k
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed. d% i! t* v; \* s, N9 i
[root@compute02 ~]# rbd info images/64079697-b54d-4499-872b-a79d3daa48b8
p# D1 c: Z! z8 U. ?3 l+ n$ Hrbd image '64079697-b54d-4499-872b-a79d3daa48b8':
7 v, O0 v R& p/ i size 4 GiB in 512 objects) [0 |' B/ h" ]* O0 u( n
order 23 (8 MiB objects)
5 h6 G' s' R( x5 ~1 k snapshot_count: 18 I4 X& f4 E; Q+ D! r* \( C
id: 2a13976999ad9$ M7 e" s6 Q* C( e( \. c5 E) `' E
block_name_prefix: rbd_data.2a13976999ad96 X2 G% D q1 Y2 H! j1 k7 J
format: 2
6 e- v3 z; P6 Z' G, N! E features: layering6 J7 N: ?2 Y$ F4 k
op_features: 3 u2 `" {' x5 s& D5 h4 }7 i9 B
flags: 4 S1 T5 B7 B5 m5 y
create_timestamp: Wed Jul 21 15:10:52 2021! p5 B* S! R+ H% `! o
access_timestamp: Wed Jul 21 15:10:52 2021
3 U/ |+ d6 f+ r X! t) p modify_timestamp: Wed Jul 21 15:10:52 2021( ]: y- q/ ~7 A" m# N
[root@compute02 ~]# rbd snap list -p images 64079697-b54d-4499-872b-a79d3daa48b8
! J5 o* ]. n5 V9 e- CSNAPID NAME SIZE PROTECTED TIMESTAMP $ u% \) [6 [8 V7 a
5 snap 4 GiB yes Wed Jul 21 15:21:07 2021 9 Y3 A; f' Z- a( r
[root@compute02 ~]# rbd snap unprotect images/64079697-b54d-4499-872b-a79d3daa48b8! i' m% g0 A3 g4 n& d" E: J9 D
rbd: snapshot name was not specified8 o$ _: v! H; K9 n: z
[root@compute02 ~]# rbd snap unprotect images/64079697-b54d-4499-872b-a79d3daa48b8@snap$ {% ]4 y6 r! i& i
[root@compute02 ~]# rbd snap purge images/64079697-b54d-4499-872b-a79d3daa48b8 ' K3 Q& s& }. m3 z; L ^
Removing all snapshots: 100% complete...done.
* B; K- A( V: h$ e2 T3 V[root@compute02 ~]# rbd rm images/64079697-b54d-4499-872b-a79d3daa48b8
5 [7 ~- a5 ]0 ?/ N6 `' B$ i, tRemoving image: 100% complete...done.& E3 Z# k( R8 G1 M: x% i
[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed565971
% E2 O! R+ Q9 c2021-07-21 16:54:43.340 7fc32696db00 -1 librbd::image::PreRemoveRequest: 0x561c7f70cb40 check_image_snaps: image has snapshots - not removing! ]5 }4 }- @1 D8 m
Removing image: 0% complete...failed.
1 C- F% D$ L7 X* I- _rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.2 j# A8 d O9 g* [6 ]
[root@compute02 ~]# rbd info images/fb31561c-dcf4-4251-8c74-0ff0ed565971
3 I$ ^; l3 e5 H4 r; orbd image 'fb31561c-dcf4-4251-8c74-0ff0ed565971':
4 E4 u7 V& w5 T* m; l" C- k4 I size 13 MiB in 2 objects
1 s; C" O: ^2 Z2 O" ^ order 23 (8 MiB objects); K8 m G# w4 G% S/ `" `
snapshot_count: 1, g6 B: ]. U4 V) d. J5 I
id: 296d079a3cbe0
: N8 J) z& \5 x$ {0 X3 p& u block_name_prefix: rbd_data.296d079a3cbe0
' y7 D# l: h& s$ Z% t+ v format: 2+ _3 L* r; L- m ~" ]
features: layering
; Z# P. m/ ] E' Y& Q- D! m; e op_features:
! L9 B7 h# o" w/ y9 T+ ` flags:
: S; [* I6 C2 Y( J2 E% N1 p create_timestamp: Wed Jul 21 13:58:16 2021" k" [1 B' d: O' B$ i, g8 Q8 a ? n
access_timestamp: Wed Jul 21 13:58:16 2021
) {% h1 w( j6 p: D5 @ modify_timestamp: Wed Jul 21 13:58:16 2021; H( h, {/ U9 m; [& k% M0 |
[root@compute02 ~]# rbd snap list images/fb31561c-dcf4-4251-8c74-0ff0ed565971
2 x& V+ y( d- \' j% JSNAPID NAME SIZE PROTECTED TIMESTAMP ; ^& O8 {, b( v+ j) x
4 snap 13 MiB yes Wed Jul 21 13:58:19 2021 - Y! G( K8 c0 h1 o% t1 [- M2 Q
[root@compute02 ~]# rbd snap unprotect images/fb31561c-dcf4-4251-8c74-0ff0ed565971% Z9 X: c' W1 G" g2 s
rbd: snapshot name was not specified
! K4 p. `, C T& M[root@compute02 ~]# rbd snap unprotect images/fb31561c-dcf4-4251-8c74-0ff0ed565971@snap% c4 f' ^ x" K& |7 y; n
[root@compute02 ~]# rbd snap purge images/fb31561c-dcf4-4251-8c74-0ff0ed565971( S4 _5 Y$ @! v% Z+ X/ Q2 ?
Removing all snapshots: 100% complete...done.. n. }# Y& S" X
[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed5659711 J7 I! [$ j# g; Y$ Q5 ]
Removing image: 100% complete...done.5 H, I- D. B+ h( d; \
|
|