Avamar:logrotateレポートの警告: エラー:destination /var/log/wtmp-xxxxxxxx.xzがすでに存在し、ローテーションをスキップ

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に、次のような警告が表示されます。 :04 avamar logrotate: error: destination /var/log/wtmp-20220208.xz already exists


この警告はserverlogscannerによって取得され、GUIで表示されます。

Cause

この問題は、Avamarを新しいバージョンにアップグレードする際に削除されていない残りのファイルが原因で発生します。

Avamarバージョン19.1以前はSLES 11.xに基づいており、SySV initベースのOSであり、cronを使用してログ ファイルをローテーションするlogrotateプロセスを利用しています。
Avamar 19.2以降はSLES 12.xをベースにしており、システム ベースのOSであり、ログ ローテーションの動作は異なります。

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 Oct 13 2017 logrotate-rwx
------ 1 root root 778 May 2019 mdadm-rwx
------1 root 1875 sep 1 2003 suse.de-backup-rc.config-rwx
------ 1 root root 2059 2003年9月8日 suse.de-backup-rpmdb-rwx
------1 root root 566 Jul 23 2004 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 Mar 27 2019 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.