Bug 651349
| Summary: | LVM filter regex causes lvm commands to fail | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Milan Broz <mbroz> |
| Component: | device-mapper | Assignee: | Milan Broz <mbroz> |
| Status: | CLOSED ERRATA | QA Contact: | Corey Marthaler <cmarthal> |
| Severity: | medium | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 5.6 | CC: | abaron, agk, antillon.maurizio, coughlan, cpelland, dwysocha, hateya, heinzm, iheim, jbrassow, joe.thornber, junichi.nomura, kueda, lmb, mbroz, mgoldboi, prajnoha, prockai, pvrabec, smizrahi, ykaul |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Filtering with regular expressions (for example when using lvm commands to filter devices) could have failed. This was due to an error in removing a common suffix. With this update, the optimization for common suffixes works correctly.
|
Story Points: | --- |
| Clone Of: | 642575 | Environment: | |
| Last Closed: | 2011-01-13 22:39:23 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 642575 | ||
| Bug Blocks: | |||
|
Description
Milan Broz
2010-11-09 11:01:51 UTC
Patch is part of device-mapper library, fixing component. Fix in device-mapper-1.02.55-2.el5. Fix verified in the latest rpms.
2.6.18-227.el5
lvm2-2.02.74-3.el5 BUILT: Thu Nov 11 02:56:33 CST 2010
lvm2-cluster-2.02.74-3.el5 BUILT: Tue Nov 9 08:01:59 CST 2010
device-mapper-1.02.55-2.el5 BUILT: Tue Nov 9 06:41:00 CST 2010
cmirror-1.1.39-10.el5 BUILT: Wed Sep 8 16:32:05 CDT 2010
kmod-cmirror-0.1.22-3.el5 BUILT: Tue Dec 22 13:39:47 CST 2009
Scan without a filter:
[root@taft-01 ~]# pvscan
PV /dev/sdb1 VG vg1 lvm2 [135.66 GB / 135.54 GB free]
PV /dev/sdc1 VG vg1 lvm2 [135.66 GB / 135.54 GB free]
PV /dev/sdd1 VG vg1 lvm2 [135.66 GB / 135.54 GB free]
PV /dev/sde1 VG vg1 lvm2 [135.66 GB / 135.54 GB free]
Scan with a regex filter:
filter = [ "r|hda|hdc|sdc|" ]
[root@taft-01 ~]# pvscan
Couldn't find device with uuid xQIPUk-CLBd-fJcL-qhGR-TzcR-Iyme-V1gp3G.
PV /dev/sdb1 VG vg1 lvm2 [135.66 GB / 135.54 GB free]
PV unknown device VG vg1 lvm2 [135.66 GB / 135.54 GB free]
PV /dev/sdd1 VG vg1 lvm2 [135.66 GB / 135.54 GB free]
PV /dev/sde1 VG vg1 lvm2 [135.66 GB / 135.54 GB free]
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Filtering with regular expressions (for example when using lvm commands to filter devices) could have failed. This was due to an error in removing a common suffix. With this update, the optimization for common suffixes works correctly.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0051.html |