找回密码
 注册
查看: 1854|回复: 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) P- n* d8 |1 C9 e! |
2021-10-20 10:15:05.643 7fbf1a9f4b00 -1 librbd::image::PreRemoveRequest: 0x55e04f399c00 check_image_snaps: image has snapshots - not removing* [. t. ]- y% c' z- v+ ~7 c/ J. F
Removing image: 0% complete...failed.
( ?, z" J% V$ e4 T6 c- @. z4 Qrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.! V* I% o2 L' I" w( M& Z, \
[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac3 H3 ^& L/ O* \
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
/ }& |4 T; B4 m" ]  ?; K% r; v: JRemoving all snapshots: 0% complete...failed.. q9 u. f; J) X6 {
! ^8 u9 ?% o: y
[root@compute01 ~]# rbd snap unprotect -p images 71ac5d32-3d99-464b-8036-0222e1f824ac@snap' D; C$ J, `7 r$ E6 s8 L+ x
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
7 R4 r; p! D$ x" }7 {/ d2021-10-20 10:15:50.933 7fe397affb00 -1 librbd::image::PreRemoveRequest: 0x5637cc38bdf0 check_image_snaps: image has snapshots - not removing- m% S( }8 v1 b( M; K0 j& s4 j
Removing image: 0% complete...failed.
1 l+ z* R- N) o% H0 erbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.; y4 u* \7 {$ D4 _+ l  l0 @" Z
[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
- }8 O( M7 l( \% G+ D6 N' mRemoving all snapshots: 100% complete...done.
  c1 s7 @3 j5 K5 E2 ^% E7 O, V[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac$ e5 M# A. [" J: X; Q% x8 F  [
Removing image: 100% complete...done.8 T0 u% G8 V. p! E- @; j6 c* |0 u
[root@compute01 ~]# " _. y1 }9 w, `5 m

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-4805e50a34a9) a" E4 T) A8 }3 A0 q9 J
2021-10-20 10:25:27.261 7fc063adcb00 -1 librbd::image::PreRemoveRequest: 0x557a1efcfbc0 check_image_snaps: image has snapshots - not removing
% s) R' O, v! }& |Removing image: 0% complete...failed.7 W6 }+ Q$ W, F* S
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.! i, I* D4 H$ E
[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
; Y0 Q) D) s$ trbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
% n, F/ ^, {+ C7 `0 VRemoving all snapshots: 0% complete...failed.
+ o9 ~/ U8 e$ t' r# v" n[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9- N* [/ _) C0 u9 a
rbd: snapshot name was not specified
6 G* e5 `! B" T( U- T8 N[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9@snap1 q  W/ K  a4 b3 L6 V+ k: L) B# ]
[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
. E$ f  r- o, k* a5 B& ^Removing all snapshots: 100% complete...done.
9 }! e! e7 h1 r& Z1 S' [' F  {[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
" M3 ^4 ]3 a% H" Z) c1 ZRemoving 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
6 |% I+ b3 F+ j. p3 s2021-10-20 10:27:24.373 7fe16f8eeb00 -1 librbd::image::PreRemoveRequest: 0x563e1382ec20 check_image_snaps: image has snapshots - not removing
/ K# b2 D, D, ~! W& j4 YRemoving image: 0% complete...failed.
; ^9 Y0 w5 @. K3 Grbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
6 R( ]: r# u1 [/ \' P# R[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc" w9 m$ K& S" y' E0 |9 m' ]$ a8 I
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.) p  d/ D7 O1 c- u
Removing all snapshots: 0% complete...failed.
$ c" T* _* |7 T% p! k
. Q& W2 M: D+ r8 f5 S* L[root@compute01 ~]# rbd snap unprotect -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc@snap
" p5 R; X# j2 b$ f: |. x1 X[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
8 I7 B7 H+ u& h% ZRemoving all snapshots: 100% complete...done.3 A1 n1 h. l( o) Z
[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
% y, L5 o' n: Q0 t. y+ `Removing image: 100% complete...done.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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