Why XFS is failing to mount with "nobarrier" mount option ?
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
ordmesg
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.