|
|

楼主 |
发表于 2004-12-16 16:51:22
|
显示全部楼层
httpd (Apache web server) is not running or cannot be started due to a out-of-space problem. The following error message is seen in /var/log/appliance-setup.log:
Waiting for tomcat to initialize...
........Starting httpd:fopen:No space left on device
httpd:could not open error log file /etc/httpd/logs/error_log.
[FAILED]
There are many (thousands) mgetty.log files generated in the /var/log directory. This large number of log files uses up all file system resources and the file system is not able to accommodate any more new file. Once the log files are removed, the system can function normally.
After inspecting the logrotate configuration file (/etc/logrotate.d/mgetty) that comes with mgetty, it was found that there is a mis-configuration in the file:
/var/log/mgetty.log.tty* {
nocompress
missingok
}
The wide-card asterisk commands logrotate to rotate not only the mgetty.log.ttyS0 file, but all the files that are created in each of the subsequent rotation. Eventually, all the file system resources are used up.
This is a two-step workaround:
First, remove existing mgetty log files with the command:
find /var/log -name 'mgetty.log.ttyS0.*' -print | xargs rm -fr
Second, correct the mgetty logrotate configuration (/etc/logrotate.d/mgetty) as follows:
/var/log/mgetty.log.ttyS0 {
nocompress
missingok
} |
|