"failed errno 24"/"Too many open files" when running lvm commands on RHEL7.6 with large lun count

Solution Unverified - Updated -

Issue

When a large number of devices exist the default ulimit can be reached resulting in Too many open files messages when running lvm commands:

# pvs
  Device open /dev/mapper/mpathel 253:677 failed errno 24
  Device open /dev/mapper/mpathel 253:677 failed errno 24
  Device open /dev/mapper/mpathic 253:933 failed errno 24

Environment

  • Red Hat Enterprise Linux 7.6
  • lvm2-2.02.180-10.el7_6.2 ~ lvm2-2.02.180-10.el7_6.8

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