找回密码
 注册
查看: 1852|回复: 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
4 b7 \# `' b9 f2021-10-20 10:15:05.643 7fbf1a9f4b00 -1 librbd::image::PreRemoveRequest: 0x55e04f399c00 check_image_snaps: image has snapshots - not removing
7 |$ q7 b7 K* A. f6 X$ i/ P6 KRemoving image: 0% complete...failed.
5 b3 P% O( I2 D4 Lrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
' Y0 s% ^+ N% u2 F0 d[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
, f- h* Q9 m! N8 z1 t" e+ ~3 `rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.- T6 M2 f- }* O) j6 I8 y5 o9 h8 C1 f
Removing all snapshots: 0% complete...failed.
) `4 Y3 n" ?1 {6 k4 p9 \9 I9 i2 e% j- x( O4 _& o/ d  q
[root@compute01 ~]# rbd snap unprotect -p images 71ac5d32-3d99-464b-8036-0222e1f824ac@snap
1 P4 Y3 J7 o1 q/ v  A( U[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac0 H2 X7 R3 |% [  S7 j6 K% p
2021-10-20 10:15:50.933 7fe397affb00 -1 librbd::image::PreRemoveRequest: 0x5637cc38bdf0 check_image_snaps: image has snapshots - not removing- H7 g2 l# G0 \
Removing image: 0% complete...failed.
' t+ p* P, I4 i  @" K! Qrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
' _; H9 E0 D+ _! q[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac$ w* V; r) v) n; J6 y* ?/ f% `
Removing all snapshots: 100% complete...done.! A( Q, i( C0 @! L) T
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
% q# k6 Y: p& j- L: r# ORemoving image: 100% complete...done.+ J5 O5 m  P* |+ [
[root@compute01 ~]# / ?3 [3 |' K( H2 p" e% J

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-4805e50a34a96 ]0 s' D' u: L$ n6 [
2021-10-20 10:25:27.261 7fc063adcb00 -1 librbd::image::PreRemoveRequest: 0x557a1efcfbc0 check_image_snaps: image has snapshots - not removing
* E+ c% x  W$ P% uRemoving image: 0% complete...failed.. G. j4 T7 w2 [( T4 a4 i' r
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
, l2 |8 {$ X2 i0 k" w[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a90 A. ]! W* Z& z# c% D; x2 V' ^/ N
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.+ n; v/ d2 k$ z' X
Removing all snapshots: 0% complete...failed.* u3 B' }7 O) ]7 j$ i- `( f" p
[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
! C$ E/ @! q' |% N. _rbd: snapshot name was not specified
8 s) Y! R, `6 _. C9 R# g[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9@snap, g0 A3 B) i* D  p
[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
' O. F, h0 ^$ @) Y- ]Removing all snapshots: 100% complete...done." f2 ?* m. ~* h3 b' l
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
9 b8 u  [, r$ @* Z6 q7 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+ V% n. {. J0 W4 i% W0 o' _
2021-10-20 10:27:24.373 7fe16f8eeb00 -1 librbd::image::PreRemoveRequest: 0x563e1382ec20 check_image_snaps: image has snapshots - not removing7 B5 u4 j0 X! P! k2 I4 V7 y, X( n: X9 }. j
Removing image: 0% complete...failed.
* w# N) ?6 m# J- h& orbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.8 K; p7 F+ d2 ]: ^! m1 {: x  a
[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc$ @/ u* {5 N: z
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
4 @/ m. M$ }* J% b6 cRemoving all snapshots: 0% complete...failed.6 c, P  j/ [2 g8 B

* k5 |9 a. r, r[root@compute01 ~]# rbd snap unprotect -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc@snap' c% m7 w1 p- G" P7 v
[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
8 }5 w* ]3 b2 [" R. ^+ r9 nRemoving all snapshots: 100% complete...done.
% B7 ]9 u% C* i) q/ `[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc
6 Z* t+ C. Y' y6 R1 W2 \Removing image: 100% complete...done.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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