Why XFS is failing to mount with "nobarrier" mount option ?

Solution Verified - Updated -

Issue

  • Mounting XFS filesystem fails 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 drops to emergency mode after adding nobarrier option.

Environment

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