Control Web Panel
WebPanel => CentOS 6 Problems => Topic started by: capsx on April 16, 2016, 03:32:12 AM
-
Each time i log in, there is a false quota warning:
WARNING: Quota! Quota is not installed on your server and you will not be able to limit users disk space!
You can install Quota using instructions on the forum click here.
[sys]
Centos: 6.7
CWP: 0.9.8.12
[/etc/ftsab]
/dev/sda / ext4 noatime,errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0 0 1
[/usr/local/cwp/.conf/quota_part.conf]
/home
Screenshots:
http://i.imgur.com/lAUvhpk.png
http://i.imgur.com/Nr51aOx.png
-
you can safely ignore this message, if you don't want quota on your server
-
I need quotas on the server
Quotas are enbled
But CWP says that quotas are not ebaled ...
-
you're using openvz or KVM ?
-
KVM
-
Did you followed this instructions http://forum.centos-webpanel.com/centos-configuration/how-to-setup-user-quotas/
-
yes, but -> my bad :)
[root@mail:~]# quotacheck -avugm
quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
[root@mail:~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda 47G 3.0G 44G 7% /
tmpfs 998M 128K 998M 1% /dev/shm
[root@mail:~]# ln -s /dev/sda /dev/root
[root@mail:~]# quotacheck -avugm
quotacheck: Scanning /dev/root [/] done
quotacheck: Cannot stat old user quota file //quota.user: No such file or directory. Usage will not be substracted.
quotacheck: Old group file name could not been determined. Usage will not be substracted.
quotacheck: Checked 7607 directories and 96408 files
quotacheck: Old file not found.
[root@mail:~]# quotaon -avug
/dev/root [/]: user quotas turned on
[root@mail:~]#
must do that --->>> [root@mail:~]# ln -s /dev/sda /dev/root
thx ;)