Bug#740456: [vectors]: munlock failed: Cannot allocate memory, confirmation on Wheezy 7.5 ARM

jeanmarc.lacroix at free.fr jeanmarc.lacroix at free.fr
Tue Jun 17 04:47:14 UTC 2014


Hi,

I confirm this problem on Cubieboard 1 (SocA10) with Debian Wheezy 7.5 and kernel


root at cubie:/etc# lvcreate --verbose --size 200M --name lv_tmp vg_system
    Setting logging type to disk
    Finding volume group "vg_system"
  Logical volume "lv_tmp" already exists in volume group "vg_system"
root at cubie:/etc# lvremove --verbose /dev/mapper/vg_system-lv_tmp
    Using logical volume(s) on command line
Do you really want to remove active logical volume lv_tmp? [y/n]: y
    Archiving volume group "vg_system" metadata (seqno 4).
    Found volume group "vg_system"
  ffff0000-ffff1000 r-xp 00000000 00:00 0          [vectors]: mlock failed: Cannot allocate memory
    Removing vg_system-lv_tmp (254:0)
    Releasing logical volume "lv_tmp"
  ffff0000-ffff1000 r-xp 00000000 00:00 0          [vectors]: munlock failed: Cannot allocate memory
    Creating volume group backup "/etc/lvm/backup/vg_system" (seqno 5).
  Logical volume "lv_tmp" successfully removed

root at cubie:/etc# uname -a
Linux cubie 3.4.91 #4 PREEMPT Mon Jun 16 18:30:37 CEST 2014 armv7l GNU/Linux

In order to test, i have installed on my Wheezy (7.5) the new jessie lvm2 package so that ....

root at cubie:/etc# apt-get install -t jessie lvm2
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following package was automatically installed and is no longer required:
  libffi5
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  dmsetup libc6 libdevmapper1.02.1 libffi6 libp11-kit0 locales
Suggested packages:
  glibc-doc thin-provisioning-tools
The following NEW packages will be installed:
  libffi6
The following packages will be upgraded:
  dmsetup libc6 libdevmapper1.02.1 libp11-kit0 locales lvm2
6 upgraded, 1 newly installed, 0 to remove and 166 not upgraded.
Need to get 8898 kB of archives.
After this operation, 1603 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.fr.debian.org/debian/ jessie/main libffi6 armhf 3.1-2 [18.1 kB]
Get:2 http://ftp.fr.debian.org/debian/ jessie/main libp11-kit0 armhf 0.20.2-5 [67.2 kB]
Get:3 http://ftp.fr.debian.org/debian/ jessie/main locales all 2.19-1 [3926 kB]
Package configuration

Please note that glibc is also updated, but i dont update my kernel.

In order to do that, my sources.list is :

root at cubie:/etc# cat /etc/apt/sources.list

deb     http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ wheezy main contrib non-free

deb     http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

deb     http://ftp.debian.org/debian/ wheezy-backports main contrib non-free

deb     http://www.emdebian.org/debian/ wheezy main

deb     http://ftp.fr.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ jessie main contrib non-free

....and preferences are ....

root at cubie:/etc# cat /etc/apt/preferences
# file /etc/apt/preferences

Package: *
Pin: release a=wheezy-backports
Pin-Priority: 920

Package: *
Pin: release a=wheezy
Pin-Priority: 910

Package: *
Pin: release a=apt-build
Pin-Priority: 900

Package: *
Pin: release a=jessie
Pin-Priority: 890

Package: *
Pin: release a=testing
Pin-Priority: 80

Package: *
Pin: release a=unstable
Pin-Priority: 33


After installation, the system is stable

root at cubie:/etc# dpkg -l |grep -v ii
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version                   Architecture Description
+++-===============================-=========================-============-========================================================================

and following command is now ok

root at cubie:/etc#  lvcreate --verbose --size 200M --name lv_tmp vg_system
    Setting logging type to disk
    Finding volume group "vg_system"
    Archiving volume group "vg_system" metadata (seqno 5).
    Creating logical volume lv_tmp
    Creating volume group backup "/etc/lvm/backup/vg_system" (seqno 6).
    Activating logical volume "lv_tmp".
    activation/volume_list configuration setting not defined: Checking only host tags for vg_system/lv_tmp
    Creating vg_system-lv_tmp
    Loading vg_system-lv_tmp table (254:0)
    Resuming vg_system-lv_tmp (254:0)
    Wiping known signatures on logical volume "vg_system/lv_tmp"
    Initializing 4.00 KiB of logical volume "vg_system/lv_tmp" with value 0.
    Creating volume group backup "/etc/lvm/backup/vg_system" (seqno 6).
  Logical volume "lv_tmp" created

and ....

root at cubie:/etc# lvremove --verbose /dev/mapper/vg_system-lv_tmp 
    Using logical volume(s) on command line
Do you really want to remove active logical volume lv_tmp? [y/n]: y
    Archiving volume group "vg_system" metadata (seqno 6).
    Removing vg_system-lv_tmp (254:0)
    Releasing logical volume "lv_tmp"
    Creating volume group backup "/etc/lvm/backup/vg_system" (seqno 7).
  Logical volume "lv_tmp" successfully removed


The biggest problem is to know or not if this error can corrupt or not file system ?
Please can you update lvm2 package ?
Many thanks in advance

-- 
-- 
--------------------------------------
  -- Jean-Marc LACROIX                 --
   -- mailto : jeanmarc.lacroix at free.fr --
     ---------------------------------------



More information about the pkg-lvm-maintainers mailing list