Mounting XFS filesystem is failed with nobarrier option in Red Hat Enterprise Linux 8

Solution Verified - Updated -

Issue

  • Mounting XFS filesystem is failed with nobarrier option.

    # mount /dev/sdb1 -o nobarrier /mnt/data
    mount: /mnt: wrong fs type, bad option, bad superblock on /dev/vda1, missing codepage or helper program, or other error.
    
  • /var/log/messages or dmesg shows the following message.

    [36080.303252] XFS (dm-2): unknown mount option [nobarrier].
    
  • The root file system is mounted read-only, and the system cannot work fine after adding nobarrier option.

  • The system cannot boot, and dropped to emergency mode after adding nobarrier option.

Environment

  • Red Hat Enterprise Linux 8
  • XFS

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