lvm - freeze any lvm command after lvremove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 |
New
|
Undecided
|
Unassigned | ||
lvm2 (Debian) |
Fix Released
|
Unknown
|
|||
lvm2 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
udev (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1. Ubuntu - 12.10 quantal
2. lvm2 - 2.02.95-4ubuntu1
While deleting multiple snupshots, LVM get error. Any lvm command after the results freez.
Reproduse:
cat /dev/zero | dd of=./my_test_pv.bin bs=1M count=1024
losetup /dev/loop0 ./my_test_pv.bin
pvcreate /dev/loop0
vgcreate my_test_vg /dev/loop0
lvcreate my_test_vg --name test_lv_01 --size 100M
lvcreate my_test_vg --name test_lv_02 --size 100M
lvcreate my_test_vg --name test_lv_03 --size 100M
lvcreate my_test_vg --name test_lv_04 --size 100M
for i in 01 02 03 04; do lvcreate -s /dev/my_
Logical volume "SS-01" created
Logical volume "SS-02" created
Logical volume "SS-03" created
Logical volume "SS-04" created
lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
SS-01 my_test_vg swi-a-s- 64,00m test_lv_01 0,00
SS-02 my_test_vg swi-a-s- 64,00m test_lv_02 0,00
SS-03 my_test_vg swi-a-s- 64,00m test_lv_03 0,00
SS-04 my_test_vg swi-a-s- 64,00m test_lv_04 0,00
test_lv_01 my_test_vg owi-a-s- 100,00m
test_lv_02 my_test_vg owi-a-s- 100,00m
test_lv_03 my_test_vg owi-a-s- 100,00m
test_lv_04 my_test_vg owi-a-s- 100,00m
lvremove /dev/my_
Unable to deactivate open my_test_
Failed to resume SS-01.
Internal error: Writing metadata in critical section.
Internal error: Performing unsafe table load while 1 device(s) are known to be suspended: (252:1)
Internal error: Performing unsafe table load while 1 device(s) are known to be suspended: (252:7)
Internal error: Writing metadata in critical section.
Logical volume "SS-02" successfully removed
Internal error: Writing metadata in critical section.
Internal error: Performing unsafe table load while 1 device(s) are known to be suspended: (252:2)
Internal error: Performing unsafe table load while 1 device(s) are known to be suspended: (252:10)
Internal error: Writing metadata in critical section.
Logical volume "SS-03" successfully removed
Internal error: Writing metadata in critical section.
Internal error: Performing unsafe table load while 1 device(s) are known to be suspended: (252:3)
Internal error: Performing unsafe table load while 1 device(s) are known to be suspended: (252:13)
Internal error: Writing metadata in critical section.
Logical volume "SS-04" successfully removed
libdevmapper exiting with 1 device(s) still suspended.
lvs <- at this moment console freez... ctrl+c does not help
-------
in second console:
dmsetup info /dev/mapper/
Name: my_test_
State: SUSPENDED
Read Ahead: 256
Tables present: LIVE & INACTIVE
Open count: 2
Event number: 0
Major, minor: 252, 0
Number of targets: 1
UUID: LVM-e84Pj8WjgMK
Name: my_test_
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 0
Major, minor: 252, 1
Number of targets: 1
UUID: LVM-e84Pj8WjgMK
Name: my_test_
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 0
Major, minor: 252, 2
Number of targets: 1
UUID: LVM-e84Pj8WjgMK
Name: my_test_
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 0
Major, minor: 252, 3
Number of targets: 1
UUID: LVM-e84Pj8WjgMK
my_test_
dmsetup resume /dev/mapper/
at this momen lvs comman in first console unfreez
-------
console 1
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
SS-01 my_test_vg -wi-a--- 64,00m
test_lv_01 my_test_vg -wi-a--- 100,00m
test_lv_02 my_test_vg -wi-a--- 100,00m
test_lv_03 my_test_vg -wi-a--- 100,00m
test_lv_04 my_test_vg -wi-a--- 100,00m
repeat lvremove
lvremove /dev/my_
Logical volume "SS-01" successfully removed
I repeated the process with lvremove -vvvvv
output attached
tags: | added: 12.04 12.10.13.04 |
Changed in lvm2 (Debian): | |
status: | Unknown → Fix Released |
summary: |
- lvm - freez any lvm command after lvremove + lvm - freeze any lvm command after lvremove |
Affected distro:
- Ubuntu 12.04 LTS (Precise Pangolin)
- Ubuntu 12.10 (Quantal Quetzal)
- Ubuntu 13.04 (Raring Ringtail)