Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File system full

Status
Not open for further replies.

soltroy

Technical User
Sep 27, 2001
2
0
0
US
How do I go about getting this alleviated when I can't dump anything in my trash. I am extremely new to using UNIX in general and have been delegated the lovely task of fixing this server when I don't know anything about it. I am trying to learn on the fly. My company doesn't have any tech support on this server either. Could someone please help me out here.
 
trash? there is no trash bin in unix AFAIK.

for a full file system I usually do a "du -kad|sort -rn|more" within the mount point that is full

This should tell you your worst offending file or directory
 
A simpler approach might be:

df -k -- and look for a filesystem at 100%

cd directoryname -- to directory full

du -s * -- lists the size (in blocks) of each directory and then :


cd dirname --- to biggest

ls -ltr (full listing date sorted in reverse shows most recent at the bottom)

You then have to decide whether to simply remove the file or truncate it.

rm filename -- removes the file

cp /dev/null filename --- truncates the file

if you want you can:

tail -100 filename > filename.tmp --- create a new file with the last 100 lines before rm'ing the file.

and repeat until you find the offending file, chances are you will find a log file as the culprit.

Regards

Steve B.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top