Dear all,

I have a rbd image that I can't delete. It contains a snapshot that is
"busy"

# rbd --pool openstack-images rm
2383ba62-b7ab-4964-a776-fb3f3723aabe-deleted
2014-03-04 14:02:04.062099 7f340b2d5760 -1 librbd: image has snapshots -
not removing
Removing image: 0% complete...failed.
rbd: image has snapshots - these must be deleted with 'rbd snap purge'
before the image can be removed.

# rbd --pool openstack-images snap purge
2383ba62-b7ab-4964-a776-fb3f3723aabe-deleted
Removing all snapshots: 0% complete...failed.
rbd: removing snaps failed: (16) Device or resource busy
2014-03-04 14:03:27.311437 7f1991622760 -1 librbd: removing snapshot from
header failed: (16) Device or resource busy

Question, how do I found out what is accessing this snapshot?

Running the same command with --debug-rbd 20 --debug-ms 1 shows the
following

2014-03-04 13:57:27.664394 7fde6fe9a760  1 -- 192.168.116.24:0/1022718 -->
192.168.116.24:6806/2328 -- osd_op(client.15303529.0:9
rbd_header.182314483bf74 [call rbd.snapshot_remove] 10.ffd20474 e21337) v4
-- ?+0 0x1e5b9f0 con 0x1e5c940
2014-03-04 13:57:27.665500 7fde69ee7700  1 -- 192.168.116.24:0/1022718 <==
osd.1 192.168.116.24:6806/2328 6 ==== osd_op_reply(9
rbd_header.182314483bf74 [call] v0'0 uv0 ondisk = -16 (Device or
resourRemoving all snapshots: 0% complete...failed.7fde40001080 con
0x1e5c940


Can anyone explain?

- WP
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to