blkid command takes too much time to finish

Solution Verified - Updated -

Issue

  • When using blkid it takes too long to finish when the system has thousands of disks.

  • The blkid command takes around five seconds to finish processing the disk even when adding the device path:

    # date; blkid -o value -s TYPE /dev/sdmc1; date
    Wed Oct  9 13:16:42 -03 2019
    oracleasm
    Wed Oct  9 13:16:51 -03 2019
    

Environment

  • Red Hat Enterprise Linux (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