LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-08-2009, 11:04 PM   #1
ben randall
LQ Newbie
 
Registered: Apr 2009
Location: Malaysia
Distribution: Slackware 12.2, Fedora 10
Posts: 7

Rep: Reputation: 0
/root drained up all the disk space


hi all..
i'm manages 4 CentOS server farms which serves around 2000 clients.
All the servers in a good condition except for the server no.4.
the server's hard disk is drained up pretty fast,even after clearing cache,disk usage is still around 90%.
After investigating where all the space gone,i found that /root directory consumes 86Gb,which is 87% of total disk space..But i haven't found any suspicious files inside /root..
please help..
any ideas is highly appreciates..Thank you in advanced.
 
Old 07-08-2009, 11:18 PM   #2
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Rep: Reputation: 31
Quote:
Originally Posted by ben randall View Post
hi all..
i'm manages 4 CentOS server farms which serves around 2000 clients.
All the servers in a good condition except for the server no.4.
the server's hard disk is drained up pretty fast,even after clearing cache,disk usage is still around 90%.
After investigating where all the space gone,i found that /root directory consumes 86Gb,which is 87% of total disk space..But i haven't found any suspicious files inside /root..
please help..
any ideas is highly appreciates..Thank you in advanced.
I'm a little confused. You are saying that 87% of /root disk space is filled up but are are not sure what is causing it?

Have you done a "du -h /roor/" to see how big those files actually are? Sounds like to me you have some more cleaning to do.
 
Old 07-08-2009, 11:37 PM   #3
ben randall
LQ Newbie
 
Registered: Apr 2009
Location: Malaysia
Distribution: Slackware 12.2, Fedora 10
Posts: 7

Original Poster
Rep: Reputation: 0
thanks Biggen.."du -h /root/" produce a very long output..mostly comes from /root/.trash.
how to permanently clear all the files?
 
Old 07-09-2009, 12:21 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,361

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Empty the trash ???
You should first note what's in there, & fix the problem, otherwise you'll be doing this again ... and again ...
 
Old 07-09-2009, 01:02 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
How the heck do you get so much in /root? Or your client?

I have always associated .trash with a GUI, but that might have changed. So the question would be why there is a GUI on a server?
 
Old 07-09-2009, 01:11 AM   #6
ben randall
LQ Newbie
 
Registered: Apr 2009
Location: Malaysia
Distribution: Slackware 12.2, Fedora 10
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Empty the trash ???
You should first note what's in there, & fix the problem, otherwise you'll be doing this again ... and again ...
all those files are originates from SARG..it keep storing data but didn't reuse the directory..so,i remove the files.that was the problems.so,i get rid of SARG,since it doesn't important to the system anymore.
 
Old 07-09-2009, 01:20 AM   #7
ben randall
LQ Newbie
 
Registered: Apr 2009
Location: Malaysia
Distribution: Slackware 12.2, Fedora 10
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Wim Sturkenboom View Post
How the heck do you get so much in /root? Or your client?
it's was regenerated by SARG..
 
Old 07-13-2009, 04:51 PM   #8
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
You could try

to purge all the files from the trash

Code:
rm -rf --preserve-root /root/.trash/*
and then, to prevent anything from putting anything in your trash ever again, make the .trash directory immutable (unwritable)

Code:
chattr +i /root/.trash

Last edited by x_terminat_or_3; 07-15-2009 at 01:09 AM. Reason: Typo
 
Old 07-14-2009, 06:13 PM   #9
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by x_terminat_or_3
and then, to prevent anything from putting anything in your trash ever again, make the .trash directory immutable (unwritable)

Code:
chattr +i /root/.ssh
Right idea, but wrong directory. That will prevent him from ever saving new host keys again.
 
Old 07-15-2009, 01:09 AM   #10
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Yes you are right, I meant to write .Trash, of course, occupational hazard I guess because I find myself making .ssh folders immutable quite often.
 
Old 07-15-2009, 11:07 PM   #11
ben randall
LQ Newbie
 
Registered: Apr 2009
Location: Malaysia
Distribution: Slackware 12.2, Fedora 10
Posts: 7

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by x_terminat_or_3 View Post
You could try

to purge all the files from the trash

Code:
rm -rf --preserve-root /root/.trash/*
and then, to prevent anything from putting anything in your trash ever again, make the .trash directory immutable (unwritable)

Code:
chattr +i /root/.trash
yes.it works.
 
Old 07-15-2009, 11:08 PM   #12
ben randall
LQ Newbie
 
Registered: Apr 2009
Location: Malaysia
Distribution: Slackware 12.2, Fedora 10
Posts: 7

Original Poster
Rep: Reputation: 0
thanks a lot folks for your generous help.
 
  


Reply



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
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
/root/.xsession-errors is taking up the entire free space on disk! Freeek Linux - General 5 10-06-2003 01:02 PM
Boot/Root Disk - No Enough Space! ryanstrayer Linux - General 7 02-06-2002 11:33 PM

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

All times are GMT -5. The time now is 10:24 AM.

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