将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 184|回复: 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-0222e1f824ac0 i) i0 V2 j+ B; |& J  q  _7 K6 A
2021-10-20 10:15:05.643 7fbf1a9f4b00 -1 librbd::image::PreRemoveRequest: 0x55e04f399c00 check_image_snaps: image has snapshots - not removing8 M/ }3 C. m5 z. R  w+ P0 x7 q9 X
Removing image: 0% complete...failed.
3 o! c+ e, q9 j9 E( Arbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed." m8 W" \' \8 x" h% F: w" s* L. N, v
[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac# g" |2 c, y7 b2 @7 \0 }
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.' c! h. ^+ F6 P3 X. a
Removing all snapshots: 0% complete...failed.+ v. f- k8 I2 v- x* g8 A+ O

7 p$ M/ c/ P: J& z, y2 A[root@compute01 ~]# rbd snap unprotect -p images 71ac5d32-3d99-464b-8036-0222e1f824ac@snap
- A! T+ B) y9 n[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac1 a3 y6 D( `' M
2021-10-20 10:15:50.933 7fe397affb00 -1 librbd::image::PreRemoveRequest: 0x5637cc38bdf0 check_image_snaps: image has snapshots - not removing7 E- k8 i/ p; V/ K% J
Removing image: 0% complete...failed.: o; H) T2 |' W# H3 {  O$ Q
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed./ R% j! U: l  q( A! E: h
[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac) b1 C7 c% V# z; \# R
Removing all snapshots: 100% complete...done.; z4 N  `! `% W' [' g1 F- w
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
* x# F$ L3 \, X) x5 }' d  HRemoving image: 100% complete...done.% d0 }9 R% n3 |; t
[root@compute01 ~]# - M. l7 B5 N' S; @
 楼主| 发表于 2021-10-20 10:19:06 | 显示全部楼层
 楼主| 发表于 2021-10-20 10:27:03 | 显示全部楼层
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9- \0 @( w3 |: q
2021-10-20 10:25:27.261 7fc063adcb00 -1 librbd::image::PreRemoveRequest: 0x557a1efcfbc0 check_image_snaps: image has snapshots - not removing
* d# y6 k, `8 O8 A$ A7 z- |4 Y2 Z: MRemoving image: 0% complete...failed.0 n* G! s* S' ?4 }; Q- q
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
& N$ d$ a$ ?5 X6 q[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9! l/ @; M2 p; z3 P
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
# x, P" H* \6 v: F2 |9 oRemoving all snapshots: 0% complete...failed.8 @/ m  J* G2 h( \. K% M
[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9; J6 i! l$ V' S, w) {0 y1 v8 y# Z
rbd: snapshot name was not specified
$ U; ^6 c+ m6 U1 ]( Z  r) b[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9@snap
: J5 t. O( D& ]) I[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
, ^' z1 R5 |6 G8 R5 }' n! mRemoving all snapshots: 100% complete...done.
  e$ K& Y7 O  N; J" k$ s# P[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a93 D' q; }5 q' o4 V$ K+ ?7 j
Removing image: 100% complete...done.
 楼主| 发表于 2021-10-20 10:28:49 | 显示全部楼层
[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc+ M3 g9 o0 y$ F3 t
2021-10-20 10:27:24.373 7fe16f8eeb00 -1 librbd::image::PreRemoveRequest: 0x563e1382ec20 check_image_snaps: image has snapshots - not removing, K! [1 o- X/ W
Removing image: 0% complete...failed.
3 |% w6 @* f$ B/ Z+ vrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
$ {4 w: i0 x, V/ O6 k* `4 r[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc% B' s: m% N! J( }) v) X
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.- o3 M: E  h! ?. @
Removing all snapshots: 0% complete...failed.
# C& s# s/ S& L7 d0 N2 M: @9 ?
2 P; Z& C: t( V. K4 x" u/ t: ~[root@compute01 ~]# rbd snap unprotect -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc@snap; E! N) q2 ]+ Q# W' j
[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
- m9 I. R2 o0 [9 [Removing all snapshots: 100% complete...done.
$ _0 U8 c- x: P/ M- U, n[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
& U: n1 S# a- u( V' HRemoving image: 100% complete...done.
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-11-28 19:26 , Processed in 0.061017 second(s), 22 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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