creating LVM snapshot using lvcreate hangs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
lvcreate command hangs while taking a snapshot of root file system. Running strace on hang process reports that process is hung doing semop. I am using ubuntu 14.04.
Package used:
Package: lvm2
Version: 2.02.98-6ubuntu2
Architecture: amd64
Kernel:
ubuntu-test:~$ uname -a
Linux ubuntu-test 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Command outputs:
test@ubuntu-test:$ sudo lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
TestVolume TestGroup -wi-ao--- 20.00g
test_iso_lv test_root_vg -wi-ao--- 3.00g
test_log_lv test_root_vg -wi-ao--- 2.00g
test_root_lv test_root_vg owi-aos-- 9.95g
test_
test_swap_lv test_root_vg -wi-ao--- 16.00g
test@ubuntu-test:$ sudo lvdisplay
--- Logical volume ---
LV Path /dev/TestGroup/
LV Name TestVolume
VG Name TestGroup
LV UUID F3HgjF-
LV Write Access read/write
LV Creation host, time ubuntu, 2015-06-22 20:54:19 +0000
LV Status available
# open 1
LV Size 20.00 GiB
Current LE 5119
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Path /dev/test_
LV Name test_root_lv
VG Name test_root_vg
LV UUID am2iU8-
LV Write Access read/write
LV Creation host, time ubuntu, 2015-06-22 20:54:19 +0000
LV snapshot status source of
LV Status available
# open 1
LV Size 9.95 GiB
Current LE 2548
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Path /dev/test_
LV Name test_log_lv
VG Name test_root_vg
LV UUID S9QDl1-
LV Write Access read/write
LV Creation host, time ubuntu, 2015-06-22 20:54:19 +0000
LV Status available
# open 1
LV Size 2.00 GiB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
--- Logical volume ---
LV Path /dev/test_
LV Name test_swap_lv
VG Name test_root_vg
LV UUID 1j508M-
LV Write Access read/write
LV Creation host, time ubuntu, 2015-06-22 20:54:19 +0000
LV Status available
# open 2
LV Size 16.00 GiB
Current LE 4096
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:3
--- Logical volume ---
LV Path /dev/test_
LV Name test_iso_lv
VG Name test_root_vg
LV UUID SYM3KQ-
LV Write Access read/write
LV Creation host, time ubuntu, 2015-06-22 20:54:20 +0000
LV Status available
# open 1
LV Size 3.00 GiB
Current LE 768
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:4
--- Logical volume ---
LV Path /dev/test_
LV Name test_root_
VG Name test_root_vg
LV UUID zzBMia-
LV Write Access read/write
LV Creation host, time ubuntu-test, 2015-06-23 18:52:06 +0000
LV snapshot status active destination for test_root_lv
LV Status available
# open 0
LV Size 9.95 GiB
Current LE 2548
COW-table size 9.95 GiB
COW-table LE 2548
Allocated to snapshot 0.03%
Snapshot chunk size 4.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:5
This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.