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

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

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

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.

Cause

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.

Resolution

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

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.