ahoracioadolfo you can test can help you -
I tested a variant, when configuring the server, when you make the partitions, you opt for
manual configuration and mount only
/swap - recommended (2 x ram memory),
/boot (1GB, but I put 2GB all the time) and the
maximum space for
root( / )Then install cwp and follow the steps:
https://www.interworx.com/support/faq/enabling-quotas-centos7/ AND
Activate quota as XFS for /home
in
CWP.admin go to
Left Menu -> Server Settings --> Disk Quota , and set
Quota Partition: /homeQuota Type: xfsreboot After which you can create a hosting package, make a user or modify for an existing user, and it will display your quota, but here are some problems, if you enter as root manager, it will show you the wrong quota, if you log in as a user, it will show you the correct quota, but it doesn't take into account the email limit, meaning you have a
5gb hosting package, the
site takes up 1gb of space and the emails exceed the
remaining 4gb, the services work correctly
to block the operation of the mail according to the hosting plan, you can for example run this command:
-example :
xfs_quota -x -c 'limit bsoft=4000M bhard=4000M USER' /homein our case, the mails are in
/var/vmail on the
root partition ( / ) xfs_quota -x -c 'limit bsoft=4000M bhard=4000M demouser' /when the space for the user "
demouser" on the
root partition (/), reaches
4 GB, he can no longer send any email, and according to the
5 Gb hosting plan (I said 1gb website + 4gb mail) can no longer load nothing on the site ... (I hope I expressed myself correctly
![:))](https://forum.centos-webpanel.com/Smileys/default/laugh.gif)
))))