Cannot create logical volume ("Device or resource busy")

Solution Verified - Updated -

Issue

  • When trying to create a clustered logical volume, we see the following error:
# lvcreate -l 100%FREE -n lv01 vg01
  Error locking on node hostname.example.com: device-mapper: create ioctl on vg01-lv01 failed: Device or resource busy
  Failed to activate new LV.
  • When we attempt to remove the device-mapper entry, we see:
# dmsetup remove vg01-lv01
Limit for the maximum number of semaphores reached. You can check and set the limits in /proc/sys/kernel/sem.
Command failed

In /proc/sys/kernel/sem, we see

# cat/ proc/sys/kernel/sem
250 100 100 128

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content