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

易陆发现论坛

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

ceph 中rbd删除数据失败

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

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

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

x
[root@compute01 ~]# rbd rm volume-03a72731-8c6c-4263-a576-4f093f813acb -p vms
0 `  b. }9 q$ e4 h- |, _2021-05-26 10:29:18.708 7f313f7fe700 -1 librbd::image::PreRemoveRequest: 0x55bb24753310 handle_exclusive_lock: cannot obtain exclusive lock - not removing8 k3 H! Q- u, z; e1 m
Removing image: 0% complete...failed.% e2 Z: V: t- t6 e
rbd: error: image still has watchers: t0 d+ y0 ?, m0 O# U
This 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.
9 U# _& q2 w* ]8 k5 ]+ Y) h1 P( ~
$ g9 n& h( Q6 ]5 w/ O5 I6 K[root@compute01 ~]# rbd unmap vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b693 e  B# w$ }7 X  h! s: P7 J: c
rbd: vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69: not a mapped image or snapshot  r4 s9 ?) ]* ]1 k* D- ~% R# \
rbd: unmap failed: (22) Invalid argument
$ {- p0 E1 W. {  k% j7 X[root@compute01 ~]# rbd unmap volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69 -p vms7 P# X6 f. h2 o) ^
rbd: vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69: not a mapped image or snapshot
1 [; V3 M; B' Y, v- Drbd: unmap failed: (22) Invalid argument/ T% z4 H( j/ X: |1 z5 h+ ~
[root@compute01 ~]# rbd rm volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69 -p vms' X1 o, v0 f' M( e) V. w
Removing image: 100% complete...done.- D3 R% m) x0 j$ N2 M
% n- B/ H, d7 c6 q; D" e! K4 q
 楼主| 发表于 2021-5-26 11:14:26 | 显示全部楼层
[root@ceph3 ~]# rbd status 15k_pool/disk_1
) c; R5 J* _# B" @: U# E  w' fWatchers:
4 v& e; A. G0 x4 X0 R* Z        watcher=172.15.6.224:0/1772541243 client.80382 cookie=140632999857568
5 y+ _: X  ~2 B! V  D, C0 \[root@ceph3 ~]# ceph osd blacklist add 172.15.6.224:0/1772541243, q/ B4 V; L, Q. E* U
blacklisting 172.15.6.224:0/1772541243 until 2020-09-08 16:49:12.426399 (3600 sec)
' Q, C8 T  I2 N& D/ j  O[root@ceph3 ~]# rbd status 15k_pool/disk_1
* z% z+ H1 e. F5 k, hWatchers: none; e5 M7 z$ i. L- ?. _. }1 e
[root@ceph3 ~]# rbd rm 15k_pool/disk_1
0 p( m$ r& `9 W( C- a: YRemoving image: 100% complete...done.
 楼主| 发表于 2021-5-26 16:57:43 | 显示全部楼层
[root@compute01 ~]# rbd rm 950daf49-c687-4cca-a4ab-cc8aac1c4168 -p images' h8 v9 b1 F, q
2021-05-26 16:53:14.850 7f5b49ffb700 -1 librbd::image::PreRemoveRequest: 0x563f09fd04f0 check_image_snaps: image has snapshots - not removing
: {5 H, U/ E: m( O9 e3 |0 Y4 ZRemoving image: 0% complete...failed.: s3 a3 `, g* b. t, E. C6 g
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
! X" ~! w# Z' h; \! E( D0 B0 h! S: Q[root@compute01 ~]# rbd rm 950daf49-c687-4cca-a4ab-cc8aac1c4168 -p images
7 ]3 r& z# z# R. x2 o' j- j2021-05-26 16:53:37.698 7f90b37fe700 -1 librbd::image::PreRemoveRequest: 0x55c268163500 check_image_snaps: image has snapshots - not removing$ N0 D! T: N! J# L6 }7 w0 d" t
Removing image: 0% complete...failed.* w1 b, T% P0 y/ \. b
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
( |/ l, T! E- O3 T. N) e[root@compute01 ~]#
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2021-6-20 21:31 , Processed in 0.048950 second(s), 23 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

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