tarballed
September 17th, 2003, 13:58
Good morning everyone.

Well, came into work today and checked out my OpenBSD box and I noticed that the / partition had gone from about 39% to 41% overnight...

I started to wonder what is doing this and now I need to figure out why. I have room left, but last thing I want is a full / partition.

Anyone have suggestions or tips on finding out what is growing the / partition?

I appreciate it.

T.

soup4you2
September 17th, 2003, 14:04
you could have some kinda file integrety checker looking at the / mountpoint and other areas to tell you what has changed or been added to the system. These sort of things are a verry good if not required thing to have.

if nothing else you can do a ls -Ral | grep time_or_datestamp of activity

soup4you2
September 17th, 2003, 14:11
sorry thinking about it i was wrong on the ls thingie..

best approach would be

ls -Ral / > 1.out

wait awhile

ls -Ral / > 2.out

then use diff to find the diffrences in the 2

diff 1.out 2.out

bmw
September 17th, 2003, 14:48
Anyone have suggestions or tips on finding out what is growing the / partition?
Use du to search for over-large dirs:
[code:1:1eed82a92f]du -x / | sort -nr[/code:1:1eed82a92f]look for the largest or most suspiciously large dir, eg /dev, and do it again.
[code:1:1eed82a92f]du -x /dev | sort -nr[/code:1:1eed82a92f]Note the results in a log.

Repeat this the next day, see what has grown.

frisco
September 17th, 2003, 15:49
How is the machine partitioned? Do you have things like /var on a separate partition? Show us a `df`.

Unless you're adding a lot of users, packages, or Stuff into root's $HOME, / shouldn't grow.