Virtiofs 'too many open files' errors with rsync and du commands

Solution Verified - Updated -

Issue

  • Using virtiofs results in 'too many open files' errors during rsync and du commands.
  • Error occurs on RHEL 9.6 VM setup with KVM hypervisor, RHEL 9.6 guest, and virtiofs mount between them.
  • File-max limit on the host is set to the maximum value, but rsync and du commands still fail.
  • rsync command ends with 'too many open files' error.
  • Running 'du' on virtiofs mount point also fails with 'too many open files' error.
  • Both commands complete without error on the source directory on the guest root partition.

Environment

  • Red Hat Enterprise Linux 9.6
    • virtiofsd-1.13.0-1.el9.x86_64

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