|
|
[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed565971/ i e! s9 g, ^. d
2021-07-21 16:48:16.039 7f68e7916b00 -1 librbd::image::PreRemoveRequest: 0x55a0f4aa5930 check_image_snaps: image has snapshots - not removing+ U/ q' U1 g9 n. r: B# g
Removing image: 0% complete...failed.
; v _! [5 `: V* k7 zrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
% Q. q; Y$ M2 H# h, J( W( Z! p[root@compute02 ~]# rbd rm images/64079697-b54d-4499-872b-a79d3daa48b8 v* t& u; f1 n0 @* W; P" y
2021-07-21 16:48:34.530 7f5bedb1eb00 -1 librbd::image::PreRemoveRequest: 0x56445263f940 check_image_snaps: image has snapshots - not removing1 p4 ]3 K6 F7 }) r/ y( T4 L4 ]
Removing image: 0% complete...failed.
( t) ~; U5 Y5 ~rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
, U3 D& U( h3 a1 L" T& R[root@compute02 ~]# rbd info images/64079697-b54d-4499-872b-a79d3daa48b80 S6 P, m* \# t. m$ F, o, D& Q& |
rbd image '64079697-b54d-4499-872b-a79d3daa48b8':; _, ]5 G U! p6 t( {
size 4 GiB in 512 objects
0 G6 x) @( e* m order 23 (8 MiB objects)
, v# U- ?! c, `, S# Y; x3 e' H snapshot_count: 1
2 J! N' @' M1 V% ~1 R id: 2a13976999ad9
" P; `6 u5 E5 r" r9 b; k block_name_prefix: rbd_data.2a13976999ad96 R9 L+ |' L0 p
format: 29 Y7 ?, s: r' v) R3 `/ i( D( D
features: layering# V/ a b6 D* f3 }9 M4 g
op_features:
" E# x2 b/ ^8 C4 m flags: " f$ n5 Q6 x7 r5 r4 |& u% U
create_timestamp: Wed Jul 21 15:10:52 20219 b: _; _- m! m0 ]0 Y
access_timestamp: Wed Jul 21 15:10:52 2021% A$ I8 c. p8 z- Z! L$ C5 d& J
modify_timestamp: Wed Jul 21 15:10:52 2021' I2 X/ _2 z+ r2 d8 ^0 u
[root@compute02 ~]# rbd snap list -p images 64079697-b54d-4499-872b-a79d3daa48b8! L% [ _; D( ~8 D( |7 i4 W6 T
SNAPID NAME SIZE PROTECTED TIMESTAMP ! n; D; k, E# V
5 snap 4 GiB yes Wed Jul 21 15:21:07 2021 , r# R# ~( ~+ o6 H ?
[root@compute02 ~]# rbd snap unprotect images/64079697-b54d-4499-872b-a79d3daa48b8, R% T$ h W! @5 C$ z
rbd: snapshot name was not specified
0 C, y* B* L, @[root@compute02 ~]# rbd snap unprotect images/64079697-b54d-4499-872b-a79d3daa48b8@snap% G: |# L/ O/ Y. V" }
[root@compute02 ~]# rbd snap purge images/64079697-b54d-4499-872b-a79d3daa48b8
) E* U1 l+ C$ |5 s' l) B1 HRemoving all snapshots: 100% complete...done.9 A$ B3 [" f! S% V9 t
[root@compute02 ~]# rbd rm images/64079697-b54d-4499-872b-a79d3daa48b84 s' m7 ^( v1 v! r) C# q3 P
Removing image: 100% complete...done.
3 f; {% I2 g3 J1 q* l[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed565971" c4 @- P' b. c2 o
2021-07-21 16:54:43.340 7fc32696db00 -1 librbd::image::PreRemoveRequest: 0x561c7f70cb40 check_image_snaps: image has snapshots - not removing
! |, H. w% Z1 R% G; K1 HRemoving image: 0% complete...failed.
+ [' D p3 M& nrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.3 W C4 {- h; ]& G. [0 e" X% v, a
[root@compute02 ~]# rbd info images/fb31561c-dcf4-4251-8c74-0ff0ed565971
: }) m0 X8 o& ? n& K$ C% ~* yrbd image 'fb31561c-dcf4-4251-8c74-0ff0ed565971':! m1 l% N! [5 q" e" E
size 13 MiB in 2 objects
' C4 l3 \" J& v order 23 (8 MiB objects)
- ~% ]4 ]$ d: ?$ J6 {* P snapshot_count: 1
% s8 Z" g2 X# f id: 296d079a3cbe0( W/ K- M( ^& e
block_name_prefix: rbd_data.296d079a3cbe0
$ r# s3 N4 J# w0 u% x format: 2
{4 V7 _. @; j* z' }# B& u, ^ features: layering
4 x0 e5 L& P2 @' e! j7 m1 C op_features: ! Q- c2 v( s: w; [' m, |0 s
flags:
4 A2 n7 v$ g8 Z6 o0 t3 j" g3 w create_timestamp: Wed Jul 21 13:58:16 2021
! |1 F& j: k. ]+ B" X' G3 T% N p& A access_timestamp: Wed Jul 21 13:58:16 2021
# K" ~9 @' ^1 @6 \2 T modify_timestamp: Wed Jul 21 13:58:16 2021/ A$ ^& i# H& A4 k" s8 Q
[root@compute02 ~]# rbd snap list images/fb31561c-dcf4-4251-8c74-0ff0ed565971' w3 |) ]" K0 Y% Y4 ]" d1 f9 P4 H
SNAPID NAME SIZE PROTECTED TIMESTAMP ( |3 y) T) l* E& E- o8 Z" @
4 snap 13 MiB yes Wed Jul 21 13:58:19 2021 $ S' y |, s- x4 B+ @8 T3 Y
[root@compute02 ~]# rbd snap unprotect images/fb31561c-dcf4-4251-8c74-0ff0ed565971
" J7 _3 a. C9 y( w- J0 rrbd: snapshot name was not specified
/ }$ d3 R% |$ |9 j% {[root@compute02 ~]# rbd snap unprotect images/fb31561c-dcf4-4251-8c74-0ff0ed565971@snap
% P% K# f7 _4 s* t) N( x[root@compute02 ~]# rbd snap purge images/fb31561c-dcf4-4251-8c74-0ff0ed565971
6 N$ i& A J' b6 q% oRemoving all snapshots: 100% complete...done.) ?% M6 X3 {# R: x# ~
[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed5659710 j- W4 A2 D( H! N! \' Q9 _
Removing image: 100% complete...done.
5 c K4 e) d8 @& f& I: S |
|