Why XFS is failing to mount with "nobarrier" mount option ?
Issue
-
Mounting XFS filesystem fails with
nobarrieroption:# 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/messagesordmesgshows 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
nobarrieroption. -
The system cannot boot, and drops to emergency mode after adding
nobarrieroption.
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 10
- XFS
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.