Re: RBD Exclusive lock to shared lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 24, 2022 at 11:06 AM Budai Laszlo <laszlo.budai@xxxxxxxxx> 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@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux