"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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In