Skip to contentSkip to conversation

Ignoring locks with the lvm2app API

linux-lvm Marius Vollmer 1 participant 1 message Jan 28, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

I find myself in the situation where I want to scan the current LVM2 setup (what volumegroups exist, their logical volumes, etc) without risking to lock.

That brings me to some questions:

- What's the worst thing that can happen when ignoring locks while listing logical volumes, reading their properties with the lvm2app library? Can I do this in a system daemon? A crash of my process would be OK, as would be getting temprarily inconsistent information. Permanent damage to the system configuration would not be OK, obviously.

- How would I actually best go about ignoring locks? I found some comments in lvm2app about "better support for locking control", so I guess it is not really supported right now. I could have a go at improving this. Would that be worthwhile? Any advice?