Avamar:logrotate 报告警告: error: destination /var/log/wtmp-xxxxxxxx.xz already exists, skipping rotation

Summary: Avamar 日志轮换报告目标日志文件已存在。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

在 /var/log/messages:

2022/02/08-18:15:07 GMT 1 ERROR avamar Feb 8 18:15:15 中出现类似于以下内容的警告 04 avamar logrotate: error: destination /var/log/wtmp-20220208.xz already exists


此警告也由 serverlogscanner 接收并显示在 GUI 中。

Cause

此问题是由 Avamar 升级到较新版本期间未删除的剩余文件引起的。

Avamar 版本 19.1 及更低版本基于 SLES 11.x,SLES 11.x 是基于 SySV 初始化的操作系统,在 cron 的帮助下利用 logrotate 进程来轮换日志文件。
Avamar 19.2 及更高版本基于 SLES 12.x,SLES 12.x 是基于系统的操作系统,日志轮换的工作方式不同。

Resolution

1.以管理员用户身份登录到受影响的 Avamar 节点。
2.将权限提升为 root

    su -

3。验证 /etc/cron.daily/etc/cron.d 目录中是否存在配置文件。
输出示例:

root@avamar:~/#: ls -l /etc/cron.daily/
total 28-rwx
------ 1 root root 587 2017 年 10 月 13 日 logrotate-rwx
------ 1 root root 778 2019 年 5 月 21 日 mdadm-rwx
------ 1 根根 1875 2003 年 9 月 1 日 suse.de -backup-rc.config-rwx
------ 1 root root 2059 Sep 8 2003 suse.de-backup-rpmdb-rwx
------ 1 root root 2003 2004 年 7 月 23 日 566 suse.de-check-battery-rwx
------ 1 根根 1314 2005 年 7 月 27 日 suse.de-clean-tmp
-rwx------ 1 root root 371 Sep 1 2003 年 9 月 1 日 suse.de-cron-local

root@avamar:~/#: ls -l /etc/cron.d/
total 4.0K-rw
------- 1 root root 63 2019 年 3 月 27 日 novell.com-suse_register


4.将所有文件从两个目录移动到在 /home/admin

mkdir /home/admin/cron_files
mv /etc/cron.daily/* /home/admin/cron_files
mv /etc/cron.d/* /home/admin/cron_files


5 下创建的临时目录。过程完成

Affected Products

Avamar Server
Article Properties
Article Number: 000211181
Article Type: Solution
Last Modified: 01 Aug 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.