易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1858|回复: 3
收起左侧

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

[复制链接]
发表于 2021-10-20 10:18:34 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac* ?+ T8 }6 I3 S( Z( J* [" {: p
2021-10-20 10:15:05.643 7fbf1a9f4b00 -1 librbd::image::PreRemoveRequest: 0x55e04f399c00 check_image_snaps: image has snapshots - not removing
! r- v0 ^& Q$ k/ ?, [% W  A3 dRemoving image: 0% complete...failed.
* T; }% I- x( C/ W/ Xrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
: M: \( T1 X  |8 X6 d/ H7 A[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
/ K- P, B7 t. grbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.; A( Y, q* t' V: O: x  Y
Removing all snapshots: 0% complete...failed.% `" ^. s' E$ f: L+ o3 p& B$ G

) y" S2 a3 e5 X. v[root@compute01 ~]# rbd snap unprotect -p images 71ac5d32-3d99-464b-8036-0222e1f824ac@snap
: Z1 z, g& [# H/ A! b7 e[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac- L0 R4 Y7 q( x/ V  F
2021-10-20 10:15:50.933 7fe397affb00 -1 librbd::image::PreRemoveRequest: 0x5637cc38bdf0 check_image_snaps: image has snapshots - not removing) E" M! f  ^+ h
Removing image: 0% complete...failed.
5 z: d$ \, M2 O3 |1 Nrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
4 B3 @7 h6 D4 c7 A. E$ k[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac( D5 v1 K5 S6 {2 U  R( I
Removing all snapshots: 100% complete...done.+ f9 r/ C9 E* L1 ~. k' A/ s
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
. t+ G% _8 S$ y2 t# B/ CRemoving image: 100% complete...done.
' j* q7 F" y: h1 G: c  R3 _[root@compute01 ~]#
) @+ a8 y7 J+ X  G# K4 \8 L- r1 V
 楼主| 发表于 2021-10-20 10:19:06 | 显示全部楼层
 楼主| 发表于 2021-10-20 10:27:03 | 显示全部楼层
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9+ b8 ~5 {/ d% G
2021-10-20 10:25:27.261 7fc063adcb00 -1 librbd::image::PreRemoveRequest: 0x557a1efcfbc0 check_image_snaps: image has snapshots - not removing& X6 }) |7 m) A* F1 P$ X8 m
Removing image: 0% complete...failed.+ _" H: ~# [$ h+ p' p5 J* [
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
. J, F0 Q# L6 v  a[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
) `3 x8 r' W# P9 y5 W# p, ^rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.4 ~& c2 E/ {/ H7 I8 m0 E$ f7 D
Removing all snapshots: 0% complete...failed.
* g  ?: _+ Z6 C" J[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a95 ]7 R6 y" S! O1 e  p5 J
rbd: snapshot name was not specified
% L' b* j3 `$ q4 e9 p  W8 t[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9@snap
5 t) c/ o7 W( T5 j[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a97 _2 m6 b* X: X/ w& I
Removing all snapshots: 100% complete...done.: ]3 V- [+ T/ H' s" |; F
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a99 r* f% b# F  u$ x& M8 ^5 \
Removing image: 100% complete...done.
 楼主| 发表于 2021-10-20 10:28:49 | 显示全部楼层
[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc" s2 O" K4 n2 z; ?! p& r
2021-10-20 10:27:24.373 7fe16f8eeb00 -1 librbd::image::PreRemoveRequest: 0x563e1382ec20 check_image_snaps: image has snapshots - not removing. ]' _- A3 p$ B) I
Removing image: 0% complete...failed.' y- |$ x0 l0 Y1 m- V
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
; R6 w5 m  ^" |[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
( `" {( ^/ p( o3 ]" G, C# `+ c5 {+ Brbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.* U1 ]; J# T4 y3 L5 M; ^
Removing all snapshots: 0% complete...failed.
9 m* f- i" U' `& n- \" ]3 w  B. e7 B( B9 B8 ~( R+ }2 I
[root@compute01 ~]# rbd snap unprotect -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc@snap6 D9 A% g2 ?, Z" V- @
[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc+ R, W+ ^. t3 O) G
Removing all snapshots: 100% complete...done.
1 A6 Z0 q5 ^: ?[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
' ^* S6 e4 P' k6 i- U6 r( L" |Removing image: 100% complete...done.
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-10 16:24 , Processed in 0.039566 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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