disk space nearly full.

Issues related to software problems
asustek
Posts: 1
Joined: 2010/03/23 07:20:43

disk space nearly full.

Postby asustek » 2010/03/23 07:45:42

Hi,

I am new to CentOS. My problem is my server is running out of space. When i issued a df -h command this is what appears

Code: Select all

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      133G  122G  3.9G  97% /
/dev/sda1              99M   57M   38M  61% /boot
none                  2.0G     0  2.0G   0% /dev/shm

what does 133G 122G 3.9G 97% / means?
how to increase the size without reformatting or adding a new hard disk on the server?

any help is greatly appreciated.

Thanks,

[Moderator edited to insert code tags to preserve the formatting.]

pjwelsh
Posts: 2580
Joined: 2007/01/07 02:18:02
Location: Central IL USA

disk space nearly full.

Postby pjwelsh » 2010/03/23 12:53:43

asustek wrote:
...
what does 133G 122G 3.9G 97% / means?
how to increase the size without reformatting or adding a new hard disk on the server?
...


2 commands you should look at using to answer the question "where is the space being used":
"du" and "find". You really should look at the "man" pages for those ( eg "man du" or "man find") to get a better idea of what they are and how to handle other issues.

But as an example, to "find" files greater than 1024k and "sort" by largest size first:

Code: Select all

find / -mount -size +1024k -type f -exec ls -la {} \;|sort -rnb -k 5|more


Or to find directories that are consuming large amount of space (with files) and sort by largest first:

Code: Select all

du -x / |sort -rnb |more