disk space nearly full.

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

disk space nearly full.

Post by 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]
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
[/code]
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 [i]code[/i] tags to preserve the formatting.]

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

disk space nearly full.

Post by pjwelsh » 2010/03/23 12:53:43

[quote]
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?
...[/quote]

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]find / -mount -size +1024k -type f -exec ls -la {} \;|sort -rnb -k 5|more[/code]

Or to find directories that are consuming large amount of space (with files) and sort by largest first:
[code]du -x / |sort -rnb |more[/code]

Post Reply