Bug 239779
Summary: | lvm2-monitor initscript produces invalid VG errors | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Milan Broz <mbroz> | ||||
Component: | lvm2 | Assignee: | Petr Rockai <prockai> | ||||
Status: | CLOSED ERRATA | QA Contact: | Corey Marthaler <cmarthal> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.5 | CC: | agk, casmith, djuran, dwysocha, jbrassow, pvrabec, roel.teuwen | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | RHBA-2007-0753 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-11-15 15:58:32 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: | |||||||
Attachments: |
|
Description
Milan Broz
2007-05-11 10:31:45 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. In the lvm2-monitor init script, the volume groups are enumerated wrongly because 'vgs --noheadings -o name' print a WARNING is various cases, in my case with clustered lvm volume group at this stage in the init sequence. start() { ret=0 # TODO do we want to separate out already active groups only? VGS=`vgs --noheadings -o name` for vg in $VGS do action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg | | ret=$? done return $ret } Please fix the script as soon as possible. already fixed in CVS: start() { ret=0 # TODO do we want to separate out already active groups only? VGS=`vgs --noheadings -o name 2> /dev/null` for vg in $VGS do action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$? done return $ret } Created attachment 160319 [details]
lvm2-mon-initscript-workaround.patch
If you need to fix the initscript alone (without patching the lvm programs),
you can use a simple hack using grep -v to suppress the problematic output.
Current CVS has a proper fix and the 2> /dev/null is enough to silence the
initscript (and the fix will be part of the next RHEL update).
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 the 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-2007-0753.html |