Bug 118990 - Computer hangs when unmounting an LVM snapshot & quickly lvremove'ing it
Summary: Computer hangs when unmounting an LVM snapshot & quickly lvremove'ing it
Keywords:
Status: CLOSED DUPLICATE of bug 109497
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 1
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-23 17:30 UTC by Need Real Name
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:02:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2004-03-23 17:30:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031114

Description of problem:
I wrote a script to make nightly backups by taking a LVM snapshot.
This usually works but, sometimes the machine gets (almost) completely
locked up. After some research, I think the problem is some kind of
race when doing a lvremove -f immediately after unmounting the snapshot.

Here is part of my script:

lvcreate -l 250 -s -n mysnap /dev/vg00/var
mount -o ro /dev/vg00/mysnap /mnt/snapshot
dump ...
umount /mnt/snapshot
lvremove -f /dev/vg00/mysnap

When locked, I can still ping the machine, and TCP handshaking seems
to work to some point, but no more (All network services time out
eventually). Also, keyboard and mouse don't respond.

Meanwhile, I inserted a 'sleep 5' between unmount and lvremove as a
workaround. I hope it will do the trick.

Our machine has 2 physical processors, with hyperthreading enabled on
both.

Version-Release number of selected component (if applicable):
kernel-smp-2.4.22-1.2174.nptl, lvm-1.0.3-13

How reproducible:
Sometimes

Steps to Reproduce:
1. lvcreate -l num -s -n blah /dev/vg00/blah
2. mount /dev/vg00/blah /mnt/blah
3. umount /mnt/blah
4. lvremove -f /dev/vg00/blah
    

Actual Results:  The computer got locked up. I can't tell for sure if
an oops ocurred, since the console is blanked and the keyboard doesn't
respond.

Expected Results:  Well...

Additional info:

This is a 4 way machine (2 hyperthreaded Xeons)

Comment 1 Need Real Name 2004-04-14 16:21:12 UTC

*** This bug has been marked as a duplicate of 109497 ***

Comment 2 Red Hat Bugzilla 2006-02-21 19:02:07 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


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