易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1856|回复: 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/ |5 z7 r/ P% A% ^* C, Z; n
2021-10-20 10:15:05.643 7fbf1a9f4b00 -1 librbd::image::PreRemoveRequest: 0x55e04f399c00 check_image_snaps: image has snapshots - not removing7 P' o2 Y1 H& l
Removing image: 0% complete...failed.0 o9 _3 o* X( I0 |0 E
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.. J( n  a7 c6 v- H0 }9 z$ ~# N
[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac4 m, E4 }# W* a
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.8 ]( ?- |* l% U3 o+ V# B
Removing all snapshots: 0% complete...failed.; \! C  P+ L+ D3 K; Y

+ t+ Q0 k1 {: b) J3 t( V% I[root@compute01 ~]# rbd snap unprotect -p images 71ac5d32-3d99-464b-8036-0222e1f824ac@snap
. u* K% P. s$ t8 u7 Y[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
  x6 w+ j2 p. ?% k& W; \2021-10-20 10:15:50.933 7fe397affb00 -1 librbd::image::PreRemoveRequest: 0x5637cc38bdf0 check_image_snaps: image has snapshots - not removing
+ d' |" y/ ?% L! mRemoving image: 0% complete...failed.
7 q( |/ m' G3 ^/ d! K1 J, M' Zrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.2 y, {: f" j8 M% Q( T8 A
[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac- O: V; T/ q9 n1 X
Removing all snapshots: 100% complete...done.) q8 S0 b6 [5 ^. |: ?' P3 Y% ^
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac* F% k" j& e% R
Removing image: 100% complete...done.
) U5 }! x2 R7 y; Q  U[root@compute01 ~]#
% P. E! k" ]0 o2 C) w# G* V
 楼主| 发表于 2021-10-20 10:19:06 | 显示全部楼层
 楼主| 发表于 2021-10-20 10:27:03 | 显示全部楼层
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9- c+ o2 v) a: e# d5 Q, t& z* ]% `
2021-10-20 10:25:27.261 7fc063adcb00 -1 librbd::image::PreRemoveRequest: 0x557a1efcfbc0 check_image_snaps: image has snapshots - not removing* R+ e( w; H; t! v) h+ n
Removing image: 0% complete...failed.5 }4 s: C. h5 C# q% a: ~: w0 n! K# n
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.& p# `& S. _6 i1 U. L
[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9( C( v. @/ l) E( q3 c
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
4 t: L, O6 R3 URemoving all snapshots: 0% complete...failed.
. E- Q( i) p6 z0 q2 }0 u[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a93 o. B" V1 B1 ]  x& |- P4 q3 E* b
rbd: snapshot name was not specified/ _! W) f! X* _2 n2 }6 ?5 j1 Q2 C: W
[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9@snap
( @+ J$ E) D0 s3 b# u) }[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
" Q2 z! W9 j& }! TRemoving all snapshots: 100% complete...done.
: @; P- s5 R1 ~  R0 Q[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
8 |! d# e, u, b# s# }, S1 zRemoving image: 100% complete...done.
 楼主| 发表于 2021-10-20 10:28:49 | 显示全部楼层
[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc% j0 b2 j" @4 C
2021-10-20 10:27:24.373 7fe16f8eeb00 -1 librbd::image::PreRemoveRequest: 0x563e1382ec20 check_image_snaps: image has snapshots - not removing4 h: u" q* m! {  \. Q; C
Removing image: 0% complete...failed.# W/ q4 U. e, ~/ y- q6 b' e, o. D: m
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
% s: ~. C& E% \1 p, c4 U[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc6 @# d$ U9 N; |6 u" ~# b: L8 ~6 l! x
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.1 b  j) D1 K& i, w6 t6 h  x1 H
Removing all snapshots: 0% complete...failed.
, ^0 k8 ]3 Q4 K0 x4 l+ ?, ?5 M! C
7 q1 z, J- {7 g9 g0 F; V: m[root@compute01 ~]# rbd snap unprotect -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc@snap
  h. G* Z7 J9 t6 Z* n; r[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc7 A8 V# t  e2 v/ h  }
Removing all snapshots: 100% complete...done.
5 |; J+ D4 @0 U+ f4 j2 \! I[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc, G- Z: r4 \1 T6 C" a' I# M
Removing image: 100% complete...done.
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 15:22 , Processed in 0.055395 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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