什么是 P4LOG?为什么填满了?

What is P4LOG? Why it's filled up?

我公司使用的是 perforce,上次我们开始接收 "The filesystem 'P4LOG' has only XXX free, but the server configuration requires at least YYY available"。这是什么意思。我尝试 google,但我发现这是一个环境变量 - Name and path of the file to which Perforce errors are written. 我们要求我们的管理员解决这个问题,他增加了最小文件大小,这在一段时间内消除了错误,但后来又出现了再次。为什么会出现这个警告?如何预防?

您的管理员需要停止日志轮换。日志轮换将压缩最近的日志并删除旧的。

您的管理员可以设置 Perforce's specific log rotation tool, or use the standard Linux logrotate tool。如果您不想 运行ning 在 Perforce 服务器上的磁盘 space 之外,这是必不可少的。

正如 p4 logrotate 文档中提到的,p4 logrotate 在 checkpointing or journaling 事件中自动发生。您应该设置检查点和日志记录,这样您就不会 运行 如果 p4 服务器出现问题而失去整个软件仓库的风险。