-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deadlock when issuing concurrent vgcreate/vgremove #23
Comments
Also of note: the lvm.conf I use is different to the one bundled with the RHEL lvm2 rpms, I use a very standard lvm.conf as generated by the |
@tasleson indeed, that looks related. It seems there are still some deadlock issues lurking about. |
This looks identical, actually:
Here the first process is acquiring
...and the second process tries to acquire the volume group lock. If we look at
|
Yeah, |
This is a design problem in lvm locking which uses two "global" locks, uses them inconsistently, and in the wrong places. It is fixed in the lvm 2.03 versions by: |
Version information
URL: https://www.sourceware.org/pub/lvm2/LVM2.2.02.183.tgz
sha1sum:
c73173d73e2ca17da254883968fbd52a6ce5c2a6
Build steps
What were you trying to do?
I remove a volume group using
vgremove
while creating a different volume group with different PVs usingvgcreate
.What happened?
The commands hang both hang. It looks like
vgcreate
tries to acquire a lock whilevgremove
holds it.Steps to reproduce
Note, in the following interleaved logging, process 22112 is
vgcreate
, process 22111 isvgremove
.I'm attaching the interleaved, verbose, debug logs for the processes as sent to journald.
lvm-deadlock.log
The text was updated successfully, but these errors were encountered: