找回密码
 注册
查看: 3252|回复: 1

Removing image: 0% complete...failed. ...deleted with 'rbd snap purge' ceph rbd

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-7-21 17:07:12 | 显示全部楼层 |阅读模式
[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed565971
7 w! a4 E* h0 ?; }/ Q, x2021-07-21 16:48:16.039 7f68e7916b00 -1 librbd::image::PreRemoveRequest: 0x55a0f4aa5930 check_image_snaps: image has snapshots - not removing
; R- ~& J& h, b7 \8 u' }* JRemoving image: 0% complete...failed.' H0 |  w9 O2 X( ?8 D
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.) _  I2 [1 V2 M3 {4 T. f4 R
[root@compute02 ~]# rbd rm images/64079697-b54d-4499-872b-a79d3daa48b8
5 o: B) g5 Y8 x( b, [& K0 d: a2021-07-21 16:48:34.530 7f5bedb1eb00 -1 librbd::image::PreRemoveRequest: 0x56445263f940 check_image_snaps: image has snapshots - not removing
) q, I! d' L- M8 G+ s, F' E4 JRemoving image: 0% complete...failed.! u$ a' c- I( u* F
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
, N! }% I5 Z" W" l6 [% e[root@compute02 ~]# rbd info images/64079697-b54d-4499-872b-a79d3daa48b87 E+ k- {9 T) i6 A" o/ h: g* d# W
rbd image '64079697-b54d-4499-872b-a79d3daa48b8':9 Y8 G/ r5 @: w! e3 N) V
size 4 GiB in 512 objects
6 K' L5 S# D' R; L' p& n order 23 (8 MiB objects)
" f6 |) y" S6 M) r4 j snapshot_count: 1
. S' s) B( U/ R0 F1 {- ?8 u& i id: 2a13976999ad9
3 [: S* w& P% }% D block_name_prefix: rbd_data.2a13976999ad97 ^* Q# k5 H+ y& m7 _/ L
format: 2
  a8 E$ ~# g3 R# G features: layering
- N% V9 ^/ P- _; h, E9 D op_features:
  F9 g5 j7 u% q1 U* w flags:
* r) N( `. ]* {3 F7 ^ create_timestamp: Wed Jul 21 15:10:52 2021
( R9 K$ u6 ^+ A1 e$ c access_timestamp: Wed Jul 21 15:10:52 20219 \: z" d+ G1 v! M  f8 S1 F
modify_timestamp: Wed Jul 21 15:10:52 20216 R' W2 _- Y/ I
[root@compute02 ~]# rbd snap list -p images 64079697-b54d-4499-872b-a79d3daa48b8
; y% e2 C# m1 E: BSNAPID NAME SIZE  PROTECTED TIMESTAMP               
- K' e, g+ y' {     5 snap 4 GiB yes       Wed Jul 21 15:21:07 2021
" W" h2 c4 b% A9 C) o. m[root@compute02 ~]#  rbd snap unprotect images/64079697-b54d-4499-872b-a79d3daa48b8( h* l+ G8 D0 Z. a2 ?6 o) S! E
rbd: snapshot name was not specified  z+ K3 \3 c) {
[root@compute02 ~]#  rbd snap unprotect images/64079697-b54d-4499-872b-a79d3daa48b8@snap& b0 }- L3 _8 D1 N9 T% @$ U8 Z
[root@compute02 ~]#  rbd snap purge images/64079697-b54d-4499-872b-a79d3daa48b8 ) |# M9 {. ~3 x( M9 U
Removing all snapshots: 100% complete...done.
# V9 m, |  N' i6 g" W4 M[root@compute02 ~]#  rbd rm images/64079697-b54d-4499-872b-a79d3daa48b8; c3 A2 _: X2 \
Removing image: 100% complete...done.0 b3 I  ?9 l- C9 U2 M' @( f+ o
[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed565971
( q* {( [* e- Q8 M4 h2021-07-21 16:54:43.340 7fc32696db00 -1 librbd::image::PreRemoveRequest: 0x561c7f70cb40 check_image_snaps: image has snapshots - not removing, \0 a0 @: z. s* l- _
Removing image: 0% complete...failed.
& L4 G( c+ J6 c% W" b9 D& ~rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.  p1 {# r9 w- e5 U
[root@compute02 ~]# rbd info images/fb31561c-dcf4-4251-8c74-0ff0ed565971
1 j% c# o4 ?8 K# ~9 {rbd image 'fb31561c-dcf4-4251-8c74-0ff0ed565971':) R- o% J: j8 {/ e$ @
size 13 MiB in 2 objects& N6 o1 x1 t% R  x' c- L3 h+ _
order 23 (8 MiB objects)) l6 h" W* o$ a
snapshot_count: 1
- @" Q5 ~: Z* D0 Z7 n( O3 c% u id: 296d079a3cbe0
  @+ K) m$ I( c+ R$ ?% ]3 C block_name_prefix: rbd_data.296d079a3cbe09 f. E7 ?* D' a
format: 2
4 A' q1 q+ ]' I0 `! f features: layering
( l% R8 @1 Q3 a7 ?! v5 S. `2 t op_features:
2 u3 y; P% A3 x9 O0 e& p6 D. v flags:
5 X' i+ _( N9 z" ], D7 b. R/ p7 H create_timestamp: Wed Jul 21 13:58:16 20219 J" F9 \5 q! B6 R7 D5 _- ?% f3 S1 S* ]
access_timestamp: Wed Jul 21 13:58:16 2021) z/ x* F  y1 W. e/ @
modify_timestamp: Wed Jul 21 13:58:16 2021
8 R5 B- t- k- q! A" w, o4 i/ ^$ H5 b[root@compute02 ~]#  rbd snap list images/fb31561c-dcf4-4251-8c74-0ff0ed565971
1 e/ }9 p- ]! ~SNAPID NAME SIZE   PROTECTED TIMESTAMP                ! Q: w/ b+ Q3 C; d, g0 s9 g* y3 S
     4 snap 13 MiB yes       Wed Jul 21 13:58:19 2021
6 o' l/ _6 Q. E+ p[root@compute02 ~]# rbd snap unprotect images/fb31561c-dcf4-4251-8c74-0ff0ed565971
; P  G; i5 O3 I8 U. xrbd: snapshot name was not specified# x4 W* k4 l4 e1 Q/ l- N
[root@compute02 ~]# rbd snap unprotect images/fb31561c-dcf4-4251-8c74-0ff0ed565971@snap
) G, d9 f. Q3 v  A3 U[root@compute02 ~]# rbd snap purge images/fb31561c-dcf4-4251-8c74-0ff0ed5659719 Z) C; v4 C& n7 c: V
Removing all snapshots: 100% complete...done.- |+ r/ Z5 E0 z# e8 l
[root@compute02 ~]# rbd rm images/fb31561c-dcf4-4251-8c74-0ff0ed565971' t. Q& s6 {4 L$ k9 n. r
Removing image: 100% complete...done.
: \$ A) l* a/ X! E& }

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-8-24 17:29:55 | 显示全部楼层
[root@compute01 ~]# rbd snap unprotect images/7e20974b-4fea-4ba6-9e47-aa6f4a135bf6@snap' {  D' D( @4 Y
2021-08-24 17:27:51.170 7f372bfff700 -1 librbd::SnapshotUnprotectRequest: cannot unprotect: at least 1 child(ren) [5c05b79dc2e48] in pool 'volumes'
0 V( ]* q( [( W  h2021-08-24 17:27:51.172 7f372bfff700 -1 librbd::SnapshotUnprotectRequest: encountered error: (16) Device or resource busy& g! Q" @1 E5 x7 V2 x- M
2021-08-24 17:27:51.172 7f372bfff700 -1 librbd::SnapshotUnprotectRequest: 0x56048543dcd0 should_complete_error: ret_val=-169 i% [2 m! I& Z1 w: b
rbd: unprotecting snap failed: 2021-08-24 17:27:51.187 7f372bfff700 -1 librbd::SnapshotUnprotectRequest: 0x56048543dcd0 should_complete_error: ret_val=-16
: n6 f& o( m! u* K5 g* M( Y(16) Device or resource busy
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 02:03 , Processed in 0.017343 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表