Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 244215 - kernel dm snapshot: activating of snapshot marked invalid causes incorrect mapping
kernel dm snapshot: activating of snapshot marked invalid causes incorrect ma...
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Milan Broz
Martin Jenner
: 243130 251326 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2007-06-14 11:33 EDT by Milan Broz
Modified: 2013-02-28 23:05 EST (History)
6 users (show)

See Also:
Fixed In Version: RHBA-2007-0959
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-07 14:53:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0959 normal SHIPPED_LIVE Updated kernel packages for Red Hat Enterprise Linux 5 Update 1 2007-11-07 19:47:37 EST

  None (edit)
Description Milan Broz 2007-06-14 11:33:44 EDT
+++ This bug was initially created as a clone of Bug #244214 +++
RHEL5 clone

Activation of volume group with overfilled snapshot (snapshot marked invalid in
metadata) causes incorrect mapping and causing userspace tools fails.

device-mapper: snapshot is marked invalid
device-mapper: Failed to read snapshot metadata
device-mapper: error adding target to table
  device-mapper: reload ioctl failed: Invalid argument

Snapshot should be "activated" normally but marked invalid only.

Also the mapping table for snapshot in kernel is then incorrect.

Reproducer script:

pvcreate $DEV
vgcreate $VG $DEV
lvcreate -L 100M -n $LV $VG
lvcreate -s -L 4M -n "$LV"_snap $VG/$LV

#overfill snapshot
dd if=/dev/zero of=/dev/$VG/$LV bs=5M count=1

vgchange -a n $VG

#activate VG with invalid snapshot
vgchange -a y $VG

vgchange -a n $VG
lvremove $VG/"$LV"_snap
lvremove $VG/"$LV"
vgremove $VG
pvremove $DEV
Comment 2 RHEL Product and Program Management 2007-06-14 12:54:00 EDT
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
Comment 5 Don Zickus 2007-07-10 12:19:04 EDT
in 2.6.18-33.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5
Comment 7 Milan Broz 2007-07-30 04:48:23 EDT
*** Bug 243130 has been marked as a duplicate of this bug. ***
Comment 8 Milan Broz 2007-09-13 12:46:21 EDT
*** Bug 251326 has been marked as a duplicate of this bug. ***
Comment 10 errata-xmlrpc 2007-11-07 14:53:16 EST
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.


Note You need to log in before you can comment on or make changes to this bug.