Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: pipoy on April 21, 2021, 12:33:42 AM
-
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
-
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.
(https://scontent.fmnl17-2.fna.fbcdn.net/v/t1.6435-0/p180x540/175533500_5403950259678336_6007503166995134974_n.jpg?_nc_cat=109&ccb=1-3&_nc_sid=730e14&_nc_eui2=AeFTIVGSXwCW_TPsi4PugKZ0WMQC_FssuthYxAL8Wyy62BKRVFVLa9VziSvijWU64BEg7TUwvFcW-EXSi0AltO4r&_nc_ohc=eznYDWhNAAQAX9ARLDl&_nc_oc=AQnauxdumfjo6fImR_D71Khp87Pr8RhAcqPXOd5riCl25UK_IvZ2vxvR1-96CyoteIM&_nc_ht=scontent.fmnl17-2.fna&tp=6&oh=a7c8f4e3cdf0e6afae92850538d23c0e&oe=60A35BF5)
-
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 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
-
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