Mounting XFS filesystem is failed with nobarrier option in Red Hat Enterprise Linux 8
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
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 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.