找回密码
 注册
查看: 1853|回复: 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& U  Q2 c5 ]9 n$ T5 |9 g# E3 H& a
2021-10-20 10:15:05.643 7fbf1a9f4b00 -1 librbd::image::PreRemoveRequest: 0x55e04f399c00 check_image_snaps: image has snapshots - not removing/ Y8 T; ^$ F0 S" O8 ^  E1 T2 t
Removing image: 0% complete...failed.
8 a3 V9 E1 S: F7 D9 w8 brbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
: |5 J$ s! A* J9 H2 p; z& H[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
* F7 f6 F1 j, m- W# q% Grbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
+ @+ K; L) I( j  g8 KRemoving all snapshots: 0% complete...failed.4 U7 w6 L! j- t3 x* |2 y
) s7 }+ q+ p4 M3 P5 z
[root@compute01 ~]# rbd snap unprotect -p images 71ac5d32-3d99-464b-8036-0222e1f824ac@snap
$ L6 D6 B4 W! D. M* T; ^1 Z) Z: N[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
7 b  s% v8 S( b4 a+ Q5 Z6 a2021-10-20 10:15:50.933 7fe397affb00 -1 librbd::image::PreRemoveRequest: 0x5637cc38bdf0 check_image_snaps: image has snapshots - not removing
; f( o) ?$ h7 @; WRemoving image: 0% complete...failed.( [$ @% a1 ^, N" G6 ?/ Z
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
5 J5 A' s$ V3 l5 T0 ^1 E% L[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac+ w- `( _7 S7 t- s/ p( }
Removing all snapshots: 100% complete...done." \- I+ t1 f# L1 d! F! k
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac6 @! A" V8 q, M4 [7 ^3 j' e
Removing image: 100% complete...done.
9 i8 f- y9 K, R; n- k' H8 Y[root@compute01 ~]#
& P9 c  q4 j4 h

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
* C0 Z7 x( N% E2021-10-20 10:25:27.261 7fc063adcb00 -1 librbd::image::PreRemoveRequest: 0x557a1efcfbc0 check_image_snaps: image has snapshots - not removing
5 _! @1 Q! P' k1 r' A: f+ ZRemoving image: 0% complete...failed.+ O5 b2 \9 @. t
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.) _% M, \1 S6 _: Q8 q( N) \
[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
8 Q& X3 [# I7 brbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
- D5 t2 |# B" l' O0 aRemoving all snapshots: 0% complete...failed.( h5 P- v4 y, _! Q2 k3 B4 C
[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9! N9 F9 A. n: O
rbd: snapshot name was not specified) L( `- ~; f  I; ~
[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9@snap/ E$ G) S/ s# K$ ]- Z8 a
[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9* D1 d$ L1 U) e* {+ c3 i7 m
Removing all snapshots: 100% complete...done.0 @" t0 f/ w* P# g. v
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9" R9 p+ X+ H3 G& J, e+ S
Removing 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-86ee10c304fc7 O( S' \( F6 P) a4 v+ {
2021-10-20 10:27:24.373 7fe16f8eeb00 -1 librbd::image::PreRemoveRequest: 0x563e1382ec20 check_image_snaps: image has snapshots - not removing6 P5 j( Q  k" Y1 |' Z
Removing image: 0% complete...failed.
/ N$ h; I; @8 j. {- grbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
' C- |  q- h* i. ^7 E4 p[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
' B7 o( v% z' q; @! nrbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
6 o- }% D7 A4 f* h5 ?& S7 pRemoving all snapshots: 0% complete...failed.5 ^" ^# N+ U" D- z, C6 ?

- f/ Y- a6 S1 S5 X1 x[root@compute01 ~]# rbd snap unprotect -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc@snap
0 n' i4 P5 n; P) i& B8 }, c2 d[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
" p3 i( b3 w: j1 v+ o7 h5 r: R2 XRemoving all snapshots: 100% complete...done.' N- \( X( p) d- l
[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
+ Y0 {: M5 q" sRemoving image: 100% complete...done.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:22 , Processed in 0.018322 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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