Avamar: avviso report logrotate: errore: destination /var/log/wtmp-xxxxxxxx.xz already exists, ignorando la rotazione

概要: La rotazione del log Avamar segnala che il file di registro di destinazione esiste già.

この記事は次に適用されます: この記事は次には適用されません: この記事は、特定の製品に関連付けられていません。 すべての製品パージョンがこの記事に記載されているわけではありません。

現象

In /var/log/messages viene visualizzato un avviso simile a quello riportato di seguito :

2022/02/08-18:15:07 GMT 1 ERROR avamar 8 feb 18:15:04 avamar logrotate: error: destination /var/log/wtmp-20220208.xz already exists


The warning is be picked up by the serverlogscanner and presented in the GUI.

原因

Il problema è causato dai file di sinistra che non sono stati eliminati durante l'aggiornamento di Avamar a una versione più recente.

Le versioni di Avamar 19.1 e precedenti erano basate su SLES 11.x, che è un sistema operativo basato su init SySV e utilizza il processo di logrotate con l'aiuto di un cron per ruotare i file di registro.
Avamar 19.2 e versioni successive si basano su SLES 12.x, un sistema operativo basato su sistema e la rotazione dei registri funziona in modo diverso.

解決方法

1. Accedere al nodo Avamar interessato come utente amministratore.
2. Elevare i privilegi al root

    su -

3. Verificare che i file di configurazione esistano nelle directory /etc/cron.daily e /etc/cron.d.
Output di esempio:

root@avamar:~/#: ls -l /etc/cron.daily/
total 28-rwx
------ 1 root root 587 Oct 13 2017 logrotate-rwx
------ 1 root root 778 21 maggio 2019 mdadm-rwx
------ 1 root root 1875 Set 1 2003 suse.de-backup-rc.config-rwx
------ 1 root root 2059 Set 8 2003 suse.de-backup-rpmdb-rwx
------ 1 root 1 23 lug 2004 suse.de-check-battery-rwx
------ 1 root root 1314 Jul 27 2005 suse.de-clean-tmp
-rwx------ 1 root root 371 Set 1 2003 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. Spostare tutti i file da entrambe le directory in una directory temporanea creata in /home/admin

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


5. Procedura completata

対象製品

Avamar Server
文書のプロパティ
文書番号: 000211181
文書の種類: Solution
最終更新: 01 8月 2025
バージョン:  4
質問に対する他のDellユーザーからの回答を見つける
サポート サービス
お使いのデバイスがサポート サービスの対象かどうかを確認してください。