LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-05-2010, 04:54 AM   #1
farnaw4u
Member
 
Registered: Aug 2006
Posts: 38

Rep: Reputation: 15
How do I free up space on / directory as it is 100% full


Hi,

i am using Redhat Linux 4 AS ,

i checked space and foud that / is 100% full . like below

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 2316536 2179008 19852 100% /
/dev/hda2 101107 9324 86562 10% /boot
/dev/hda6 1683960 70256 1528160 5% /home
none 192012 0 192012 0% /dev/shm

Can anyone advise me as to how to create more space on / directory?
or decrease size in / directory.

Thank you,
 
Old 05-05-2010, 05:16 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Since / has no /tmp, /var/tmp and /var split out, and depending on how long the server was not properly managed and what services it runs, those are the "usual suspects", I'd look there first. For example to find files in /var in top-10 order of size try 'du -xmS /var/* /tmp/*|sort -nrk1|head -10' or to find all files in / greater than 100 megs try 'find / -type f -a -size +100M -ls'. Might have to adjust switches on RHEL4. If the results indicate log files then they probably should be compressed and backed up to another system for parsing (Logwatch?) before deletion. If you want to delete logs immediately then make certain the file is not in use with 'fuser -v /path/filename' (else shut down service or application first) then try '$>/path/filename'.
 
1 members found this post helpful.
Old 05-05-2010, 05:33 AM   #3
zijuan
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
Since / has no /tmp, /var/tmp and /var split out, and depending on how long the server was not properly managed and what services it runs, those are the "usual suspects", I'd look there first. For example to find files in /var in top-10 order of size try 'du -xmS /var/* /tmp/*|sort -nrk1|head -10' or to find all files in / greater than 100 megs try 'find / -type f -a -size +100M -ls'. Might have to adjust switches on RHEL4. If the results indicate log files then they probably should be compressed and backed up to another system for parsing (Logwatch?) before deletion. If you want to delete logs immediately then make certain the file is not in use with 'fuser -v /path/filename' (else shut down service or application first) then try '$>/path/filename'.
Good job!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] df reports 100% full yet 18Gb free? TonyAR Linux - Server 3 04-19-2010 12:28 PM
disk space is full ( / is 100% in use) samengr Linux - General 3 01-26-2008 09:38 AM
100% inodes but 99% free space smartes Linux - General 1 04-20-2006 12:42 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
How do I free up space on / directory? I'm at 100% in use diamonaj Linux - Newbie 1 01-17-2004 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration