|
|
[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed5659717 t1 J6 E/ B: C, I
2021-07-21 16:48:16.039 7f68e7916b00 -1 librbd::image::PreRemoveRequest: 0x55a0f4aa5930 check_image_snaps: image has snapshots - not removing* E, I$ ^! H+ w* f: F6 L' m, |- `* c
Removing image: 0% complete...failed.
4 A6 m% O x7 k5 s$ [5 M: m+ P/ }. ]rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
. J7 |: R! v+ j: O0 ^[root@compute02 ~]# rbd rm images/64079697-b54d-4499-872b-a79d3daa48b83 s- J* o5 R( z
2021-07-21 16:48:34.530 7f5bedb1eb00 -1 librbd::image::PreRemoveRequest: 0x56445263f940 check_image_snaps: image has snapshots - not removing
h; ~1 q* t2 t2 ~' F. ~- M% URemoving image: 0% complete...failed.5 U' i" L9 D6 e
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
; N3 b* P- _6 {% {% l1 X7 R[root@compute02 ~]# rbd info images/64079697-b54d-4499-872b-a79d3daa48b80 g0 n( t0 v. G4 [3 d0 ~
rbd image '64079697-b54d-4499-872b-a79d3daa48b8':& |6 B$ L5 W4 L. {
size 4 GiB in 512 objects# Y' z( F/ c) ~
order 23 (8 MiB objects)
% W/ q: Y, ^9 v5 \7 }% O snapshot_count: 1
{0 V. T" `( Y9 t1 o id: 2a13976999ad9 e# P. {5 K) C8 r) Q8 Y3 `; ?3 T
block_name_prefix: rbd_data.2a13976999ad9
8 M5 o: _3 O; \% n format: 2, e6 a) U7 L+ h$ [' ~) e
features: layering# C* l: \( o9 |
op_features:
5 i9 p& a N* K' s& c! s flags:
" Z8 m' @" W8 g7 ?4 G. j9 j create_timestamp: Wed Jul 21 15:10:52 2021/ ?7 @; O: Z% Q/ X$ R9 f4 Z
access_timestamp: Wed Jul 21 15:10:52 2021: X) G1 y! F/ z( e
modify_timestamp: Wed Jul 21 15:10:52 2021 v9 B; \8 l, p- N- T9 t i
[root@compute02 ~]# rbd snap list -p images 64079697-b54d-4499-872b-a79d3daa48b8
1 [# b/ T- N+ F' ^* _& ESNAPID NAME SIZE PROTECTED TIMESTAMP ! Y; D; `% m% v, {0 `; q p/ z
5 snap 4 GiB yes Wed Jul 21 15:21:07 2021 " g9 A3 y( Y) U8 d3 M e2 N! w
[root@compute02 ~]# rbd snap unprotect images/64079697-b54d-4499-872b-a79d3daa48b83 _6 \0 {6 s; k( m
rbd: snapshot name was not specified P6 b/ e# n# u7 s' C. m/ c
[root@compute02 ~]# rbd snap unprotect images/64079697-b54d-4499-872b-a79d3daa48b8@snap
4 L- ?" G) q0 w[root@compute02 ~]# rbd snap purge images/64079697-b54d-4499-872b-a79d3daa48b8 ' @5 y" _" O; H3 W5 z% e1 Z
Removing all snapshots: 100% complete...done.5 k& k I7 v/ I, k$ ]" e
[root@compute02 ~]# rbd rm images/64079697-b54d-4499-872b-a79d3daa48b8# }+ `" s* D7 H% ]$ B4 Y2 e
Removing image: 100% complete...done.
' D% X2 I# `# H0 A7 {6 u# f. L[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed565971. B6 M9 u2 d/ s1 u, W
2021-07-21 16:54:43.340 7fc32696db00 -1 librbd::image::PreRemoveRequest: 0x561c7f70cb40 check_image_snaps: image has snapshots - not removing' H% v- w2 B- _
Removing image: 0% complete...failed.2 l1 s0 W! ~+ |) T* p- C- G
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
( J3 ~: _/ i: T$ Z& T o[root@compute02 ~]# rbd info images/fb31561c-dcf4-4251-8c74-0ff0ed565971; U& ]5 V% g+ R# n, @0 _6 B& t; z
rbd image 'fb31561c-dcf4-4251-8c74-0ff0ed565971':+ [3 o2 W3 A b9 g( u& ]" l6 T" r
size 13 MiB in 2 objects- K' f0 {/ E B; w/ w1 }
order 23 (8 MiB objects)* d/ |) p3 M4 @: e: l
snapshot_count: 1
! M) O) t4 w" O& T; C) p id: 296d079a3cbe09 R5 [6 b6 t: n% \. B
block_name_prefix: rbd_data.296d079a3cbe05 d$ G4 \3 \- e8 _1 u; j& n( C
format: 2' z! G% N0 R% t/ u
features: layering
" j9 r* a4 l6 `$ m8 K4 s op_features: H7 Z4 p' q: o8 R* ^
flags: ; ?( [# ^ C& I- `3 x
create_timestamp: Wed Jul 21 13:58:16 20218 N/ t8 c, \; S" n" ]- N
access_timestamp: Wed Jul 21 13:58:16 2021
) V/ s4 S9 D. v0 C( w) u& d* _: v3 L modify_timestamp: Wed Jul 21 13:58:16 20211 R: T/ t/ i/ `5 _( @
[root@compute02 ~]# rbd snap list images/fb31561c-dcf4-4251-8c74-0ff0ed5659713 v; W3 n* X$ j0 z/ W+ j* X8 C
SNAPID NAME SIZE PROTECTED TIMESTAMP
6 [ o# K$ l y8 e, Z9 F$ e 4 snap 13 MiB yes Wed Jul 21 13:58:19 2021
* F; q1 p! w( k2 h% r. G/ X[root@compute02 ~]# rbd snap unprotect images/fb31561c-dcf4-4251-8c74-0ff0ed565971# j' `2 p3 H. X& H2 @4 F
rbd: snapshot name was not specified }: ^8 e6 a; Y
[root@compute02 ~]# rbd snap unprotect images/fb31561c-dcf4-4251-8c74-0ff0ed565971@snap3 e; a' X( X9 l3 h0 B1 w7 H) Y8 e
[root@compute02 ~]# rbd snap purge images/fb31561c-dcf4-4251-8c74-0ff0ed565971
7 q7 P5 ?( K+ V* f& n I: T: XRemoving all snapshots: 100% complete...done.
3 f' p6 o# m! C, ], w. U[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed565971
2 [4 L: O, n) i; ^4 V6 x: uRemoving image: 100% complete...done.$ J% ^8 s Y& |' X
|
|