<html>
<body>
With my limited knowledge I tend to do:<br>
du -h / | grep ^[0-9.]*G<br><br>
The results for a server might read:<br>
1.4G /home/.users/112/admin<br>
1.4G /home/.users/112<br>
1.4G /home/.users<br>
1.3G /home/.sites<br>
3.5G /home<br>
6.4G /<br><br>
This tells me where some of the larger files my be located.<br>
David<br><br>
<br>
At 02:50 PM 9/27/2010, you wrote:<br>
<blockquote type=cite class=cite cite=""><font size=2>Sure, <br><br>
Go into any directory (like the root / directory in your case) and use
the command "du -hs *". That gives you the "Disk
Usage". The "h" switch gives it to you in human
readable (KB, MB, GB). And the "s" switch causes it to
summarize, so directories are given to you as one entry with its size.
<br><br>
If you've ever got a question about what's eating up your drive or
partition space - go to the root of that partition and use that
command. Look for the oversized or ridiculously big directory,
switch to it, and run the command again. Sooner or later, it will
lead you to the file or directory eating up your drive space. <br><br>
This can also be a good command to run BEFORE you have problems.
Run it against your root directory and the directory that makes up each
of your partitions (like /var /usr /home). Run those commands when
you first set up the box and have it completely operational - and store
the results. If you've ever got questions afterward, you can
compare sizes of the new box with the current. For example - if you
haven't added software, or done significant updates - /usr shouldn't
change appreciably. There are a lot of "this directory should
change under these conditions" and "that directory should never
change" rules. You've got to know how your box works and what
its doing to recognize those - but it can be very helpful to know what
those directory size values were in a new-condition box. And it can
help you troubleshoot problems, broken software, configurations, or even
hacked servers. <br><br>
<br><br>
Chuck <br><br>
<br>
P.S. - Using that command can put a significant LOAD on the system.
Don't do it during peak/busy hours. And for systems with large/full
drives - expect to be waiting a while! <br><br>
<br><br>
<br>
<b>---------- Original Message -----------</b> <br>
From: Carlos Quinones <wp4mxb@playero.net> <br>
To: gwaugh@frontstreetnetworks.com, BlueOnyx General Mailing List
<blueonyx@blueonyx.it> <br>
Sent: Mon, 27 Sep 2010 15:47:38 -0400 <br>
Subject: [BlueOnyx:05478] Re: need space <br><br>
> i just got 9% more space i check the /boot every thing i just gain
9% <br>
> only <br>
> i there a way i can find out what is take to much space?? <br>
> <br>
> [root@www admin]# df -h <br>
>
Filesystem
Size Used Avail Use% Mounted on <br>
>
/dev/md1
1.9G 1.6G 260M 86% / <br>
>
/dev/md2
1.9G 220M 1.6G 13% /var <br>
>
/dev/md5
1.9G 34M 1.8G 2% /tmp <br>
>
/dev/md6
67G 141M 64G 1% /home <br>
>
none
506M 0 506M 0% /dev/shm <br>
> <br>
> On Sun, 2010-09-26 at 22:50 -0500, Gerald Waugh wrote: <br>
> > On Sun, 2010-09-26 at 22:58 -0400, Carlos Quinones wrote:
<br>
> > > is there a way to get more spece i see that my server is
losing space <br>
> > > <br>
> > > [root@www logrotate.d]# df -h <br>
> > >
Filesystem
Size Used Avail Use% Mounted on <br>
> > >
/dev/md1
1.9G 1.7G 94M 95% / <br>
> > >
/dev/md2
1.9G 231M 1.6G 13% /var <br>
> > >
/dev/md5
1.9G 34M 1.8G 2% /tmp <br>
> > >
/dev/md6
67G 121M 64G 1% /home <br>
> > >
none
506M 0 506M 0% /dev/shm <br>
> > > <br>
> > > the /dev/md1 all most full i like gain space can any one
help me please. <br>
> > > <br>
> > <br>
> > look at your kernels and remove some <br>
> > check the running kernel and remove all that are older <br>
> > rpm -qa | grep kernel <br>
> > then <br>
> > yum remove <kernel> <br>
> > <kernel/s> found in the rpm -qa command
<br>
> > then check /boot and remove any files for that kernel <br>
> > <br>
> > Gera;d <br>
> > <br>
> > <br>
> > <br>
> > <br>
> > <br>
> > > _______________________________________________ <br>
> > > Blueonyx mailing list <br>
> > > Blueonyx@blueonyx.it <br>
> > >
<a href="http://www.blueonyx.it/mailman/listinfo/blueonyx">http://www.blueonyx.it/mailman/listinfo/blueonyx</a>
<br>
> <br>
> _______________________________________________ <br>
> Blueonyx mailing list <br>
> Blueonyx@blueonyx.it <br>
> <a href="http://www.blueonyx.it/mailman/listinfo/blueonyx">http://www.blueonyx.it/mailman/listinfo/blueonyx</a> <br>
<b>------- End of Original Message -------</b> <br>
</font>_______________________________________________<br>
Blueonyx mailing list<br>
Blueonyx@blueonyx.it<br>
<a href="http://www.blueonyx.it/mailman/listinfo/blueonyx" eudora="autourl">http://www.blueonyx.it/mailman/listinfo/blueonyx</a><br><br>
No virus found in this incoming message.<br>
Checked by AVG - <a href="http://www.avg.com/" eudora="autourl">www.avg.com</a> <br>
Version: 9.0.856 / Virus Database: 271.1.1/3162 - Release Date: 09/26/10 23:34:00</blockquote>
<x-sigsep><p></x-sigsep>
.....</body>
</html>