- Issued:
- 2009-01-20
- Updated:
- 2009-01-20
RHBA-2009:0179 - Bug Fix Advisory
Synopsis
lvm2 bug-fix and enhancement update
Type/Severity
Bug Fix Advisory
Red Hat Insights patch analysis
Identify and remediate systems affected by this advisory.
Topic
An updated lvm2 package that fixes several bugs and adds enhancements is
now available.
Description
The lvm2 package contains support for Logical Volume Management (LVM).
This updated package applies the following bug fixes:
- fixes vgchange to not activate mirror leg and log volumes directly.
- correct configuration file line numbers in messages when parsing comments.
- missing deactivation after activation failure in "lvcreate -Zy".
- avoid spurious, duplicate VG messages referring to VGs that are gone.
- temporarily disable dmeventd mirror monitoring during "lvchange --resync".
- fixes mirror upconvert for active mirrors.
- does not touch "/dev" in vgrename if activation is disabled.
- metadata corruption if writing LVM1-formatted metadata with snapshots.
- avoids overwriting in-use on-disk text metadata.
- vgdisplay "Cur LV" field to match lvdisplay output.
- lv_count report field to exclude hidden LVs.
- lvresize now supports "/dev/mapper" prefix in the LV name.
- fixes pvs, vgs, and lvs error exit statuses on some error paths.
- prevents overwriting PVs with no metadata areas belonging to active VGs.
- attempts to remove incomplete LVs with lvcreate zeroing/activation problems.
- lvmdump to check for lvm and dmsetup binaries.
- strdup memory and file descriptor leaks.
- fixes pvresize to not allow resize if PV has two metadata areas.
- fixes setting of volume limit count if converting to lvm1 format.
- fixes lvmdump metadata gather option (-m) to work correctly.
- fixes an allocation bug in text metadata format write error path.
- fixes vgcfgbackup to properly check filename if template on commandline
is used.
- avoids possible endless looping in pvck when analysing metadata.
- changes lvchange exit status to indicate if any part of the operation failed.
- fixes pvchange and pvremove to handle PVs without mdas.
- fixes pvchange -M1 -u to preserve existing extent locations when there's
a VG.
- fixes lvconvert to disallow snapshot and mirror combinations.
- fixes reporting of LV fields alongside unallocated PV segments.
- fixes and improves readahead 'auto' calculation for stripe_size.
- fixes lvchange output for -r auto setting if auto is already set.
- fixes return values for reporting commands when run with no PVs, LVs, or VGs.
- fixes a segfault when using pvcreate on a device containing pool metadata.
- fixes snapshot monitoring library to not cancel monitoring invalid
snapshot to avoid activation timeouts.
- no longer writes out PARTIAL flag into metadata backups.
- fixes and updates to man pages
As well, this updated package adds the following enhancements:
- vgreduce now require --force with --removemissing to remove LVs and
dependent snapshots that were partly on the missing disks.
- relies upon internally-cached PV labels.
- caches VG metadata internally.
- avoids repeatedly wiping cache with superfluous metadata re-reads in
vgscan & pvscan.
- add devices/md_chunk_alignment to lvm.conf to enable alignment of LVs to
underlying MD (Multiple Device) chunk size
- show "not usable" space when PV is too large for devices in pvdisplay.
- new fsadm utility to resize or check file systems on a device.
- validation of LV name to "pvmove -n".
- escapes double quotes and backslashes in external metadata and
configuration data.
- does not use block_on_error with mirror targets versions 1.12 and above.
- lvconvert waits for completion of initial sync by default.
- support for stacked mirrors.
- vgremove tries to remove snapshot LV first.
- backward-compatible flags field to on-disk format_text metadata.
- adds --unquoted, --rows and --nameprefixes to reporting tools.
- adds --force to lvextend and lvresize.
In clustered environments, this fix must be applied along with the
RHBA-2009:8161 lvm2-cluster advisory.
Users of lvm2 are advised to upgrade to this updated package, which
resolves these issues and adds these enhancements.
Solution
Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.
This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/FAQ_58_10188
Affected Products
- Red Hat Enterprise Linux Server 5 x86_64
- Red Hat Enterprise Linux Server 5 ia64
- Red Hat Enterprise Linux Server 5 i386
- Red Hat Enterprise Linux Workstation 5 x86_64
- Red Hat Enterprise Linux Workstation 5 i386
- Red Hat Enterprise Linux Desktop 5 x86_64
- Red Hat Enterprise Linux Desktop 5 i386
- Red Hat Enterprise Linux for IBM z Systems 5 s390x
- Red Hat Enterprise Linux for Power, big endian 5 ppc
- Red Hat Enterprise Linux Server from RHUI 5 x86_64
- Red Hat Enterprise Linux Server from RHUI 5 i386
Fixes
- BZ - 250658 - when lvchange fails on an active mirror, the error code should be non zero
- BZ - 428005 - e2fsadm-equivalent missing for lvm2
- BZ - 443060 - lvconvert -m0 fails when a PV is specified and all extents on the PV are allocated
- BZ - 443419 - [RFE]Update vgsplit to accept -n LogicalVolumeName on the commandline
- BZ - 444795 - pvcreate segfaults when devices had pool labels
- BZ - 445867 - [RHEL5.1] LVM2: activation fails when inconsistent metadata is found
- BZ - 446481 - request for "full snapshot" warnings to be enabled by default
- BZ - 447905 - Error in lvchange(8)
- BZ - 450602 - minor typo in mirror leg warning
- BZ - 452813 - pvdisplay of 250 luns with 4 paths each (1000 paths) takes many hours or days and consumes 4+GB of RAM
- BZ - 452982 - pvchange -x doesn't work for non-mda PVs
- BZ - 453753 - LVM2 allows final MDA to be removed from a VG
- BZ - 454349 - appears that dmevent needs to be restarted
- BZ - 455670 - Mirror to mirror upconvert is broken (especially wrt cluster mirrors)
- BZ - 458941 - vgcfgbackup fails with two similar volumegroup names
- BZ - 461771 - Avoid unnecessary scanning devices multiple times in pv/vgscan
- BZ - 463431 - [RHEL5.3] Excessive LVM volume alignment for MD device
- BZ - 463520 - down convert no longer takes place after dev failure
- BZ - 467435 - Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE
CVEs
(none)
References
(none)
Red Hat Enterprise Linux Server 5
SRPM | |
---|---|
lvm2-2.02.40-6.el5.src.rpm | SHA-256: 30daf31374fd7c49ba3e3066062b10139099db8c93d61ebd9829b1efda16251e |
x86_64 | |
lvm2-2.02.40-6.el5.x86_64.rpm | SHA-256: ab59479994b933312f5b414e0b7e17d3e6aaabb8440ac78b1cb46a53914eb6b5 |
ia64 | |
lvm2-2.02.40-6.el5.ia64.rpm | SHA-256: 427977e41ddc386f4c041f774c62b4f082004557e9d29e23a1977787bb9638c2 |
i386 | |
lvm2-2.02.40-6.el5.i386.rpm | SHA-256: 87a64fc5c1ac19b4d83e35f549fc44a9464ee2d1bdca5f5c97a8c5a5b31459d5 |
Red Hat Enterprise Linux Workstation 5
SRPM | |
---|---|
lvm2-2.02.40-6.el5.src.rpm | SHA-256: 30daf31374fd7c49ba3e3066062b10139099db8c93d61ebd9829b1efda16251e |
x86_64 | |
lvm2-2.02.40-6.el5.x86_64.rpm | SHA-256: ab59479994b933312f5b414e0b7e17d3e6aaabb8440ac78b1cb46a53914eb6b5 |
i386 | |
lvm2-2.02.40-6.el5.i386.rpm | SHA-256: 87a64fc5c1ac19b4d83e35f549fc44a9464ee2d1bdca5f5c97a8c5a5b31459d5 |
Red Hat Enterprise Linux Desktop 5
SRPM | |
---|---|
lvm2-2.02.40-6.el5.src.rpm | SHA-256: 30daf31374fd7c49ba3e3066062b10139099db8c93d61ebd9829b1efda16251e |
x86_64 | |
lvm2-2.02.40-6.el5.x86_64.rpm | SHA-256: ab59479994b933312f5b414e0b7e17d3e6aaabb8440ac78b1cb46a53914eb6b5 |
i386 | |
lvm2-2.02.40-6.el5.i386.rpm | SHA-256: 87a64fc5c1ac19b4d83e35f549fc44a9464ee2d1bdca5f5c97a8c5a5b31459d5 |
Red Hat Enterprise Linux for IBM z Systems 5
SRPM | |
---|---|
lvm2-2.02.40-6.el5.src.rpm | SHA-256: 30daf31374fd7c49ba3e3066062b10139099db8c93d61ebd9829b1efda16251e |
s390x | |
lvm2-2.02.40-6.el5.s390x.rpm | SHA-256: b41737c744955f2555185a8b5a83d9797f1edf767c30f30176548bb3bd101b3f |
Red Hat Enterprise Linux for Power, big endian 5
SRPM | |
---|---|
lvm2-2.02.40-6.el5.src.rpm | SHA-256: 30daf31374fd7c49ba3e3066062b10139099db8c93d61ebd9829b1efda16251e |
ppc | |
lvm2-2.02.40-6.el5.ppc.rpm | SHA-256: 5373bf9de3a704932a59c58981b70c744c970e2ed154f2fa54169aab92445514 |
Red Hat Enterprise Linux Server from RHUI 5
SRPM | |
---|---|
lvm2-2.02.40-6.el5.src.rpm | SHA-256: 30daf31374fd7c49ba3e3066062b10139099db8c93d61ebd9829b1efda16251e |
x86_64 | |
lvm2-2.02.40-6.el5.x86_64.rpm | SHA-256: ab59479994b933312f5b414e0b7e17d3e6aaabb8440ac78b1cb46a53914eb6b5 |
i386 | |
lvm2-2.02.40-6.el5.i386.rpm | SHA-256: 87a64fc5c1ac19b4d83e35f549fc44a9464ee2d1bdca5f5c97a8c5a5b31459d5 |
The Red Hat security contact is secalert@redhat.com. More contact details at https://access.redhat.com/security/team/contact/.