找回密码
 注册
查看: 3250|回复: 2

ceph 中rbd删除数据失败

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-5-26 10:34:00 | 显示全部楼层 |阅读模式
[root@compute01 ~]# rbd rm volume-03a72731-8c6c-4263-a576-4f093f813acb -p vms
+ o# J9 n$ d1 z4 M6 H2021-05-26 10:29:18.708 7f313f7fe700 -1 librbd::image::PreRemoveRequest: 0x55bb24753310 handle_exclusive_lock: cannot obtain exclusive lock - not removing3 o( M( H8 l) k9 V4 `4 Q! e
Removing image: 0% complete...failed., m( K! t) o- X
rbd: error: image still has watchers
  \: L6 L  V. ^" c: W$ Z" L2 OThis means the image is still open or the client using it crashed. Try again after closing/unmapping it or waiting 30s for the crashed client to timeout.1 D) D* t( Q- q; k1 P9 U3 o
) h, {: b8 G0 [( H; A" o
[root@compute01 ~]# rbd unmap vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69* I/ N/ ]) \( \& }" \2 U: J
rbd: vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69: not a mapped image or snapshot* S5 f' U1 F* S3 t' V5 A
rbd: unmap failed: (22) Invalid argument
( Y' V& j3 {/ n7 q. p1 Q4 Q; C  W[root@compute01 ~]# rbd unmap volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69 -p vms) U( K$ [$ n; f2 D
rbd: vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69: not a mapped image or snapshot
- O2 E2 ]. y3 x4 |! I" K' @3 }, orbd: unmap failed: (22) Invalid argument
7 s/ T- F9 {6 u" h. H+ A[root@compute01 ~]# rbd rm volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69 -p vms- A0 I$ k% X7 D1 b& {
Removing image: 100% complete...done.: U5 f$ l3 |4 q" N4 q& J- @
2 {6 `2 `9 R" j- W6 L

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-5-26 11:14:26 | 显示全部楼层
[root@ceph3 ~]# rbd status 15k_pool/disk_12 x! e5 b" G% i! W# [: c! f
Watchers:
7 f+ g) H& _: D7 E! R" O! l        watcher=172.15.6.224:0/1772541243 client.80382 cookie=140632999857568
+ |& y; E  G! b( T; m4 ?' t[root@ceph3 ~]# ceph osd blacklist add 172.15.6.224:0/1772541243
. `# ]0 {3 y* Kblacklisting 172.15.6.224:0/1772541243 until 2020-09-08 16:49:12.426399 (3600 sec)
% ~% G* j, P; j6 b- R0 c% A[root@ceph3 ~]# rbd status 15k_pool/disk_1! {2 N1 X+ s8 C9 y2 m
Watchers: none
9 r+ P3 c# n; `$ Y0 ^- m( I; Z[root@ceph3 ~]# rbd rm 15k_pool/disk_1. `  ^. ^* F; c6 [$ n' Z: @: y9 Z
Removing image: 100% complete...done.

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-5-26 16:57:43 | 显示全部楼层
[root@compute01 ~]# rbd rm 950daf49-c687-4cca-a4ab-cc8aac1c4168 -p images; h/ L* a* ]4 ]* o' V
2021-05-26 16:53:14.850 7f5b49ffb700 -1 librbd::image::PreRemoveRequest: 0x563f09fd04f0 check_image_snaps: image has snapshots - not removing
2 J8 _1 W8 T3 ]" ]; ?Removing image: 0% complete...failed.
0 H$ w* [3 n+ V0 M) ]& A' Yrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.- m! C% O1 ?8 A* ?3 Q
[root@compute01 ~]# rbd rm 950daf49-c687-4cca-a4ab-cc8aac1c4168 -p images, `& u7 i4 L1 z) L
2021-05-26 16:53:37.698 7f90b37fe700 -1 librbd::image::PreRemoveRequest: 0x55c268163500 check_image_snaps: image has snapshots - not removing
5 k+ }$ w5 U0 I; \* M! U+ s, y6 }Removing image: 0% complete...failed.
" I1 t; e! t! u# {! rrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
% h$ A6 z' z! i1 N5 M[root@compute01 ~]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:04 , Processed in 0.017816 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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