Bug 1468355
| Summary: | pvscan fails "No matching physical volumes found" when lock operations are on going on other node | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
| lvm2 sub component: | LVM lock daemon / lvmlockd | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED WONTFIX | Docs Contact: | |
| Severity: | low | ||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, prajnoha, teigland, zkabelac |
| Version: | 7.4 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-01-15 07:39:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Corey Marthaler
2017-07-06 19:41:16 UTC
The issue here is that the global lock is held for the duration of vgcreate, and vgcreate can take longer (with sanlock) than the default lock retry timeout used by other nodes: # lvmconfig --type default --withcomments global/lvmlockd_lock_retries # Configuration option global/lvmlockd_lock_retries. # Retry lvmlockd lock requests this many times. # Applicable only if LVM is compiled with lockd support # This configuration option has an automatic default value. # lvmlockd_lock_retries=3 Three retries is usually enough to hide incidental lock conflicts when nodes happen to be running concurrent commands requesting conflicting locks, because most locks are held for short periods. vgcreate is the main exception where a lock is held for a longer time. I've been intending to split up the sanlock operations in vgcreate so that the long part is done outside of the global lock. One way to confirm that this is really what's happening is to increase the retries for the given command, e.g. pvscan --config global/lvmlockd_lock_retries=10 After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |