Bug 118990
| Summary: | Computer hangs when unmounting an LVM snapshot & quickly lvremove'ing it | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Need Real Name <janderdepeich> |
| Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-02-21 19:02:07 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of 109497 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |
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)