Disk Space not matching Cpanel Stats

Brad

Well-Known Member
Aug 16, 2001
229
0
316
How often is the disk space totals updated, is it realtime or is it updated nightly? They don't seem be accurate and I have customers that use their space to their limit, if ya know what I mean. I get complaints that stats in panel aren't correctly matching what they have.

I just ran /scripts/fixquotas to see if it helps. Now it seems as though they match but will this problem continue?
 

parag

Well-Known Member
Aug 16, 2001
115
0
316
[quote:ff0c940e6b][i:ff0c940e6b]Originally posted by Brad[/i:ff0c940e6b]

How often is the disk space totals updated, is it realtime or is it updated nightly? They don't seem be accurate and I have customers that use their space to their limit, if ya know what I mean. I get complaints that stats in panel aren't correctly matching what they have.

I just ran /scripts/fixquotas to see if it helps. Now it seems as though they match but will this problem continue?



[/quote:ff0c940e6b]

Hi Brad,

You must be having probs with quotas. Normally its updated realtime.

What kernel are you running on your server??
Mail me the info and i will help you out.

I had the same problem. :)

best regards,
Parag
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
schedule /scripts/fixquotas early in the morning (very very early, whenever your server's slowest & less busiest time is)

if you could post some more details about your system we might be able to fix this completely. just rough details about the OS release and kernel version, nothing hazardous of course.

;)
 

Brad

Well-Known Member
Aug 16, 2001
229
0
316
Ok thanks,

Redhat 7.1
Kernel 2.4.18 -pre3
Cpanel Version/Build 4.7.0-STABLE Build 66
quota is up to date


Here are examples of current disk results.


(Entire Account)
In the /home/account/ I get 681M

(www)
In the /home/www/ I get: 207M

(Cpanel)
In CPANEL Screen I get: 282.86 Meg

(WHM)
In Web Host Manager I Get: 282 Meg



As you can see, the difference from CPanel and the Account directory is quite different.

Results obtained in Shell - du -sh
 
B

bdraco

Guest
[quote:79821dc501][i:79821dc501]Originally posted by Brad[/i:79821dc501]

Ok thanks,

Redhat 7.1
Kernel 2.4.18 -pre3
Cpanel Version/Build 4.7.0-STABLE Build 66
quota is up to date


Here are examples of current disk results.


(Entire Account)
In the /home/account/ I get 681M

(www)
In the /home/www/ I get: 207M

(Cpanel)
In CPANEL Screen I get: 282.86 Meg

(WHM)
In Web Host Manager I Get: 282 Meg



As you can see, the difference from CPanel and the Account directory is quite different.

Results obtained in Shell - du -sh


[/quote:79821dc501]
Are the files actually owned by the user ?
 

Brad

Well-Known Member
Aug 16, 2001
229
0
316
No, I was using our account as an example, I see root files in there too. I didn't know it mattered..

So, then if a user chowned some large files as nobody, then the files would not be detected as used space for their account, only the account owned files?
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[quote:53e536b926][i:53e536b926]Originally posted by Brad[/i:53e536b926]

No, I was using our account as an example, I see root files in there too. I didn't know it mattered..

So, then if a user chowned some large files as nobody, then the files would not be detected as used space for their account, only the account owned files?

[/quote:53e536b926]
That's correct! If you chown nobody or chown root all the files in /home/username recursively you'll get 0 bytes used disk space in cpanel/WHM even if you've got 1 gig worth of files in it (and it will still show up 1 gig available space).

du -sh doesn't specifically count the user owned files but just the disk space used in the user's directory regardless of who owns them.

Nick, could you give us some pointers on this?
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
[quote:f115108a69]That's correct! If you chown nobody or chown root all the files in /home/username recursively you'll get 0 bytes used disk space in cpanel/WHM even if you've got 1 gig worth of files in it (and it will still show up 1 gig available space).

du -sh doesn't specifically count the user owned files but just the disk space used in the user's directory regardless of who owns them.

Nick, could you give us some pointers on this?[/quote:f115108a69]

How do we then go about finding the actual disk space usage by a user ?

regards,

Anand