Bug 1232054
| Summary: | pvdisplay -C -o pv_uuid <device> modifies .cache, preventing system from booting | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Marcus West <mwest> |
| Component: | lvm2 | Assignee: | Peter Rajnoha <prajnoha> |
| lvm2 sub component: | Devices, Filtering and Stacking (RHEL6) | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | unspecified | CC: | agk, cmarthal, heinzm, jbrassow, mjuricek, msnitzer, prajnoha, prockai, tlavigne, zkabelac |
| Version: | 6.6 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.111-2.el6_6.5 | Doc Type: | Bug Fix |
| Doc Text: |
Cause:
Regression in calling LVM reporting commands while reporting Physical Volume Label Fields only (see also pvs -o help for the exact list of such fields) and while directly enumerating devices to report.
Consequence:
Incorrect persistent cache file (/etc/lvm/cache/.cache) was generated which contained entries only for devices which were enumerated on command line, ignoring all the other devices. Subsequent LVM commands used this incorrect persistent cache file causing some devices to be ignored by LVM.
Fix:
Functionality has been reinstated to original behaviour - the persistent cache file is not updated in case we're just processing devices enumerated on command line to be processed by reporting commands since that would generate persistent cache file with entries only for devices enumerated on command line and ignoring all the others.
Result:
Persistent cache file is correctly handled even if we use reporting commands where devices to process are enumerated, not causing subsequent commands to fail to see other devices.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-08-24 07:49:51 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
Marcus West
2015-06-16 00:25:07 UTC
Upstream fix in 2.02.117: http://www.redhat.com/archives/lvm-devel/2015-February/msg00242.html Fix is already present in RHEL 6.7. Scratch build to try: https://brewweb.devel.redhat.com/taskinfo?taskID=9500372. We reproduced and this build fixes the issue as reported here. Test is as stated: rm .cache pvdisplay -C -o pv_uuid /dev/whatever Check that .cache file did NOT get created by the pvdisplay Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1655.html |