xfs_admin: command not found

XFS is a highly scalable filesystem. It can scale to 8 EiB, with online resizing; the filesystem can grow as long as there is unallocated space and it can span multiple partitions and devices. XFS is one of the fastest filesystems around, especially in combination with RAID volumes. But, this comes with a cost: you’ll need at least 1 GB of memory in your virtual machine if you want to use XFS. And if you want to be able to repair the filesystem, you’ll need at least 2 GB of memory.

You can use the xfs_admin utility to configure quotas on XFS file systems. This utility can run in both interactive and non-interactive mode. When run non-interactively, use the -c option to specify which commands to run, and the -x option to enable expert mode, which is required for most administrative tasks. Tasks include setting limits on writing blocks and inodes, setting warning limits, generating quota reports, and more.

The XFS file system is a completely different file system, and for that reason also has a completely different set of tools to manage its properties. It does not allow you to set file system attributes within the file system metadata. You can, however, change some XFS properties, using the xfs_admin command. For instance, use xfs_admin -L mylabel to set the file system label to mylabel.

If you encounter below error while running the xfs_admin command:

xfs_admin: command not found

you may try installing below package as per your choice of distribution:

Distribution Command
Debian apt-get install xfsprogs
Ubuntu apt-get install xfsprogs
Alpine apk add xfsprogs
Arch Linux pacman -S xfsprogs
Kali Linux apt-get install xfsprogs
CentOS yum install xfsprogs
Fedora dnf install xfsprogs
Raspbian apt-get install xfsprogs
Related Post