LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-29-2001, 10:00 AM   #1
jackiesolomon
LQ Newbie
 
Registered: May 2001
Posts: 4

Rep: Reputation: 0
Question


The / filesystem on one of my servers is full.
The filesystem type is ext2.
Redhat 6.2

I know that I could possibly resize the filesystem or
just prune the unwanted from the filesystem, but I have
not been able to do so successfully.

Any help is greatly appreciated.


 
Old 05-29-2001, 10:34 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
Is there a reason why u couldnt do it?
If it wont let u logon, boot "linux single" or use a bootdisk from the distro or tomsrtbt.
I would first look in /tmp, and /usr/local/tmp for files that can be trashed immediately, then work ure way tru the rest of /var like logs, mail, print & faxes spools. If that doesnt fix it (u didnt state what type box this is) the /home/$user dirs are next :-]

Dunno bout resizing tho, never needed that, and the "find -prune" syntax is too wild for me.
 
Old 05-29-2001, 11:13 AM   #3
jackiesolomon
LQ Newbie
 
Registered: May 2001
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry for the lack of info.

I have been unable to find the problem files to remove.

Here is what the filesystems look like.
If I remember correctly, var is seperate from the / system.


/dev/sda1 50541 50509 0 100% /
/dev/sda9 2101623 1322669 670309 66% /home
/dev/sda7 991995 157 940588 0% /tmp
/dev/sda3 436259 251459 171284 59% /usr
/dev/sda8 298365 24909 258046 9% /var
admin.granbury.com:/ 50541 35675 12256 74% /mnt/admin
admin.granbury.com:/usr/local/BigBrother
496643 428376 42616 91% /usr/local/BigBrother
admin.granbury.com:/var
1487187 921121 489216 65% /mnt/admin/var
mail.granbury.com:/ 50541 33278 14653 69% /mnt/mail
mail.granbury.com:/var/spool/mail
2646685 1611875 897954 64% /var/spool/mail
mail.granbury.com:/usr/src
2646685 1611875 897954 64% /usr/src
mail.granbury.com:/var
2646685 1611875 897954 64% /mnt/mail/var
 
Old 05-29-2001, 12:17 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
well, this is definately -weird-. If I break down the system only looking at the rootsystem this should be the contents:

/boot (static, kernel)
/bin (static, sysprogs)
/sbin (static, sysprogs)
/etc (static, configs)
/lib (static, libs & modules)
/dev (static, devices, used by trojans to hide dirs in)
/mnt (static, empty)
/misc (static, empty)
/lost+found (fsck dumps)
/proc <- (dynamic, virtual)
/root <- (..)
mounts{
/home
/usr
/var
/tmp}

this means, without deliberate action like installing, core dumps for root, or fsck filling up /lost+found with dumps, the rootsystem -can't- fill this way.

now, clearing out the rootsystem is a serious & destructive task that can only be done locally & manual. Without any knowledge of how the system has behaved in the hours/days before this has happened I cant make any recommendations.

Can u enlighten me a bit on the history of the box? Previous disk problems or other irratic behaviour?
U have tried to find core dumps (rm manually)?
Code:
"find / -name core -print -xdev"
Or files that where -accessed- x minutes or n*24 hrs before u noticed the fillage?
Code:
"find / -amin x -print -xdev"
Code:
"find / -atime +n -print -xdev"
Then theres searches on size, but depending on if it is one large file or lotsa small files ud have to shift size y, k is for kilobytes.
Code:
"find / -size yk -print -xdev"
for each -print will print the filename and -xdev doesnt descend into other filesystems. maybe a good idea to umount all mounts cuz I dont know how to keep it from following mounts.

*btw, I found a free package at sourceforge.net called ext2resize but it shouldnt be used on a live system or with valuable data.
 
Old 05-29-2001, 01:12 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
-shit- I forgot the most important part!
Go tru the logfiles first for clues!
 
Old 05-29-2001, 01:40 PM   #6
jackiesolomon
LQ Newbie
 
Registered: May 2001
Posts: 4

Original Poster
Rep: Reputation: 0
Angry / filesystem

Crap.
I think you have hit on something.
I was attempting install some new modules for
perl on this webserver about the time that the system
filled up. I did not think that the mods would go to the / system though.
What should I do to check into this?

Thanks.
 
Old 05-29-2001, 04:07 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
did u use the cpan shell? cuz mine dumps the tarballs & pre install makes in a sub of /root/.cpan ...
anyway, its NOT installed in / but sposed to go into /usrlib/perl#/

Id say if ure comfortable with it, go for a manual file check, maybe with the stuff from my previous reply.

No luck on logfile errors?
 
Old 05-29-2001, 04:41 PM   #8
jackiesolomon
LQ Newbie
 
Registered: May 2001
Posts: 4

Original Poster
Rep: Reputation: 0
I did use the cpan shell, in attempt to grab all the dependencies that each mod needed.
There is stuff in the /root/.cpan dir. (about 18 megs)
Is it safe to remove this stuff?
If so, does the scripts that cpan uses usually cleanup these dirs after a install success or failure?
I will do a manual file check also....
Logfiles looked like the / filled up from installs.
The / on this server is about 50 megs.

Thanks again.
 
Old 05-29-2001, 07:12 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Its safe to remove missing deps will be fetched the next time tho, I dont know how to set a different tmpdir, and no, strangely it doesnt clean up after itself, du -m -s .cpan shows 12megs of tarballs and modules...

Try installing diskcheck, and set the config to daily for warnings on max disk usage. Finer grained control is found in Aide, but I guess thats a bit overkill :-]
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
best filesystem TranceDude Linux - Software 2 08-12-2005 03:35 PM
Which filesystem should I use? dyefade Linux - Hardware 2 01-04-2005 03:05 PM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
Cant get RW filesystem amp2000 Linux - General 4 04-30-2002 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:16 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