我的服务器上有一个名为 TTY_00000000.log 的日志文件,它的大小超过 2GB。谁能让我知道我是否可以清空这个文件以及如何停止创建这个巨大的日志或无论如何最小化它们?
谢谢,
高拉夫。
See this thread. Quotes:
These are a very important debugging tool for the PERC 5 controllers so the ability to disable them is not exposed.
What you need is a simple logrotate script (Dell should have included one). Compression would save almost all the space since they are a lot of repetitive text.
cat > /etc/logrotate.d/omsa-tty <<EOF
/var/log/TTY_00000000.log {
monthly
notifempty
rotate 15
compress
}
EOF