Quotas are not enabled / Quota editing has been disabled.

In new server I do not have Edit Virtual Server -> Quotas and Limits.

Re-check configuration gives this error:

"Quotas are not enabled on the filesystem /home which contains home directories under /home and email files under /home. Quota editing has been disabled."

Webmin, System, Disk Quotas show below message: /home Linux XFS Filesystem LVM VG mapper, LV centos-home User and group quotas inactive Can only enable at mount

I am able to start all over again since there are no domain yet on the server.

How can I get quotas and limits per virtual server?

Status: 
Closed (fixed)

Comments

Howdy -- what is the output of these commands:

df -h
mount
cat /etc/fstab

That will give us some info about your partition setup. Thanks!

See next post for the results without formatting:

Here it is:

df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 2.2G 48G 5% / devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 8.5M 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/mapper/centos-home 96G 35M 96G 1% /home /dev/sda1 497M 164M 334M 33% /boot

mount proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) devtmpfs on /dev type devtmpfs (rw,nosuid,size=1932108k,nr_inodes=483027,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 (rw,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) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) 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/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) 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/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) configfs on /sys/kernel/config type configfs (rw,relatime) /dev/mapper/centos-root on / type xfs (rw,relatime,attr2,inode64,noquota) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=32,pgrp=1,timeout=300,minproto=5,maxproto=5,direct) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) mqueue on /dev/mqueue type mqueue (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) /dev/mapper/centos-home on /home type xfs (rw,relatime,attr2,inode64,usrquota,grpquota) /dev/sda1 on /boot type xfs (rw,relatime,attr2,inode64,noquota)

cat /etc/fstab

#

/etc/fstab Created by anaconda on Tue Dec 1 13:52:15 2015

#

Accessible filesystems, by reference, are maintained under '/dev/disk' See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

# /dev/mapper/centos-root / xfs defaults 0 0 UUID=52acc3c2-efe9-4edc-afa9-4eed649f60bc /boot xfs defaults 0 0 /dev/mapper/centos-home /home xfs seclabel,inode64,relatime,attr2,grpquota,usrquota,rw 0 0 /dev/mapper/centos-swap swap swap defaults 0 0

Here is the attached file.

CentOS 7 with all partition ext4 works fine with quota enabled but having all partitions as XFS send me the error: "Quotas are not enabled on the filesystem /home which contains home directories under /home and email files under /home. Quota editing has been disabled." It would be better to have default file system for CentOS with virtualmin and quota enabled.

Yeah, quotas are a bit easier on ext3/ext4. However, they should work on XFS.

What you may need to do is reboot, as it looks like everything else is setup properly.

After installing Virtualmin and logging in for the first time, if Virtualmin detects XFS, it will offer to change some boot parameters.

Those boot parameters are necessary in order for quotas to work on XFS, but it's also necessary to reboot after those are added.

An ext3/ext4 filesystem doesn't need any boot parameters for quotas to work though.

Never mind, after powering down and back on the server, run check-configuration, quotas are enabled on XFS.