1

It seems that when you run out of disk space all remote logins are prevented [I'm using Red Hat 4.4]. Apparently this is because all non-superuser logins have to write to /var/log/auth.log

This is a common occurence when /var/tmp/cores gets filled due to (user) programs crashing, or a process generating tons of log (under /var/tmp).

What configuration changes can be made to prevent this occurring?

Can + do you:

  • put /var/tmp on a different filesystem?
  • put /var/log on different filesystem?
  • enforce a strict separate of filesystems accessible user + system processes?

1 Answers1

3

There are several things that you need to do to prevent problems and possibly system crash in the future:

  1. Create separate partitions for /var, /var/log, /tmp and possibly others to help your system survive (hopefully) in case of one partition got filled accidentally.
  2. Use reasonable logrotate configuration to allow a good amount of logs and not consuming a lot of space. You can also compress the logs to reduce log size.
  3. Run some monitoring tools to inform you early enough when you are about to exceed some configured threshold such 50% or 75% of your partition(s).
  4. Fix any buggy software or lower the debug level when applicable and not needed. BTW, lowering debug level will improve performance.
Khaled
  • 35,688
  • 8
  • 69
  • 98