[SOLVED] Enabling Disk Quotas

4 posts / 0 new
Last post
#1 Mon, 01/26/2015 - 17:09

[SOLVED] Enabling Disk Quotas

Hello, I have just migrated my virtualmin setup from Ubuntu 12.04 to CentOS 7 in a vmware environment by simply creating a server ackup and then restoring onto fresh install of CentOS 7.

Everything is working fine so far except quotas. If I goto Webmin>>System>>Disk Quotas, under "Action" it states "Can only enable at mount"

output for mount command is

[administrator@localhost ~]$ 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=1449804k,nr_inodes=362451,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=33,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
sunrpc on /proc/fs/nfsd type nfsd (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)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
[administrator@localhost ~]$

any help will be greatly appreciated.

Thank you

Mon, 01/26/2015 - 20:55
Joe's picture

Rebooting the system is mandatory for enabling quotas on the root filesystem if you are using XFS. The install script should have mentioned that, I think. This is a limitation (or feature, or however you want to think of it) of XFS. But, rebooting the system should turn quotas on.


Check out the forum guidelines!

Tue, 01/27/2015 - 01:14


Yeah on CentOS 7, and/or when using XFS, the last question of the post-installation wizard in the Virtualmin GUI is regarding setting up grub to enable quotas, and rebooting. You would need to be sure to enable that if you wish to use quotas.


Tue, 01/27/2015 - 08:45

Thank you for reply Joe, Eric. After running the "Re-Check Configuration" It gave me message

Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add to the list of DNS servers, or turn off the BIND feature on the module config page.

.. your system is not ready for use by Virtualmin.

I have edited the /etc/resolve.conf file to add and it seems to have fixed the quotas as well.

As per the forums people seem to have the same problem after reboot, but lets see. For now the issue is resolved.

Thank you

Topic locked