Avamar: logrotate reports warning: 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:0에 나타납니다.04 avamar logrotate: error: destination /var/log/wtmp-20220208.xz already exists


The warning도 serverlogscanner에 의해 선택되고 GUI에 표시됩니다.

Cause

이 문제는 Avamar를 최신 버전으로 업그레이드하는 동안 삭제되지 않은 왼쪽 파일로 인해 발생합니다.

Avamar 버전 19.1 이하는 SLES 11.x를 기반으로 하며, 이는 SySV 초기화 기반 OS이며 cron의 도움을 받아 로그 파일을 순환시키는 로그로테이트 프로세스를 활용합니다.
Avamar 19.2 이상은 시스템 기반 OS인 SLES 12.x를 기반으로 하며 로그 순환은 다르게 작동합니다.

Resolution

1. 영향을 받는 Avamar 노드에 관리자로 로그인합니다.
2. 권한을 루트

    su -

3으로 높입니다. 구성 파일이 /etc/cron.daily/etc/cron.d 디렉토리에 있는지 확인합니다.
샘플 출력:

root@avamar:~/#: ls -l /etc/cron.daily/
total 28-rwx
------ 1 root root 587 Oct 13 2017 logrotate-rwx
------ 1 root root 778 May 21 2019 mdadm-rwx
------ 1 root root 1875 Sep 1 2003 suse.de-backup-rc.config-rwx
------ 1 root root 2059 Sep 8 2003 suse.de-backup-rpmdb-rwx
------ 1 root root 1 2004년 7월 23일 suse.de-check-battery-rwx
------ 1 root root 1314 Jul 27 2005 suse.de-clean-tmp
-rwx------ 1 root root 371 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.