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 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.