when set user quota, show error

weber

Verified User
Joined
Sep 18, 2009
Messages
12
D/A 1.49.1 on a VPS with Cent OS 6.5 64


An error has occurred

Details
Error with system Quotas
setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.
Debug Guide

------------------------------
here are some details:

[root@82050 ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Sun Mar 9 13:40:48 2014
#
# 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/xvda / ext4 noatime,errors=remount-ro 0 1
/dev/xvdb none swap sw 0 0
tmpfs /dev/shm tmpfs nodev,nosuid,noexec,mode =1777 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
/proc /proc proc defaults 0 0
[root@82050 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda 47G 19G 28G 40% /
tmpfs 996M 0 996M 0% /dev/shm
[root@82050 ~]# mount
/dev/xvda on / type ext4 (rw,noatime,errors=remount-ro)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@82050 ~]# /usr/local/directadmin/directadmin c | grep quota_partition
quota_partition=/
ext_quota_partitions=
[root@82050 ~]# repquota `/usr/local/directadmin/directadmin c | grep quota_par tition= | cut -d= -f2`
repquota: Mountpoint (or device) / not found or has no quota enabled.
repquota: Not all specified mountpoints are using quota.
[root@82050 ~]# ls -lad /home/tmp
drwxrwxrwt 2 root root 4096 Nov 10 00:10 /home/tmp
[root@82050 ~]# ls -la /home/tmp
total 8
drwxrwxrwt 2 root root 4096 Nov 10 00:10 .
drwx--x--x 19 root root 4096 Nov 9 06:44 ..
 
You need to change in /etc/fstab this line:
Code:
/dev/xvda / ext4 noatime,errors=remount-ro 0 1
to
Code:
/dev/xvda / ext4 usrquota,grpquota,noatime,errors=remount-ro 0 1

Then reboot your server.

Regards
 
Back
Top