• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

XFS error: Unable to mount filesystem With Noacl Permission in CentOS/RHEL 7

By admin

The Problem

User is unable to mount xfs with noacl permission. noactl mount option for xfs file system is set in /etc/fstab file.

# cat  /etc/fstab
/dev/sbb1   /mnt    xfs    inode64.noacl     0 0

But mounting failed with error below.

# mount -v /mnt
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg_cdm_ebsul06_N00-appl_ptch,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try

The dmesg errors for the noacl option are as follows:

# dmesg | tail
XFS (sbb1): Ending clean mount
XFS (sbb1): unknown mount option [noacl].
XFS (sbb1): Mounting Filesystem
XFS (sbb1): Ending clean mount
XFS (sbb1): unknown mount option [noacl].
XFS (sbb1): unknown mount option [noacl].
XFS (sbb1): unknown mount option [noacl].
XFS (sbb1): Mounting Filesystem
XFS (sbb1): Ending clean mount
XFS (sbb1): unknown mount option [noacl].

Although user can remount the XFS filessytem with noacl option successfully.

# mount -o remount,noacl /mnt
# mount| grep noacl
/dev/sdb1 on /mnt type xfs (rw,inode64,noacl)

The Solution

1. Currently, kernel is compiled with ACL support, so there is no option to disable ACL for XFS at runtime:

CONFIG_XFS_POSIX_ACL=y

2. For xfs remount , you can even specify any invalid options, like ‘hello’, XFS will ignore it but only list it in the output:

# mount -o remount,hello /mnt 
# mount
..
/dev/sdb1 on /mnt/ type xfs (rw,noacl,noacl,noacl,hello)

3. And per source code for XFS, xfs simply ignore those invalid options:

xfs_fs_remount(
...
  * Until that is implemented we return success for
  * every remount request, and silently ignore all
  * options that we can't actually change.
  */
...

Conclusion

There is no option to disable ACL for XFS at runtime. Do not set any ACL on files on xfs mount, ACL won’t be used for those files.

Filed Under: CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How to Limit/throttle rsync transfer speed in Linux
  2. How to configure xhost to be persistent across reboots in Linux
  3. Passwordless SSH not working for local users on LDAP servers – CentOS/RHEL 7
  4. What are SELinux Modes and how to set them
  5. Linux OS Service ‘kdump’
  6. How to disable auto completion (tab completion) in bash shell
  7. How to Install Gnome Desktop Environment onto Oracle Linux 6.x
  8. Linux Interview Questions – Linux Printing (CUPS)
  9. CentOS / RHEL : iptables troubleshooting guide
  10. cp: omitting directory – error while copying a directory in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • How to set the default character set in MySQL and how to propagate it in a master-master replication scenario
  • “Connection reset by peer” – error while ssh into a CentOS/RHEL system with a specific user only
  • MySQL: how to figure out which session holds which table level or global read locks
  • Recommended Configuration of the MySQL Performance Schema
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary