找回密码
 注册
查看: 1851|回复: 3

处理ceph删除失败的另一种方式check_image_snaps: image has snapshots - not removing

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-10-20 10:18:34 | 显示全部楼层 |阅读模式
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
: T; |# _3 X8 j& n2021-10-20 10:15:05.643 7fbf1a9f4b00 -1 librbd::image::PreRemoveRequest: 0x55e04f399c00 check_image_snaps: image has snapshots - not removing
$ S- M0 R" Y/ v( f0 \Removing image: 0% complete...failed.) p! [0 Y4 g6 {3 o! _' n/ E
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
% j/ F( C, @' B  g; b4 ?1 [[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac" p% N; i' g( X9 o$ e3 q
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
9 X$ O- C* |2 ^' GRemoving all snapshots: 0% complete...failed.
  k; ~8 E% i8 _7 W, j4 _0 {, s" {' v+ Z+ `& O! L% z
[root@compute01 ~]# rbd snap unprotect -p images 71ac5d32-3d99-464b-8036-0222e1f824ac@snap+ H6 m; i' K. ?- [) C# b
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
( k  n  G% t9 p5 H* Q+ t5 D8 q2021-10-20 10:15:50.933 7fe397affb00 -1 librbd::image::PreRemoveRequest: 0x5637cc38bdf0 check_image_snaps: image has snapshots - not removing
+ y1 i. M: g+ C) ARemoving image: 0% complete...failed.
8 y& D2 f9 K. `* O5 D5 Y8 B, Hrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
+ v% d1 D" m: e! ^7 b5 m2 [[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac2 \7 N% S5 Y1 g. I' I3 e: \5 j; M
Removing all snapshots: 100% complete...done.
) b, p+ X; K2 q. y+ K[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
9 ^9 c; Z. K8 r& \. `3 |5 u/ uRemoving image: 100% complete...done.
0 x' j7 @1 x9 P1 ^4 Q[root@compute01 ~]#
* d. |  r. T. B2 [

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-10-20 10:19:06 | 显示全部楼层

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-10-20 10:27:03 | 显示全部楼层
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a91 ]. H% O4 [2 e" |1 C# P
2021-10-20 10:25:27.261 7fc063adcb00 -1 librbd::image::PreRemoveRequest: 0x557a1efcfbc0 check_image_snaps: image has snapshots - not removing
9 ^! j& R/ d" ?! m/ k) PRemoving image: 0% complete...failed.; ]8 D9 A& ]/ I) j& K
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
5 o" E* j9 S: V; u[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9" y% Y* _% R. a$ j7 M
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.9 B" a" G# y: a
Removing all snapshots: 0% complete...failed.4 q3 \8 B* l. ~& v/ i
[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a97 e+ }+ c8 G! H7 P0 u. Y4 o: F  y6 q
rbd: snapshot name was not specified
) E/ j; Y; Z& [- h; i[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9@snap
) Q0 [0 Y$ p* C* I, P/ W[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9: g5 V: h' m( h9 @: F
Removing all snapshots: 100% complete...done.$ Q. A# s( f- r$ K0 e( r9 ?
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
  W9 w. v1 u! ~9 Y9 wRemoving image: 100% complete...done.

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-10-20 10:28:49 | 显示全部楼层
[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc, W7 z( |* ?' h, p( h7 f- B7 e4 b
2021-10-20 10:27:24.373 7fe16f8eeb00 -1 librbd::image::PreRemoveRequest: 0x563e1382ec20 check_image_snaps: image has snapshots - not removing
" R- o  ^6 Q0 x1 O( G) ^Removing image: 0% complete...failed.# |/ T) M/ M5 O* x  j* F3 Q' W* ]
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed., @/ ~8 c% P- O2 O
[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
) c# g: L; }3 A; b! Zrbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.! S6 u7 _# h3 S6 S6 @" R- f
Removing all snapshots: 0% complete...failed.3 y& W% a! Y* M% I4 z& |: s
) h( r/ Y3 A. {3 `7 }! u
[root@compute01 ~]# rbd snap unprotect -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc@snap! [3 K+ p9 b: r+ W
[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc% Y7 e# e) f& R6 b( m' L
Removing all snapshots: 100% complete...done.! a: [( X& m( D9 T
[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
$ t2 h6 f6 g4 vRemoving image: 100% complete...done.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:16 , Processed in 0.025271 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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