ImperialTrader

Well-Known Member
Aug 31, 2014
174
20
68
Egypt
cPanel Access Level
Root Administrator
Hi guys,
I attached another disk partition to my server and I mounted it as (home2), and I moved some cPanel accounts from the old partition to the new one.
I uploaded many data but unfortunately, the Disk Usage in STATISTICS section is not calculating the actual space.
Whatever the data I have, it always showing 4 KB only.

Any suggestions?
 

Attachments

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hello,

When you added the partition did you also enable quotas? You can double check that they are indeed enabled by running the following:
Code:
 /scripts/initquotas
 
  • Wow
Reactions: aleangelico

ImperialTrader

Well-Known Member
Aug 31, 2014
174
20
68
Egypt
cPanel Access Level
Root Administrator
Hello,

When you added the partition did you also enable quotas? You can double check that they are indeed enabled by running the following:
Code:
 /scripts/initquotas
It works fine for the new cPanel account but still shows "0 MB" in WHM >> List Accounts
To show the correct usage in WHM, I should run the command again to update the usage of all the accounts
How can I make it update automatically like the normal WHM?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Well it should automatically update and that's what running /scripts/initquotas should be doing. Can you show me what the output of the following is?

Code:
cat /etc/fstab
 

andrew.n

Well-Known Member
Jun 9, 2020
626
181
43
EU
cPanel Access Level
Root Administrator
that looks fine. Under Basic WHM Settings the additional home folders are set correctly?
 

ImperialTrader

Well-Known Member
Aug 31, 2014
174
20
68
Egypt
cPanel Access Level
Root Administrator
that looks fine. Under Basic WHM Settings the additional home folders are set correctly?
I don't think so, could you please me what I should add in the 2 fields in the attached screenshot?
My basic partition is (home) and the additional partition is (home2).
Maybe in the future I could add a 3rd partition and call it (home3).
 

Attachments

andrew.n

Well-Known Member
Jun 9, 2020
626
181
43
EU
cPanel Access Level
Root Administrator
If you leave this on default that should also be fine but without having a closer look I'm not sure what it could be. Maybe try to run /scripts/fixquotas?
 
  • Like
Reactions: ImperialTrader

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
The first entry is the default location you want all new accounts to be placed. The second is additional places for accounts to match. If you want to spread accounts out between two spaces then you'd set that second to just home (pending your additional mount points were named home) if they were named something else like accounts1 accounts2 accounts3 you'd set that to accounts.

The fstab output looks as it should. Do you have backups being stored on /home2?? While initquotas should have implemented quotas I would like to see the output from /scripts/fixquotas

Just as an FYI you can copy/paste output instead of taking screenshots - just place it in code blocks using the toolbar when you post a response.
 
  • Like
Reactions: ImperialTrader

ImperialTrader

Well-Known Member
Aug 31, 2014
174
20
68
Egypt
cPanel Access Level
Root Administrator
The first entry is the default location you want all new accounts to be placed. The second is additional places for accounts to match. If you want to spread accounts out between two spaces then you'd set that second to just home (pending your additional mount points were named home) if they were named something else like accounts1 accounts2 accounts3 you'd set that to accounts.

The fstab output looks as it should. Do you have backups being stored on /home2?? While initquotas should have implemented quotas I would like to see the output from /scripts/fixquotas

Just as an FYI you can copy/paste output instead of taking screenshots - just place it in code blocks using the toolbar when you post a response.
I don't have any backups yet in home2

Check the attached screenshot of the command output (I know that I can copy & paste the code, but it's easier for me to take a screenshot :) )
 

Attachments

andrew.n

Well-Known Member
Jun 9, 2020
626
181
43
EU
cPanel Access Level
Root Administrator
and you still having the same issue? The ownership of the folders and files under that account is correct?
 

ImperialTrader

Well-Known Member
Aug 31, 2014
174
20
68
Egypt
cPanel Access Level
Root Administrator
and you still having the same issue? The ownership of the folders and files under that account is correct?
The fstab output looks as it should. Do you have backups being stored on /home2?? While initquotas should have implemented quotas I would like to see the output from /scripts/fixquotas
Yea, now it works fine.
I should use both commands
Code:
/scripts/initquotas
/scripts/fixquotas
Thank you guys :)
 
  • Like
Reactions: cPanelLauren