Removing Quotas

Started by pipoy, April 21, 2021, 12:33:42 AM

Previous topic - Next topic

pipoy

Hi,

I have configured quota before for disk /dev/vda1.

Now, I have added a new partition for /home in /dev/vdb because the users are growing.

I have setup the quota as before and configured it as /home this time.

but the problem here is that the quotas in the UI did not change and it is still reading the quota from /dev/vda1



Upon checking User Quota via repquota -a, I have 2 quotas.

The old one from /dev/vda1 and the new one at /dev/vdb


*** Report for user quotas on device /dev/vda1
Block grace time: 7days; Inode grace time: 7days
                        Space limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------


** Report for user quotas on device /dev/vdb
Block grace time: 7days; Inode grace time: 7days
                        Space limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace



Question is how do totally delete the configuration from /dev/vda1

pipoy

Update.
Turned out I did this before
https://www.interworx.com/support/faq/enabling-quotas-centos7/

Just had to revert /etc/default/grub back to original.

Now, I still dont understand why the lower left hand portion of the interface does not update.


Igor S.

You must configure the quotas manually, via SSH if the disk has changed. The config depends on your filesystem
I would recommend you asking a compitent system administrator to check the issue.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

pipoy

Quote from: Igor S. on April 21, 2021, 06:19:20 AM
You must configure the quotas manually, via SSH if the disk has changed. The config depends on your filesystem
I would recommend you asking a compitent system administrator to check the issue.

Hi,

Some accounts are ok. And I believe the quota is configured correctly.


*** Report for user quotas on device /dev/vdb
Block grace time: 7days; Inode grace time: 7days
                        Space limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --   2507M      0K      0K           7241     0     0       
xxxx     --     76K  10000M  10000M             37     0     0       
xxxx  --    193M   5000M   5000M           7446     0     0       
xxxx    --  12852K  10000M  10000M            743     0     0       
xxxx    --  14288M  35840M  35840M           226k     0     0       
xxxx    --   1024M  10000M  10000M          72774     0     0     

  This is the account in question
xxxx    --   7673M  10000M  10000M          88781     0     0

       
xxxx   --    237M  10000M  10000M          14598     0     0       
xxxx    --    425M  10000M  10000M          14347     0     0       
xxxx --     24K      0K      0K              7     0     0       
xxxx    --    512M  10000M  10000M          23738     0     0       
xxxx  --     48K  10000M  10000M             15     0     0       
xxxx     --    640M  10000M  10000M          11961     0     0       
xxxx   --     20K      0K      0K              7     0     0       
#1000     --     24K      0K      0K              8     0     0       

studio4host

edit file /usr/local/cwp/.conf/quota_part.conf
and set there partition which needs to have quota, probably /home

after that, you can run API quota

Set quota based on the package for all users
/scripts/cwp_api account update_diskquota_all

info:
http://wiki.centos-webpanel.com/cwp-admin-api
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.