admin 发表于 2024-5-12 08:52:10

ceph 存储librbd: image has watchers - not removing Removing image: 0% complete...f

# rbd ls -p rbd |grep bak
volume-72615737-3638-4b84-82d1-e9fcaf717cb7-bak
volume-727d6443-0586-4f36-bcd8-5c967eb49de3-bak2
volume-8d78d08a-06ff-492f-a4f0-1bc66f425f04-bak
volume-cd4d3190-0d51-4e81-aa2d-4354868361f8-bak2
volume-e46ede5a-a8a6-4ca6-9df5-b69a73e7ed2d-bak
You have mail in /var/spool/mail/root
# rbd rm rbd/volume-e46ede5a-a8a6-4ca6-9df5-b69a73e7ed2d-bak
2024-05-12 08:38:39.614826 7f822a362d80 -1 librbd: image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
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.
# rbd unmap rbd/volume-e46ede5a-a8a6-4ca6-9df5-b69a73e7ed2d-bak
rbd: rbd/volume-e46ede5a-a8a6-4ca6-9df5-b69a73e7ed2d-bak@-: not a mapped image or snapshot
rbd: unmap failed: (22) Invalid argument
You have mail in /var/spool/mail/root

# rbd status rbd/volume-e46ede5a-a8a6-4ca6-9df5-b69a73e7ed2d-bak
Watchers:
        watcher=12.24.14.5:0/3111163022 client.15216805 cookie=140337922182464
You have mail in /var/spool/mail/root


# ceph osd blacklist ls
listed 0 entries
# ceph osd blacklist add 12.24.14.5:0/3111163022
blacklisting 12.24.14.5:0/3111163022 until 2024-05-12 09:41:59.089772 (3600 sec)
You have mail in /var/spool/mail/root
# ceph osd blacklist ls
listed 1 entries
12.24.14.5:0/3111163022 2024-05-12 09:41:59.089772
# rbd rm rbd/volume-e46ede5a-a8a6-4ca6-9df5-b69a73e7ed2d-bak
Removing image: 100% complete...done.
You have mail in /var/spool/mail/root
# rbd rm rbd/volume-72615737-3638-4b84-82d1-e9fcaf717cb7-bak
Removing image: 100% complete...done.
You have mail in /var/spool/mail/root
# ceph osd blacklist ls
listed 1 entries
12.24.14.5:0/3111163022 2024-05-12 09:41:59.089772
You have mail in /var/spool/mail/root
# ceph osd blacklist rm12.24.14.5:0/3111163022
un-blacklisting 12.24.14.5:0/3111163022
# ceph osd blacklist ls
listed 0 entries



问题解决。

页: [1]
查看完整版本: ceph 存储librbd: image has watchers - not removing Removing image: 0% complete...f