Summary: | Provide criteria-based LVM reporting | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Peter Rajnoha <prajnoha> |
Component: | lvm2 | Assignee: | Peter Rajnoha <prajnoha> |
lvm2 sub component: | Command-line tools (RHEL6) | QA Contact: | Cluster QE <mspqa-list> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | agk, bmarzins, bmr, cmarthal, dwysocha, heinzm, jbrassow, jonathan, lvm-team, msnitzer, nperic, prajnoha, prockai, teigland, thornber, zkabelac |
Version: | 6.6 | Keywords: | FutureFeature |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | lvm2-2.02.107-1.el6 | Doc Type: | Enhancement |
Doc Text: |
Feature:
Criteria-based LVM reporting.
Reason:
When there are numerous VGs/LVs to manage, it may be impractical to handle them as the output from LVM reporting tools may be long enough for the user to read it quickly and efficiently. Also, when using output from LVM reporting tools in scripts, it's usually required to process only the lines we're interested in - most of the time this was accomplished by use of external tools to select proper lines (e.g. grep) from the outpout which was then processed further. This approach caused various problems, including dependencies on external tools and also most of the time there was a need to change the script itself if LVM changed the output or formatting in some way. This posed extra effort to handle LVM output efficiently and correctly. Criteria-based reporting provides a built-in selection of lines to be reported by LVM reporting command.
Result:
LVM reporting commands (pvs/vgs/lvs/pvdisplay/vgdisplay/lvdisplay/lvm devtypes) now understand new -S/--select SelectionCriteria option where SelectionCriteria are criteria constructed by using reporting field names, restricting field values we're interested in by using comparison operators and creating more complex criteria by using grouping and logical operators.
|
Story Points: | --- |
Clone Of: | 867376 | Environment: | |
Last Closed: | 2014-10-14 08:25:16 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: |
Description
Peter Rajnoha
2014-06-24 08:00:33 UTC
There's quite extensive test in LVM test suite already: https://git.fedorahosted.org/cgit/lvm2.git/tree/test/shell/report-select.sh Marking verified (Sanity Only), I went through a few of these and verified that they work. We'll try and integrate this into our tests for even more regression coverage in the future. 2.6.32-495.el6.x86_64 lvm2-2.02.109-1.el6 BUILT: Tue Aug 5 10:36:23 CDT 2014 lvm2-libs-2.02.109-1.el6 BUILT: Tue Aug 5 10:36:23 CDT 2014 lvm2-cluster-2.02.109-1.el6 BUILT: Tue Aug 5 10:36:23 CDT 2014 udev-147-2.57.el6 BUILT: Thu Jul 24 08:48:47 CDT 2014 device-mapper-1.02.88-1.el6 BUILT: Tue Aug 5 10:36:23 CDT 2014 device-mapper-libs-1.02.88-1.el6 BUILT: Tue Aug 5 10:36:23 CDT 2014 device-mapper-event-1.02.88-1.el6 BUILT: Tue Aug 5 10:36:23 CDT 2014 device-mapper-event-libs-1.02.88-1.el6 BUILT: Tue Aug 5 10:36:23 CDT 2014 device-mapper-persistent-data-0.3.2-1.el6 BUILT: Fri Apr 4 08:43:06 CDT 2014 cmirror-2.02.109-1.el6 BUILT: Tue Aug 5 10:36:23 CDT 2014 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. http://rhn.redhat.com/errata/RHBA-2014-1387.html |