Skip to contentSkip to conversation

Reg concurrent access through lvmapp api

DISCUSSION Lakshmi Narasimhan Sundararajan 1 participant 1 message Aug 12, 2019 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Gentle reminder? I would sincerely appreciate clarification on the below.

Regards
LN
Sent from Mail for Windows 10

From: Lakshmi Narasimhan Sundararajan
Sent: Friday, August 9, 2019 12:22 PM
To: [email protected]
Subject: Reg concurrent access through lvmapp api

Hi Team,
Is concurrent access to operations on lvm through lvm2app api possible?
I expected lvm2app api call to be self aware of multiple operations and lock access internal, but I see some crash while doing device creation/deletion and query in parallel.

So my question is, are basic crud (create/read/update and delete) operations on a vg safe to be operated concurrently through the lvm2app api calls? If not, what kind of restrictions does the end app needs to know while using lvm2app api calls?

I also understand that the cli uses a /run/lvm/lvm.lock file to control concurrent access. So does it imply that applications have to enforce serialization? If yes, what are the cases for which this needs to be enforced.

Seeking some clarity on the same.

Regards
LN
Sent from Mail for Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20190812/4c1df0fb/attachment.htm>