Bug#698153: lvm2: LVM - kernel 3.6.11 - leaked on lvcreate invocation

Petr Nosek petr.nosek at gmail.com
Mon Jan 14 14:22:26 UTC 2013

Package: lvm2
Version: 2.02.95-4
Severity: important

distro: Raspbian

There is problem with LVM. The latest version works:
root at raspberrypi:/# uname -a
Linux raspberrypi 3.2.27+ #260 PREEMPT Thu Nov 8 00:34:12 GMT 2012 armv6l

now I use this version:
root at raspberrypi:/var/log# uname -a
Linux raspberrypi 3.6.11+ #348 PREEMPT Tue Jan 1 16:33:22 GMT 2013 armv6l

After reboot - these errors:

setting up lvm volume groups
mlock failed cannot allocate memory
munlock failed

After lvcreate:
root at raspberrypi:# lvcreate -L 1G -n test vg2t
File descriptor 8 (pipe:[15832]) leaked on lvcreate invocation. Parent PID
3635: bash
ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors]: mlock failed: Cannot
allocate memory
ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors]: munlock failed: Cannot
allocate memory
Logical volume "test" created

some problems are described here: 

How to reproduce: connect usb disk with lvm and turn of raspberry pi. 
Error is
visible when booting system. There is photo of my screen:

Setting up LVM Volume Groups ... mlock failed: Cannot allocate memory

I'm affraid of data loosing, but i loks like, that disk is readable and

Somebody told me: try to reproduce this with a debian armel and if it's
reproducable, there report it to them. But i don't know how to try it. I 
that somebody has experience with this bug. Maybe - there is missing 
some patch
in raspbian kernel or lvm2.

Can you help?

-- System Information:
Debian Release: 7.0
Architecture: armhf (armv6l)

Kernel: Linux 3.6.11+ (PREEMPT)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmsetup                   2:1.02.74-4
ii  initscripts               2.88dsf-34
ii  libc6                     2.13-37+rpi1
ii  libdevmapper-event1.02.1  2:1.02.74-4
ii  libdevmapper1.02.1        2:1.02.74-4
ii  libgcc1                   1:4.7.2-4+rpi1
ii  libreadline5              5.2+dfsg-1
ii  libudev0                  175-7
ii  lsb-base                  4.1+Debian8

lvm2 recommends no packages.

lvm2 suggests no packages.

-- no debconf information

More information about the pkg-lvm-maintainers mailing list