find rbd locks by client IP
Hello, Is there a way to list all locks held by a client with the given IP address? Also, I read somewhere that removing the lock with "rbd lock rm..." automatically blacklists that client connection. Is that correct? How do I blacklist a client with the given IP address? Thanks, Shridhar
On Thu, Jun 25, 2020 at 7:51 PM Void Star Nill <void.star.nill@gmail.com> wrote:
Hello,
Is there a way to list all locks held by a client with the given IP address?
Negative -- you would need to check every image since the locks are tied to the image.
Also, I read somewhere that removing the lock with "rbd lock rm..." automatically blacklists that client connection. Is that correct?
Yes, so long as you haven't changed the default setting of the "rbd_blacklist_on_break_lock" configuration setting.
How do I blacklist a client with the given IP address?
You can use "ceph osd blacklist add <ip address>".
Thanks, Shridhar _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
-- Jason
Thanks so much Jason. On Sun, Jun 28, 2020 at 7:31 AM Jason Dillaman <jdillama@redhat.com> wrote:
On Thu, Jun 25, 2020 at 7:51 PM Void Star Nill <void.star.nill@gmail.com> wrote:
Hello,
Is there a way to list all locks held by a client with the given IP
address?
Negative -- you would need to check every image since the locks are tied to the image.
Also, I read somewhere that removing the lock with "rbd lock rm..." automatically blacklists that client connection. Is that correct?
Yes, so long as you haven't changed the default setting of the "rbd_blacklist_on_break_lock" configuration setting.
How do I blacklist a client with the given IP address?
You can use "ceph osd blacklist add <ip address>".
Thanks, Shridhar _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
-- Jason
participants (2)
-
Jason Dillaman
-
Void Star Nill