lvm commands fail, such as resume, with "Limit for the maximum number of semaphores reached."

Solution Verified - Updated -

Issue

  • Some LVM commands (lvcreate, lvremove, dmsetup resume, ...) may fail due to a shortage of semaphores with this error:
Limit for the maximum number of semaphores reached. You can check and set the limits in /proc/sys/kernel/sem.

As a result the commands may fail to resume any devices they have suspended.

Environment

  • Red Hat Enterprise Linux
    • LVM2
    • tuned

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