Wednesday, June 23, 2010

Cpanel / WHM /FTP/E-mail are showing incorrect or zero disk usage?

Hi Guys,

If you get such type of problems, please refer the following steps to resolve the issue. The reason is that I have followed it and fixed it.

====
1. Execute following scripts on the server.
root@venice [/]# /scripts/initquotas; /scripts/resetquotas; /scripts/fixquotas

2. If the issue is still there then check whether "usrquota" option has enabled or not for home directory(/etc/fstab). Please enable it. Also check the rw option of the home directory where user's home directory is there. I did following things.

====
root@venice [/]# cat /etc/fstab | grep home
LABEL=/home /home ext3 defaults 1 2
root@venice [/]#
root@venice [/]# mount -o remount,rw, usrquota /home
root@venice [/]# cat /etc/fstab | grep home
LABEL=/home /home ext3 defaults,rw,usrquota 1 2
root@venice [/]#
====

3. Make sure those options has also enabled in /etc/mtab.

===
root@venice [/]# cat /etc/mtab | grep home|column -t
/dev/sda8 /home ext3 rw,usrquota 0 0
root@venice [/]
===

Then I refreshed the WHM. It was displaying the correct disk usages.

TC.. :)

No comments:

Post a Comment