We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
!!IMPORTANCE!! --! User's Disk Limited not work !--
-
- Posts: 28
- Joined: Sun Nov 15, 2015 1:36 pm
!!IMPORTANCE!! --! User's Disk Limited not work !--
I have test about Disk LimitedI think the resource control still has bugs. I want tell vestaCP's teams Must have a look on this serious problems
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 ?
.
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
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
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
-
- Posts: 28
- Joined: Sun Nov 15, 2015 1:36 pm
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
OK, If i config it ---> DISK_QUOTA='yes'
from --->/usr/local/vesta/conf/vesta.conf
So this feature should be enable, am i right?
from --->/usr/local/vesta/conf/vesta.conf
So this feature should be enable, am i right?
-
- Posts: 28
- Joined: Sun Nov 15, 2015 1:36 pm
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
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?
I already restart my server with a new configulation. how i can solve this issue?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
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.
Try to execute v-add-sys-quota.
-
- Posts: 28
- Joined: Sun Nov 15, 2015 1:36 pm
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
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?????
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?????
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
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?
-
- Posts: 28
- Joined: Sun Nov 15, 2015 1:36 pm
Re: !!IMPORTANCE!! --! User's Disk Limited not work !--
TO tjebbeke
Thank you for your help anyways.
At least you already guide me to know the solution.
Thank you for your help anyways.
At least you already guide me to know the solution.