LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-14-2006, 02:53 PM   #1
inversecow
LQ Newbie
 
Registered: Aug 2005
Location: Victoria, British Columbia - Canada
Distribution: RHEL 5.5
Posts: 16

Rep: Reputation: 0
Root Partition Woes


Hello,

I know this sort of thing has been hashed over before, so here is a different spin. I have a server running Slackware 10.1, who keeps filling up it's Root partition (apparently on it's own).

So, is there a way to monitor/log disk write actions to a partition?

If such is possible, then perhaps I could "keep a watch" on what is eating up the space, and then solve the problem.

Any ideas/suggestions are welcome.
 
Old 02-14-2006, 03:24 PM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
By monitoring this you would in fact be taking up more space.
Are there any repeated log entries in your /var/log/syslog?
 
Old 02-14-2006, 03:50 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I'm no expert, but some quick questions come to my mind.
  1. Are you rotating and deleting old logs?
  2. Are you running scripts, either at bootup or periodically with cron (or both) that routinely deletes unnecessary temporary files?
  3. Do you use separate /var and /tmp partitions? Those file systems usually are the culprits for filling disk space.
  4. As this box is a server, are you providing user storage space and if so, are you using disk quotas?
  5. Which kinds of files or directories are consuming the most space?

To help answer some of these questions the du and df commands will provide disk usage information.

You also can use the find command to search for files exceeding a certain size or a certain age.

There are other tools such as Gkrellm that might help.

If you are using KDE, then Konqueror in file manager mode or the KFind utility are helpful in visually understanding where the problems occur.

There is a mini How-To here at LQ that might help:

Monitoring Harddrive usage automatically
 
Old 02-14-2006, 04:16 PM   #4
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
Go to your root partition (logged in as root) and enter the following command

du -s * | sort -n

Now you can see which directory's are taking up a lot of space.

check those directory's and repeat the du command if needed.

It's probably your logs (/var/log).
 
Old 02-15-2006, 10:30 AM   #5
inversecow
LQ Newbie
 
Registered: Aug 2005
Location: Victoria, British Columbia - Canada
Distribution: RHEL 5.5
Posts: 16

Original Poster
Rep: Reputation: 0
Some info

What confuses me is that the "ususal suspects" (eg: /var/log/ & /tmp) are both on seperate partitions. I will post back again once I have a scan over the logs to see if anything comes of that.

df -h output:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 950M 950M 0 100% /
/dev/sda6 19G 2.6G 15G 15% /usr
/dev/sda7 1.9G 37M 1.8G 3% /opt
/dev/sda8 479M 9.3M 445M 3% /tmp
/dev/sda9 19G 780M 17G 5% /var
/dev/sda10 47G 21G 24G 48% /share
/dev/sda11 94G 12G 77G 14% /home
/dev/sdb1 147G 314M 139G 1% /mnt/hosting
/dev/sdc1 147G 38G 102G 27% /mnt/backup
/dev/sde1 230G 17G 202G 8% /mnt/usbhuey

fstab
/dev/sda5 swap swap defaults 0 0
/dev/sda1 / ext3 defaults 1 1
/dev/sda6 /usr ext3 defaults 1 2
/dev/sda7 /opt ext3 defaults 1 2
/dev/sda8 /tmp ext3 defaults 1 2
/dev/sda9 /var ext3 defaults 1 2
/dev/sda10 /share ext3 defaults 1 2
/dev/sda11 /home ext3 suid,dev,exec 0 2
/dev/sdb1 /mnt/hosting ext3 suid,dev,exec 0 2
/dev/sdc1 /mnt/backup ext3 suid,dev,exec 0 2
/dev/sde1 /mnt/usbhuey ext3 defaults 1 1
#/dev/sde1 /mnt/usblouie ext3 defaults 1 1
/dev/sdf1 /mnt/usbdewey ext3 defaults 1 1
#/dev/sdg1 /mnt/usbdonald ext3 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
  


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
HELP: lost partition woes ... :S kevingpo Linux - Newbie 13 02-09-2006 12:34 PM
Realplayer10gold install woes.....root???? kittykaat Linux - Software 6 11-15-2004 07:49 AM
Partition Table Woes!!! rahulraj Linux - Newbie 2 06-13-2004 02:23 AM
partition woes :( katana Linux - General 1 09-26-2002 08:43 PM
RH 7.2 Partition Woes... PrincessDie Linux - Software 1 02-12-2002 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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