David,

The command "ls -lh" only shows you the size of files in that directory, or 4kb 
sized sub-directories.  Not a lot of help.

Go to the directory and instead of using "ls", use "du".  The best command will 
be "du -hs subdirectoryname".  Or to see everything under that "du -hs *".  
That command will add up everything under that subdirectory name and give you 
the total size in human readable format.

Just one thing to remember, don't try this in the /home/sites directory.  It 
will give you the size of each link which is worthless.  Look in that directory 
for the site you want to check the size of.  You'll find something like:
lrwxrwxrwx  1 root root   18 Feb  8 00:22 www.test.com -> ../.sites/39/site9

To check the amount of disk usage that the site "www.test.com" is using - use 
the command "du -hs /home/.sites/39/site9".  That will return the actual amount 
of disk space being used by www.test.com, its website, and all its users.

Chuck

---------- Original Message -----------
From: "KA0JON" <[email protected]> 
To: <[email protected]> 
Sent: Mon, 28 Feb 2011 19:42:27 -0600 
Subject: [BlueOnyx:06602]  Vsite Quota

> Hi List, 
> I have a problem with Vsite Quota. 
> 
> My GUI Disk Usage 
> Shows site 7 with 35284.41 mg,  yea 35.284 gig 
> 
> When I run ls -lh at commandline I get 
> drwxrwsr-x 7 nobody site7 4.0K Sep 16 14:40 site7 
> 
> Only thing I could find was on this when I googled was 
> 
> http://www.bluequartz.us/phpBB2/viewtopic.php?p=533686&sid=9c0da58a39b00eead 
> 1d99641c8ea7547 
> 
> I've ran these commands and login to GUI and still get same thing 
> 
> /usr/sausalito/sbin/user_gid_fix.pl 
> /usr/sausalito/sbin/fix_user_UID_and_GID.pl 
> /usr/sausalito/sbin/fix_user_suspension.pl 
> /usr/Sausalito/sbin/disk_restorequotas.pl 
> 
> I see results scroll on screen on 1st 3 commands 
> Last command just comes back to command prompt 
> I don't know if it's supposed to show you or not. 
> 
> (I am logged in as root when I ran the commands) 
> 
> I had this site setup with one user name the family could upload scan family 
> Files and documents. I have since moved it to windows box, deleted the user 
> and deleted the files. 
> 
> If there's away to screw it up I think I found it. 
> 
> Any Suggestions? 
> 
> David Kreifels 
> 
> _______________________________________________ 
> Blueonyx mailing list 
> [email protected] 
> http://www.blueonyx.it/mailman/listinfo/blueonyx 
------- End of Original Message -------
 
_______________________________________________
Blueonyx mailing list
[email protected]
http://www.blueonyx.it/mailman/listinfo/blueonyx

Reply via email to