PDA

View Full Version : SLES 10 server running out of space HELP!!!



ajensen
20-Mar-2012, 22:56
After a couple years of reliable service, my SLES10/OES2 file server is about to run out of space on the operating system partition. The files I'm hosting are on another partition and this partition has lot of space so I'm very confident that it's the operating system files and folders that are the problem.

I'm assuming that this problem has slowly snuck up on me over the last couple years it's been in service. Log files, accumulation of temp files? Due to my limited linux experience this server has many/most of the default settings since installation.

Sorry for my ignorance but I need a couple quick solutions to resolve this problem before the last 2GB of space is gone!

Any advice to configure the system so this won't happen again is also appreciated.

ab
21-Mar-2012, 03:21
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How is your partitioning currently setup? The output from `df -h` could
be useful.

Cleaning out /tmp during a reboot can sometimes help on a plain SLES
box. Cleaning /var/log somewhat is often valid. Both of those options'
validity depend on your partitioning setup, though, so let's start with
that `df -h` command output to see your space issues directly.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPaTs2AAoJEF+XTK08PnB5ZHUP/jvSJUNMk3Ss1XfPUr3c/O2D
o4T9AemPFoUO+7OP1yqo8DIxhuBdqX5wR5R5dsdYjZEda6o+ji PvtgvSN7XUehZw
UwqIG33z73xARXi2Prcjp+VrHS3AHFaC6ccthsoZ6MeCPnkKbm hw7wa4ZL8y/6bE
3D4tDKb2SVv13HDjmfvVUeqcyeK0W9/yabFI1kJMdkLoK0GFNNRuVfY/UBqIw/jz
S2o+IO6XM1clV/UStRI8K/F2zMkDPwNwwVqsmkCFO/lHGTfqnrKhyP6aQtKXkkn5
snNCU/0ADGmr1eAfxJl/o6Pln7ZYXvIqW3IkNCeDBU7fB2agPIcDdlx/yKUaVDDD
WTqKftpgFc8vGeQx5KQheyI0so6TUiwcvxfN4e99otLYXJhnxE evDjz4LyupdjWJ
xpjaZAoTr4zqR/ES5IRlve1j28078u3h8OFhvepYR8n6ogf2kBb6vW0m7vTMUYnI
0MLYkdd49IV+FGXAd0FIrbZ/zIfRUn/teG6YKS2NRMxiA1M6Ogqe+xKfqy3NGouH
q99WUct7YrgoucBgexLHbCfEvS27/T074pVIlClHNdm3MYM+T0O9pt8I+wLzGMu8
usdC4Tm4bwEC70C14JMxEzuBE1O/U8Mwyg4GxE7IRuuZY9+Nor7EL7giN/fdVGk/
XHvz57yd5ixGq5T/Py6Z
=1yla
-----END PGP SIGNATURE-----

Magic31
21-Mar-2012, 09:20
After a couple years of reliable service, my SLES10/OES2 file server is about to run out of space on the operating system partition. The files I'm hosting are on another partition and this partition has lot of space so I'm very confident that it's the operating system files and folders that are the problem.

I'm assuming that this problem has slowly snuck up on me over the last couple years it's been in service. Log files, accumulation of temp files? Due to my limited linux experience this server has many/most of the default settings since installation.

Sorry for my ignorance but I need a couple quick solutions to resolve this problem before the last 2GB of space is gone!

Any advice to configure the system so this won't happen again is also appreciated.

As Aaron stated it would good to know more about the current partition setup and uses of the server.

You mention this system has been running for a couple of years, could be you just need some cleanup maintenance and the partitioning is fine.

To have a quick overview of the biggest directories in volume, and only for the root partition, try this command (as root):

du / -kx | sort -nr | head -n 30

The above runs the "du" command and specifies to look in root, the "k" option lists everything in kilobytes - as to be able to sort correctly, and the "x" option stays within the partition defined for the root (/) mount point.
Then that output is sorted on largest numbers downwards and finally the head command snips off the first 30 lines.

-Willem

GofBorg
21-Mar-2012, 16:43
Not sure how much space you spec'd when you installed SuSE but
be sure to account for updates.

As for buying time, look for any out of control log files in /var/log, clean
them out.

You can look for large files in general by doing a

find . -size +10000 -print | more

You can specify different byte sizes. This command will start
looking in the current directory you are in. Obviously root
access is required to search some folders.

halseru
03-Oct-2012, 20:58
Not sure how much space you spec'd when you installed SuSE but
be sure to account for updates.

As for buying time, look for any out of control log files in /var/log, clean
them out.

You can look for large files in general by doing a

find . -size +10000 -print | more

You can specify different byte sizes. This command will start
looking in the current directory you are in. Obviously root
access is required to search some folders.

I ran into the same issue,
used these commands

du -h --max-depth=1 see what is in dirs 1 level down tin dir tree
ps -eo ppid,pid,user,stat,pcpu,comm,wchan:32

the problem ended being dsrmenu.sh was running on the server multiple times and ate 11G of space on my 16G root partition. there are no TIDs on this but running top and killing the PIDs instantly my server space was back