Why lvcreate failed with "device-mapper: reload ioctl on failed: Cannot allocate memory error message ?

Solution Verified - Updated -

Issue

  • Why lvcreate failed with device-mapper: reload ioctl on failed: Cannot allocate memory error message ?
[SNIPPET]
May 14 11:16:28 rhs02 kernel: lvcreate: page allocation failure. order:5, mode:0xd0                 <<=========
May 14 11:16:28 rhs02 kernel: Pid: 32644, comm: lvcreate Not tainted 2.6.32-504.8.1.el6.x86_64 #1
May 14 11:16:28 rhs02 kernel: Call Trace:
May 14 11:16:28 rhs02 kernel: [<ffffffff8113438a>] ? __alloc_pages_nodemask+0x74a/0x8d0
May 14 11:16:28 rhs02 kernel: [<ffffffff811732b2>] ? kmem_getpages+0x62/0x170
May 14 11:16:28 rhs02 kernel: [<ffffffff81173eca>] ? fallback_alloc+0x1ba/0x270
May 14 11:16:28 rhs02 kernel: [<ffffffff81173c49>] ? ____cache_alloc_node+0x99/0x160
May 14 11:16:28 rhs02 kernel: [<ffffffff81174547>] ? kmem_cache_alloc_trace+0x137/0x1c0
May 14 11:16:28 rhs02 kernel: [<ffffffffa02e6f20>] ? pool_ctr+0x400/0xa20 [dm_thin_pool]
May 14 11:16:28 rhs02 kernel: [<ffffffffa0005715>] ? dm_table_add_target+0x145/0x360 [dm_mod]
May 14 11:16:28 rhs02 kernel: [<ffffffffa0008bb2>] ? table_load+0xd2/0x310 [dm_mod]
May 14 11:16:28 rhs02 kernel: [<ffffffffa0008ae0>] ? table_load+0x0/0x310 [dm_mod]
May 14 11:16:28 rhs02 kernel: [<ffffffffa0009e34>] ? ctl_ioctl+0x214/0x450 [dm_mod]
May 14 11:16:28 rhs02 kernel: [<ffffffff8121c489>] ? sem_lock+0xe9/0x130
May 14 11:16:28 rhs02 kernel: [<ffffffff8105e0d0>] ? __dequeue_entity+0x30/0x50
May 14 11:16:28 rhs02 kernel: [<ffffffffa000a083>] ? dm_ctl_ioctl+0x13/0x20 [dm_mod]
May 14 11:16:28 rhs02 kernel: [<ffffffff811a3782>] ? vfs_ioctl+0x22/0xa0
May 14 11:16:28 rhs02 kernel: [<ffffffff8122da09>] ? security_ipc_permission+0x19/0x20
May 14 11:16:28 rhs02 kernel: [<ffffffff811a3924>] ? do_vfs_ioctl+0x84/0x580
May 14 11:16:28 rhs02 kernel: [<ffffffff8121cbce>] ? sem_security+0xe/0x10
May 14 11:16:28 rhs02 kernel: [<ffffffff81219a9c>] ? ipcget+0x15c/0x200
May 14 11:16:28 rhs02 kernel: [<ffffffff811a3ea1>] ? sys_ioctl+0x81/0xa0
May 14 11:16:28 rhs02 kernel: [<ffffffff810e5a7e>] ? __audit_syscall_exit+0x25e/0x290
May 14 11:16:28 rhs02 kernel: [<ffffffff8100b072>] ? system_call_fastpath+0x16/0x1b
May 14 11:16:28 rhs02 kernel: Mem-Info:
May 14 11:16:28 rhs02 kernel: Node 0 DMA per-cpu:
May 14 11:16:28 rhs02 kernel: CPU    0: hi:    0, btch:   1 usd:   0
May 14 11:16:28 rhs02 kernel: CPU    1: hi:    0, btch:   1 usd:   0
May 14 11:16:28 rhs02 kernel: CPU    2: hi:    0, btch:   1 usd:   0
May 14 11:16:28 rhs02 kernel: lowmem_reserve[]: 0 0 0 0
May 14 11:16:28 rhs02 kernel: Node 0 DMA: 1*4kB 0*8kB 1*16kB 0*32kB 2*64kB 1*128kB 0*256kB 0*512kB 1*1024kB 1*2048kB 3*4096kB = 15636kB
May 14 11:16:28 rhs02 kernel: Node 0 DMA32: 34955*4kB 7739*8kB 1486*16kB 135*32kB 5*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 230148kB
May 14 11:16:28 rhs02 kernel: Node 0 Normal: 3660*4kB 1466*8kB 718*16kB 221*32kB 26*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 46592kB        <<======
May 14 11:16:28 rhs02 kernel: Node 1 Normal: 82800*4kB 30371*8kB 4418*16kB 283*32kB 6*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 654296kB     <<======
[...]
  • Why lvcreate command failed with device-mapper: reload ioctl on failed: Cannot allocate memory error message on first attempt where the LV gets created but works on second attempt after removing the same LV ?

  • It happens only on one volume group (vg01) and always fails the first time when tried to create the LV where In the second try, the command always works fine

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.