0

我的服务器上有一个名为 TTY_00000000.log 的日志文件,它的大小超过 2GB。谁能让我知道我是否可以清空这个文件以及如何停止创建这个巨大的日志或无论如何最小化它们?

谢谢,

高拉夫。

4

1 回答 1

2

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
于 2012-08-10T15:57:46.683 回答