On Thu, Mar 24, 2022 at 11:06 AM Budai Laszlo <laszlo.bu...@gmail.com> wrote:
>
> Hi all,
>
> is there any possibility to turn an exclusive lock into a shared one?
>
> for instance if I map a device with "rbd map testimg --exclusive" then is 
> there any way to switch that lock to a shared one so I can map the rbd image 
> on an other node as well?

Hi Laszlo,

No, it's not possible.  In order for the lock to be gracefully
released, you would need to unmap that device.

>
> How can we see whether a lock is exclusive or shared? the rbd lock ls command 
> output looks identical for the two cases.

You can't.  The way --exclusive is implemented is the client simply
refuses to release the lock when it gets the request to do so.  This
isn't tracked on the OSD side in any way so "rbd lock ls" doesn't have
that information.

Thanks,

                Ilya
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to