xfs_quota: cannot set limits: Function not implemented

websterPL

Verified User
Joined
Oct 7, 2021
Messages
87
Hello, after fresh install of CentOS 8.0 64-Bit and DirectAdmin 1.62.9, after user creation and save there are "xfs_quota: cannot set limits: Function not implemented" error. So I made all in https://help.directadmin.com/item.php?id=42 and also in https://help.directadmin.com/item.php?id=557, I cant get the problem to solve.

Can someone help me ?

Code:
[root@s1 ~]# cat /etc/fstab
UUID=6e907ce8-da5c-4e60-bb0c-4d12b92fd732 / xfs defaults,usrquota,groupquota 0 0
LABEL=EFI_SYSPART       /boot/efi       vfat    defaults        0       1
UUID=1709e928-e0de-4180-9726-126c81e4e52e       swap    swap    defaults        0       0
UUID=bb3e3dfb-42bc-4a6d-a046-b540ce16ec3b       swap    swap    defaults        0       0

Code:
[root@s1 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         32G     0   32G   0% /dev
tmpfs            32G     0   32G   0% /dev/shm
tmpfs            32G  9.3M   32G   1% /run
tmpfs            32G     0   32G   0% /sys/fs/cgroup
/dev/md2        3.7T  4.3G  3.7T   1% /
/dev/sdb1       511M  2.3M  509M   1% /boot/efi
tmpfs           6.3G     0  6.3G   0% /run/user/1001
tmpfs           6.3G     0  6.3G   0% /run/user/0

Code:
[root@s1 ~]# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=32685176k,nr_inodes=8171294,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
none on /sys/kernel/tracing type tracefs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/md2 on / type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
mqueue on /dev/mqueue type mqueue (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=36,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=17921)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sdb1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/1001 type tmpfs (rw,nosuid,nodev,relatime,size=6541028k,mode=700,uid=1001,gid=1001)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=6541028k,mode=700)

Code:
[root@s1 ~]# /usr/local/directadmin/directadmin c | grep quota_partition
quota_partition=/
ext_quota_partitions=

Code:
[root@s1 ~]# /usr/local/directadmin/directadmin c | grep use_xfs_quota
use_xfs_quota=1

Code:
[root@s1 ~]# repquota `/usr/local/directadmin/directadmin c | grep quota_partition= | cut -d= -f2`
repquota: Mountpoint (or device) / not found or has no quota enabled.
repquota: Not all specified mountpoints are using quota.

Code:
[root@s1 ~]# ls -lad /home/tmp
drwxrwxrwt 2 root root 10 Oct  7 00:10 /home/tmp

Code:
[root@s1 ~]# ls -la /home/tmp
total 4
drwxrwxrwt  2 root root   10 Oct  7 00:10 .
drwx--x--x. 8 root root 4096 Oct  7 13:40 ..
 
Code:
[root@s1 ~]# mount | grep ' / '
/dev/md2 on / type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
 
Your /etc/fstab is not correct:

From the help section 557 where you linked to yourself:
if you see the "noquota" option, then you need to go to step 1, below.
If you don't see noquota, then you should be able to follow the standard quota setup guide, but adding uquota,pquota to the /etc/fsab, after the default option.

edit: sorry... step 1 below that.

So you have to change your grub as stated in the help file.
 
I have already that in /etc/default/grub

Code:
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_DISABLE_RECOVERY="true"
GRUB_DISABLE_LINUX_UUID="false"
GRUB_TERMINAL_OUTPUT=""
GRUB_CMDLINE_LINUX="rd.auto  crashkernel=auto vga=normal nomodeset rdloaddriver=raid1 rootflags=uquota,pquota"
GRUB_PRELOAD_MODULES="diskfilter mdraid1x"
GRUB_ENABLE_BLSCFG=false
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT} systemd.unified_cgroup_hierarchy=1 psi=1 rootflags=uquota,pquota"
 
Code:
[root@s1 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.18.0-305.19.1.el8_4.x86_64
Found initrd image: /boot/initramfs-4.18.0-305.19.1.el8_4.x86_64.img
Found linux image: /boot/vmlinuz-4.18.0-240.1.1.el8_3.x86_64
Found initrd image: /boot/initramfs-4.18.0-240.1.1.el8_3.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-6bdfa40330b14232b9c78e13592904be
Found initrd image: /boot/initramfs-0-rescue-6bdfa40330b14232b9c78e13592904be.img
Found linux image: /boot/vmlinuz-0-rescue-3b7c518514824542a3b3a667fcc64c3b
Found initrd image: /boot/initramfs-0-rescue-3b7c518514824542a3b3a667fcc64c3b.img
Adding boot menu entry for EFI firmware configuration
done

Code:
[root@s1 ~]# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.18.0-305.19.1.el8_4.x86_64
Found initrd image: /boot/initramfs-4.18.0-305.19.1.el8_4.x86_64.img
Found linux image: /boot/vmlinuz-4.18.0-240.1.1.el8_3.x86_64
Found initrd image: /boot/initramfs-4.18.0-240.1.1.el8_3.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-6bdfa40330b14232b9c78e13592904be
Found initrd image: /boot/initramfs-0-rescue-6bdfa40330b14232b9c78e13592904be.img
Found linux image: /boot/vmlinuz-0-rescue-3b7c518514824542a3b3a667fcc64c3b
Found initrd image: /boot/initramfs-0-rescue-3b7c518514824542a3b3a667fcc64c3b.img
Adding boot menu entry for EFI firmware configuration
done
 
Oke that seems good. So if you reboot the server the "noquota" again comes back?
If yes, then either something is wrong or we missed something.

UUID=6e907ce8-da5c-4e60-bb0c-4d12b92fd732 / xfs defaults,usrquota,groupquota 0 0
Still... this line in /etc/fstab should read pquota at the end according to the quota setup for xfs.
As well, we replace the grpquota with pquota (project quotas), which will allow DA to setup directoy quotas, for things like enforcement of per-domain disk quotas.

Unless you're on cloudlinux, it further looks good to me.

In that case maybe @zEitEr or @smtalk have an idea what we're missing. Or somebody else.
 
With

Code:
UUID=6e907ce8-da5c-4e60-bb0c-4d12b92fd732 / xfs defaults,usrquota,groupquota 0 0

and after reboot, there are still noquota

Code:
[root@s1 ~]# mount | grep ' / '
/dev/md2 on / type xfs (ro,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
 
Last edited:
I changed groupquota to grpquota but still "noquota" after reboot.

Code:
UUID=6e907ce8-da5c-4e60-bb0c-4d12b92fd732 / xfs defaults,usrquota,grpquota 0 0
 
Unfortunately still the same with pquota
Code:
UUID=6e907ce8-da5c-4e60-bb0c-4d12b92fd732 / xfs defaults,usrquota,pquota 0 0
 
I have one VPS original RHEL (from the free 16 licenses they offer)

My fstab has:

/ xfs defaults,uquota,gquota 0 0
 
Yep, but pquota and gquota is the same it said somewhere in the docs.

Maybe you can check the grub settings and compare them to yours?
 
/boot/efi/EFI/redhat/grub.cfg

has that in a line line rootflags=uquota,pquota systemd.unified_cgroup_hierarchy=1 psi=1

mount | grep ' / '
/dev/sda4 on / type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,usrquota,prjquota)

/etc/default/grub

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto resume=UUID=XXXXXXXXXXXXXXXXXXXXXXX rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT} rootflags=uquota,pquota systemd.unified_cgroup_hierarchy=1 psi=1"
 
Back
Top