Page 1 of 1
!!IMPORTANCE!! --! User's Disk Limited not work !--
Posted: Thu Dec 10, 2015 6:09 pm
by chaiyuttochai
I think the resource control still has bugs. I want tell vestaCP's teams Must have a look on this serious problems
I have test about Disk Limited
I create Package which allow
5mb of disk.
Then i create user which select
5mb package and create website "test.com".
After that i also create email-account and limited
11Mb of disk.
I found the problem is that, Users can upload file to their website over the disk limited
from Package define (reach to 21mb from 5mb limited??). I also test sending an email
into it for checking if email handler over disk limited. The results is that email also
can received more than 15mb?!?!
I have notice that, vestacp didn't auto check or update user disk space like the previous version.
Then i use CLI to command update user's disk space. after is update user still enable to upload file over limited
Do anyone found this issue like me ?
So anyone know how to solve this issue ?
.
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
Posted: Thu Dec 10, 2015 9:36 pm
by tjebbeke
I think this is not a bug but a feature. You need to enable this by yourself if you want hard limits.
enable 'FileSystem Disk Quota' on
https://yourserver:8083/edit/server/
or check the script:
https://github.com/serghey-rodin/vesta/ ... -sys-quota
or when installing vestacp bash vst-install.sh --quota yes
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
Posted: Fri Dec 11, 2015 2:54 am
by chaiyuttochai
OK, If i config it ---> DISK_QUOTA='yes'
from --->/usr/local/vesta/conf/vesta.conf
So this feature should be enable, am i right?
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
Posted: Fri Dec 11, 2015 9:04 am
by chaiyuttochai
after i have follow your suggestion it's still cannot limite disk.
I already restart my server with a new configulation. how i can solve this issue?
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
Posted: Fri Dec 11, 2015 9:22 am
by tjebbeke
As I can see in the script on github (
https://github.com/serghey-rodin/vesta/ ... -sys-quota), you need to do more than just change the config.
Try to execute v-add-sys-quota.
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
Posted: Fri Dec 11, 2015 9:48 am
by chaiyuttochai
Thx !
It's still not working untill i have to do CLI command with
" ./v-update-web-domains-disk testusername "
" ./v-update-mail-domains-disk testusername "
For update this user disk usage. after that it will be work for limited disk.
Another question is that, how i gonna do cronjob or any other way to auto update all user disk allocate rule.
becos the CLI still need user-name to command thus i cannot do cronjob for this command for all user.
Any suggestion?
Or i need just do cronjob execute v-add-sys-quota. in every 5minute?????
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
Posted: Fri Dec 11, 2015 11:17 am
by tjebbeke
I think it should work so without adding a cronjob. I have no experience with this, maybe someone else here on the forum know it better than me?
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
Posted: Fri Dec 11, 2015 11:46 am
by chaiyuttochai
TO tjebbeke
Thank you for your help anyways.
At least you already guide me to know the solution.