Bug Fix Advisory lvm2 bug-fix and enhancement update

Advisory: RHBA-2009:0967-1
Type: Bug Fix Advisory
Severity: N/A
Issued on: 2009-05-18
Last updated on: 2009-05-18
Affected Products: Red Hat Desktop (v. 4)
Red Hat Enterprise Linux AS (v. 4)
Red Hat Enterprise Linux ES (v. 4)
Red Hat Enterprise Linux WS (v. 4)
OVAL: N/A

Details

Updated lvm2 packages that fix several bugs and add enhancements are
now available.

The lvm2 packages contain support for Logical Volume Management.

This update applies the following bug fixes:
* Corrects configuration file line numbers in messages when parsing comments.
* Missing deactivation after activation failure in "lvcreate -Zy".
* Temporarily disables dmeventd mirror monitoring during "lvchange --resync".
* Does not touch "/dev" in vgrename if activation is disabled.
* 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 vgcfgbackup to properly check filename if template on command line
is used.
* Avoids possible endless looping in pvck when analyzing 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 race in vgcreate that would result in second caller overwriting first.
* Fixes uninitialized lv_count in vgdisplay -c.
* Copes with snapshot dependencies when removing a whole VG with lvremove.
* Exits with non-zero status from vgdisplay if couldn't show any requested VG.
* Accepts locking fallback_to_* options in the global lvm.conf section as
documented.
* Fixes misleading error message when there are no allocatable extents in VG.
* Fixes handling of PVs which reappeared with old metadata version.
* Fixes validation of --minor and --major in lvcreate to require -My always.
* Avoids shuffling remaining mirror images when removing one, retaining
primary.
* Prevents resizing an LV while lvconvert is using it.
* Fixes vgconvert logical volume id metadata validation.
* Fixes check for PV label write failure.
* Fixes pool metadata reading.
* When removing LV symlinks, skip any where the VG name is not determined.
* Fixes invalidation of cached PV labels including PVs without metadata areas
* Drops cached metadata when metadata write failed or VG is renamed
* Checks if requested minor device number is already used.
* Fixes fsadm failure for file systems with bigger block size.
* Fixes and updates to man pages.

As well, this update adds the following enhancements:
* vgreduce now requires --force with --removemissing to remove LVs and
dependent snapshots that were partly on the missing disks.
* Adds devices/md_chunk_alignment to lvm.conf to enable alignment of LVs to
underlying MD (Multiple Device) chunk size
* Avoids repeatedly wiping internal cache with superfluous metadata
re-reads in vgscan & pvscan.
* Adds --unquoted, --rows and --nameprefixes to reporting tools.
* Adds --force to lvextend and lvresize.
* Warns if command exits with non-zero status code without a prior log_error.
* Stops if any command fails in script-processing mode.
* Allows lvremove to remove LVs from VGs with missing PVs.
* Allows activation of LVs that are complete for VG with PVs missing, by
default.
* Treats new default activation/missing_stripe_filler "error" as an error
target.
* vgremove tries to remove snapshot LV first.
* backward-compatible flags field to on-disk format_text metadata.

In clustered environments, this fix must be applied along with the
RHBA-2009:0054 lvm2-cluster advisory.

Users of lvm2 are advised to upgrade to these updated packages, which
resolve these issues and add 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/docs/DOC-11259

Updated packages

Red Hat Desktop (v. 4)

SRPMS:
lvm2-2.02.42-5.el4.src.rpm
File outdated by:  RHBA-2009:1129
    d95d8f19bb364199ca4e540711bd6d2e
 
IA-32:
lvm2-2.02.42-5.el4.i386.rpm
File outdated by:  RHBA-2009:1129
    ac36d2eb3d43c0a069833c9a7a8765e7
 
x86_64:
lvm2-2.02.42-5.el4.x86_64.rpm
File outdated by:  RHBA-2009:1129
    0d40dd26f3ab47e2b6d14098e0cfbe3a
 
Red Hat Enterprise Linux AS (v. 4)

SRPMS:
lvm2-2.02.42-5.el4.src.rpm
File outdated by:  RHBA-2009:1129
    d95d8f19bb364199ca4e540711bd6d2e
 
IA-32:
lvm2-2.02.42-5.el4.i386.rpm
File outdated by:  RHBA-2009:1129
    ac36d2eb3d43c0a069833c9a7a8765e7
 
IA-64:
lvm2-2.02.42-5.el4.ia64.rpm
File outdated by:  RHBA-2009:1129
    1ca2839c4e6e152a5623ba3993a332b8
 
PPC:
lvm2-2.02.42-5.el4.ppc.rpm
File outdated by:  RHBA-2009:1129
    801dda20378d54e2c22306f359a48e4f
lvm2-2.02.42-5.el4.ppc64.rpm
File outdated by:  RHBA-2009:1129
    b576d4351ff4033683642a6459d20f2d
 
s390:
lvm2-2.02.42-5.el4.s390.rpm
File outdated by:  RHBA-2009:1129
    6c6ac20051de85afdb4b1bad6f43d082
 
s390x:
lvm2-2.02.42-5.el4.s390x.rpm
File outdated by:  RHBA-2009:1129
    f0ace77d6f6a9bc0b9a2d0a6700aba70
 
x86_64:
lvm2-2.02.42-5.el4.x86_64.rpm
File outdated by:  RHBA-2009:1129
    0d40dd26f3ab47e2b6d14098e0cfbe3a
 
Red Hat Enterprise Linux ES (v. 4)

SRPMS:
lvm2-2.02.42-5.el4.src.rpm
File outdated by:  RHBA-2009:1129
    d95d8f19bb364199ca4e540711bd6d2e
 
IA-32:
lvm2-2.02.42-5.el4.i386.rpm
File outdated by:  RHBA-2009:1129
    ac36d2eb3d43c0a069833c9a7a8765e7
 
IA-64:
lvm2-2.02.42-5.el4.ia64.rpm
File outdated by:  RHBA-2009:1129
    1ca2839c4e6e152a5623ba3993a332b8
 
x86_64:
lvm2-2.02.42-5.el4.x86_64.rpm
File outdated by:  RHBA-2009:1129
    0d40dd26f3ab47e2b6d14098e0cfbe3a
 
Red Hat Enterprise Linux WS (v. 4)

SRPMS:
lvm2-2.02.42-5.el4.src.rpm
File outdated by:  RHBA-2009:1129
    d95d8f19bb364199ca4e540711bd6d2e
 
IA-32:
lvm2-2.02.42-5.el4.i386.rpm
File outdated by:  RHBA-2009:1129
    ac36d2eb3d43c0a069833c9a7a8765e7
 
IA-64:
lvm2-2.02.42-5.el4.ia64.rpm
File outdated by:  RHBA-2009:1129
    1ca2839c4e6e152a5623ba3993a332b8
 
x86_64:
lvm2-2.02.42-5.el4.x86_64.rpm
File outdated by:  RHBA-2009:1129
    0d40dd26f3ab47e2b6d14098e0cfbe3a
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

201935 - lvm "--alloc anywhere" hint is worthless with mirrors
204992 - snapshot attempt will fail if requested minor is already in use
446884 - LVM2: activation fails when inconsistent metadata is found
451776 - Man page missing for new fsadm tool
452606 - lvchange -an writes error messages when physical volumes without metadata are used
476692 - vgdisplay returns wrong status code when requested VG not found
476694 - lvm delete message calulates the number of volumes incorrectly
480022 - fsadm fails growing fs with block size != 1K
490004 - Creation of mirrored logical volume with VG extent-size of 1K fails
490417 - When setting max_lv for VG, LV creation can fail and produce invalid metadata
491680 - Documentation update is needed - LVM2 mirror: failed log device isn't replaced.
491902 - vgcfgrestore can segfault if some PV is missing



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/