LVM freeze when using vgchange on split mirror
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Step to reproduce:
1. Create a VG with 2 disks.
2. Use lvcreate -m1 --mirrorlog mirrored -L 512M -n test vgTest
3. Use mkfs on the volume
4. Write some file and unplug one disk.
5. Unplug the other disk.
6. umount device, force removal using dmsetup remove -f on stuck devices.
7. dmsetup table shows nothing.
8. Plug back one disk.
9. Use vgchange -ay
10. Any LVM command will end in deadlock even after removing the disk.
Stack from dmesg:
[116167.589417] INFO: task vgchange:13916 blocked for more than 120 seconds.
[116167.589422] Tainted: G OE 3.16.0-38-generic #52~14.04.1-Ubuntu
[116167.589423] "echo 0 > /proc/sys/
[116167.589424] vgchange D ffff88032ee930c0 0 13916 11903 0x00000004
[116167.589428] ffff8800370539a0 0000000000000086 ffff88017fa1b2f0 ffff880037053fd8
[116167.589430] 00000000000130c0 00000000000130c0 ffff88012ae07010 ffff88032ee939c0
[116167.589432] ffff88017fa1b2f0 7fffffffffffffff ffff88017fa1b2f0 0000000000000000
[116167.589434] Call Trace:
[116167.589441] [<ffffffff81769
[116167.589443] [<ffffffff81768
[116167.589448] [<ffffffff81355
[116167.589453] [<ffffffff8101b
[116167.589456] [<ffffffff810d9
[116167.589458] [<ffffffff8176a
[116167.589462] [<ffffffff815ed
[116167.589465] [<ffffffff8176a
[116167.589468] [<ffffffff810a1
[116167.589471] [<ffffffff815ee
[116167.589473] [<ffffffff81769
[116167.589475] [<ffffffff8176a
[116167.589479] [<ffffffff81101
[116167.589481] [<ffffffff815ee
[116167.589483] [<ffffffff815ed
[116167.589485] [<ffffffff815ed
[116167.589489] [<ffffffffc0d6a
[116167.589491] [<ffffffff810d4
[116167.589493] [<ffffffffc0d80
[116167.589496] [<ffffffff815e9
[116167.589499] [<ffffffff815e7
[116167.589501] [<ffffffff815ec
[116167.589503] [<ffffffff815ec
[116167.589505] [<ffffffff815ed
[116167.589508] [<ffffffff812d7
[116167.589511] [<ffffffff815ed
[116167.589515] [<ffffffff811e7
[116167.589519] [<ffffffff812ec
[116167.589520] [<ffffffff812d6
[116167.589522] [<ffffffff812d4
[116167.589524] [<ffffffff811e7
[116167.589528] [<ffffffff8176d
[116167.589531] INFO: task lvs:14000 blocked for more than 120 seconds.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: linux-image-
ProcVersionSign
Uname: Linux 3.16.0-38-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
Date: Tue Jun 9 18:57:10 2015
ProcEnviron:
LANGUAGE=en_CA
TERM=xterm
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: linux-lts-utopic
UpgradeStatus: Upgraded to trusty on 2014-03-25 (441 days ago)
Jérôme Poulin, thank you for reporting this and helping make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1463612