Setting Readahead for MongoDB volume

Solution Unverified - Updated -


  • We are receiving warning in MongoDB related to Readahead of the MongoDB volume

    WARNING: Readahead for /var/lib/mongodb/data is set to 4096KB",
    We suggest setting it to 256KB (512 sectors) or less",
  • The readhead setting was adjusted by using the command:

    blockdev --setra 256 /dev/mapper/vg_os-mongodb
  • How can this setting be made persistent?


  • Red Hat Enterprise Linux OpenStack Platform on RHEL 7
  • Satellite 6 on RHEL 7

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