Quota on LXC with ZFS

Daggerka

Verified User
Joined
Feb 4, 2012
Messages
27
Hi, I've found throuble with setup working quota on Proxmox LXC container with CentOS on ZFS filesystem underneath.


Code:
[root@web ~]# /sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
[root@web ~]# cat /etc/fstab
/dev/root               /                       rootfs   rw,userquota,groupquota        0 0
[root@web ~]# df -h
Filesystem                   Size  Used Avail Use% Mounted on
localpool/subvol-101-disk-0  300G   68G  233G  23% /
none                         492K     0  492K   0% /dev
udev                         7.3G     0  7.3G   0% /dev/tty
tmpfs                        7.4G   24K  7.4G   1% /dev/shm
tmpfs                        7.4G  8.3M  7.4G   1% /run
tmpfs                        7.4G     0  7.4G   0% /sys/fs/cgroup
tmpfs                        820M     0  820M   0% /run/user/0
[root@web ~]# mount
localpool/subvol-101-disk-0 on / type zfs (rw,xattr,posixacl)
none on /dev type tmpfs (rw,relatime,size=492k,mode=755,uid=100000,gid=100000)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
proc on /proc/sys/net type proc (rw,nosuid,nodev,noexec,relatime)
proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
lxcfs on /proc/cpuinfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/diskstats type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/loadavg type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/meminfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/stat type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/swaps type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/uptime type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
udev on /dev/full type devtmpfs (rw,nosuid,relatime,size=7641668k,nr_inodes=1910417,mode=755)
udev on /dev/null type devtmpfs (rw,nosuid,relatime,size=7641668k,nr_inodes=1910417,mode=755)
udev on /dev/random type devtmpfs (rw,nosuid,relatime,size=7641668k,nr_inodes=1910417,mode=755)
udev on /dev/tty type devtmpfs (rw,nosuid,relatime,size=7641668k,nr_inodes=1910417,mode=755)
udev on /dev/urandom type devtmpfs (rw,nosuid,relatime,size=7641668k,nr_inodes=1910417,mode=755)
udev on /dev/zero type devtmpfs (rw,nosuid,relatime,size=7641668k,nr_inodes=1910417,mode=755)
devpts on /dev/console type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1024)
devpts on /dev/ptmx type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1024)
devpts on /dev/tty1 type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1024)
devpts on /dev/tty2 type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1024)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,uid=100000,gid=100000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755,uid=100000,gid=100000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755,uid=100000,gid=100000)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
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/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
mqueue on /dev/mqueue type mqueue (rw,relatime)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=838864k,mode=700,uid=100000,gid=100000)
[root@web ~]# /usr/local/directadmin/directadmin c | grep quota_partition
quota_partition=/
ext_quota_partitions=
[root@web ~]# /usr/local/directadmin/directadmin c | grep use_xfs_quota
use_xfs_quota=0
[root@web ~]# 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.
[root@web ~]# ls -lad /home/tmp
drwxrwxrwt 2 root root 2 Nov 14 10:53 /home/tmp
[root@web ~]# ls -la /home/tmp
total 33
drwxrwxrwt  2 root root  2 Nov 14 10:53 .
drwxr-xr-x 20 root root 20 Nov 14 10:52 ..
[root@web ~]# cat /etc/*relea*
CentOS Linux release 7.7.1908 (Core)
Derived from Red Hat Enterprise Linux 7.7 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.7.1908 (Core)
CentOS Linux release 7.7.1908 (Core)
cpe:/o:centos:centos:7

Any advise will be extreme welcome :)
 
Back
Top