Discussion:
[ceph-users] Cannot remove rbd locks
Christoph Adomeit
2016-03-18 15:14:00 UTC
Permalink
Hi,

some of my rbds show they have an exclusive lock.

I think the lock can be stale or weeks old.

We have also once added feature exclusive lock and later removed that feature

I can see the lock:

***@machine:~# rbd lock list vm-114-disk-1
There is 1 exclusive lock on this image.
Locker ID Address
client.71260575 auto 140454012457856 10.67.1.14:0/1131494432

iBut I cannot remove the lock:

***@machine:~# rbd lock remove vm-114-disk-1 auto client.71260575
rbd: releasing lock failed: (2) No such file or directory

How can I remove the locks ?

Thanks
Christoph
Jason Dillaman
2016-03-18 18:31:44 UTC
Permalink
Try the following:

# rbd lock remove vm-114-disk-1 "auto 140454012457856" client.71260575
--
Jason Dillaman


----- Original Message -----
Sent: Friday, March 18, 2016 11:14:00 AM
Subject: [ceph-users] Cannot remove rbd locks
Hi,
some of my rbds show they have an exclusive lock.
I think the lock can be stale or weeks old.
We have also once added feature exclusive lock and later removed that feature
There is 1 exclusive lock on this image.
Locker ID Address
client.71260575 auto 140454012457856 10.67.1.14:0/1131494432
rbd: releasing lock failed: (2) No such file or directory
How can I remove the locks ?
Thanks
Christoph
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Christoph Adomeit
2016-03-21 10:29:04 UTC
Permalink
Zhanks Jaseon,

this worked ...
Post by Jason Dillaman
# rbd lock remove vm-114-disk-1 "auto 140454012457856" client.71260575
--
Jason Dillaman
----- Original Message -----
Sent: Friday, March 18, 2016 11:14:00 AM
Subject: [ceph-users] Cannot remove rbd locks
Hi,
some of my rbds show they have an exclusive lock.
I think the lock can be stale or weeks old.
We have also once added feature exclusive lock and later removed that feature
There is 1 exclusive lock on this image.
Locker ID Address
client.71260575 auto 140454012457856 10.67.1.14:0/1131494432
rbd: releasing lock failed: (2) No such file or directory
How can I remove the locks ?
Thanks
Christoph
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
--
Christoph Adomeit
GATWORKS GmbH
Reststrauch 191
41199 Moenchengladbach
Sitz: Moenchengladbach
Amtsgericht Moenchengladbach, HRB 6303
Geschaeftsfuehrer:
Christoph Adomeit, Hans Wilhelm Terstappen

***@gatworks.de Internetloesungen vom Feinsten
Fon. +49 2166 9149-32 Fax. +49 2166 9149-10
Loading...