lvm creation mlock error
Using the iso 3.0.1 x86_64 to create the LVM setup i am facing with
following issue:
/lib/libdevmapper.so.1.02: mlock failed: Out of memory
/lib/libdevmapper-event.so.1.02: mlock failed: Out of memory
in the dmesg is following:
bio: create slab at 1
here is the log from whole lvm creation process:
- pvcreate /dev/sda3
Physical volume “/dev/sda3” successfully created - vgcreate vg0 /dev/sda3 Volume group “vg0” successfully created
- lvcreate -n alpine.rootfs -L 1G vg0
667bfd424000-667bfd65e000 r-xp 00000000 00:0f 5194 /lib/libdevmapper.so.1.02: mlock failed: Out of memory
667bfd663000-667bfd868000 r-xp 00000000 00:0f 5207 /lib/libdevmapper-event.so.1.02: mlock failed: Out of memory
Logical volume “alpine.rootfs” created - vgchange -ay
1 logical volume(s) in volume group “vg0” now active
#
(from redmine: issue id 3107, created on 2014-07-01, closed on 2015-07-08)
- Changesets:
- Revision 7cfe57d5 by Natanael Copa on 2015-07-08T07:44:57Z:
main/lvm2: use mlockall by default
this works around issue with the "smart" memory locking
ref #3107
- Revision 7777c7a1 by Natanael Copa on 2015-07-08T07:47:43Z:
main/lvm2: use mlockall by default
this works around issue with the "smart" memory locking
fixes #3107
(cherry picked from commit 7cfe57d546e6a336fc5e0eb9c305bb9c3707bee2)