Disk usage is not shown in home2
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?
-
Hello, When you added the partition did you also enable quotas? You can double check that they are indeed enabled by running the following: /scripts/initquotas
0 -
Hello, When you added the partition did you also enable quotas? You can double check that they are indeed enabled by running the following:
/scripts/initquotas
I just run this command now. But the issue still exists!0 -
Hello, When you added the partition did you also enable quotas? You can double check that they are indeed enabled by running the following:
/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?0 -
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?cat /etc/fstab
0 -
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?cat /etc/fstab
Kindly, check it.0 -
that looks fine. Under Basic WHM Settings the additional home folders are set correctly? 0 -
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).0 -
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? 0 -
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.0 -
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 :) )0 -
and you still having the same issue? The ownership of the folders and files under that account is correct? 0 -
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/scripts/initquotas /scripts/fixquotas
Thank you guys :)0 -
Huh...lovely...glad all good now :) 0
Please sign in to leave a comment.
Comments
13 comments