Bug 269541 - Processes hang and system is unrebootable after snapshot invalidation
Summary: Processes hang and system is unrebootable after snapshot invalidation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 6
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-30 21:31 UTC by Philip Spencer
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version: 2.6.22.7-57.fc6
Clone Of:
Environment:
Last Closed: 2007-09-25 22:30:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Philip Spencer 2007-08-30 21:31:23 UTC
Description of problem:

When a snapshot is taken of a logical volume and the snapshot fills up and
has to be invalidated, the process writing to the original volume hangs in an
unkillable wait state. Also, any subsequent processes that query the filesystem
tree hang as well. This includes any attempt to run "reboot" or "shutdown",
meaning the system has to be hard-power-cycled to restore it.

This is fixed upstream and seems to be fixed in the current development kernel
(2.6.23-0.42.rc3.git10.fc8) but that kernel is unusable on a Fedora Core 6
machine (requires a newer mkinitrd that segfaults if run on FC6, and has
numerous other dependency problems). So it would be nice to have an FC6 errata
issued, given that being hit by this bug requires a hard reset to restore normal
operation.

Version-Release number of selected component (if applicable):

kernel 2.6.22.2-42.fc6

How reproducible:

100% reproducible

Steps to Reproduce:
1. lvcreate -L 512M -n testlv vg1 [where vg1=name of a volume group with
     sufficient space)
2. mkfs /dev/vg1/testlv; mkdir /testmnt; mount /dev/vg1/testlv /testmnt
3. lvcreate -s -n testsnap -L 128M /dev/vg1/testlv
4. head -c 200m /dev/zero > /testmnt/largefile  

Actual results:

"Invalidating snapshot" is logged to syslog (as expected).
The "head" process hangs in an unkillable wait state.
Any subsequent process that tries to access low-level filesystem tables also
hangs unkillably. This includes "reboot" and "shutdown".

Expected results:

"Invalidating snapshot" is logged.
The "head" process continues and finishes as normal. 
Other processes all behave as normal as well, except that any attempt to
mount the snapshot or read data from it should give an I/O error.

Additional info:

Fixed in 2.6.23-0.42.rc3.git10.fc8 but that kernel as packaged can't be
installed on an FC6 system.

Comment 1 Chuck Ebbert 2007-08-31 18:39:01 UTC
Patch found, will be in upcoming kernel (but not the next one that's already
submitted for updates-testing.)


Comment 2 Chuck Ebbert 2007-09-14 19:00:17 UTC
In kernel-2.6.22.6-55.fc6, submitted for testing.


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