Avamar: logrotate reports warning: Fehler: destination /var/log/wtmp-xxxxxxxx.xz already exists, skipping rotation
Summary: Die Avamar-Protokollrotation meldet, dass die Zielprotokolldatei bereits vorhanden ist.
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
Eine Warnmeldung ähnlich der folgenden wird in /var/log/messages:
2022/02/08-18:15:07 GMT 1 ERROR avamar 8. Februar 18:1 angezeigt. 5:04 avamar logrotate: error: destination /var/log/wtmp-20220208.xz already exists
The warning is being pick up by the serverlogscanner and presented in the GUI.
2022/02/08-18:15:07 GMT 1 ERROR avamar 8. Februar 18:1 angezeigt. 5:04 avamar logrotate: error: destination /var/log/wtmp-20220208.xz already exists
The warning is being pick up by the serverlogscanner and presented in the GUI.
Cause
Das Problem wird durch die übrig gebliebenen Dateien verursacht, die während des Avamar-Upgrades auf eine neuere Version nicht gelöscht wurden.
Die Avamar-Versionen 19.1 und niedriger basierten auf SLES 11.x, einem SySV-init-basierten Betriebssystem, das den Protokollrotationsprozess mithilfe eines Crons nutzt, um die Protokolldateien zu rotieren.
Avamar 19.2 und höher basieren auf SLES 12.x, einem systembasierten Betriebssystem, und die Protokollrotation funktioniert anders.
Die Avamar-Versionen 19.1 und niedriger basierten auf SLES 11.x, einem SySV-init-basierten Betriebssystem, das den Protokollrotationsprozess mithilfe eines Crons nutzt, um die Protokolldateien zu rotieren.
Avamar 19.2 und höher basieren auf SLES 12.x, einem systembasierten Betriebssystem, und die Protokollrotation funktioniert anders.
Resolution
1. Melden Sie sich beim betroffenen Avamar-Node als Admin-Benutzer an.
2. Erhöhen Sie die Berechtigungen auf root
su -
3. Überprüfen Sie, ob die Konfigurationsdateien in den Verzeichnissen /etc/cron.daily und /etc/cron.d vorhanden sind.
Beispielausgabe:
root@avamar:~/#: ls -l /etc/cron.daily/
total 28-rwx
------ 1 root root 587 Oct 13 2017 logrotate
-rwx------ 1 root root 778 21. Mai 2019 mdadm-rwx
------ 1 root root 1875 Sep 1 2003 suse.de-backup-rc.config-rwx
------ 1 root root 2059 8. September 2003 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 Sep 1 2003 suse.de-cron-local
root@avamar:~/#: ls -l /etc/cron.d/
total 4.0K-rw
------- 1 root root 63 März 27 2019 novell.com-suse_register
4. Verschieben Sie alle Dateien aus beiden Verzeichnissen in ein temporäres Verzeichnis, das unter /home/admin
mkdir /home/admin/cron_files
mv /etc/cron.daily/* /home/admin/cron_files
mv /etc/cron.d/* /home/admin/cron_files
5 erstellt wurde. Verfahren abgeschlossen
2. Erhöhen Sie die Berechtigungen auf root
su -
3. Überprüfen Sie, ob die Konfigurationsdateien in den Verzeichnissen /etc/cron.daily und /etc/cron.d vorhanden sind.
Beispielausgabe:
root@avamar:~/#: ls -l /etc/cron.daily/
total 28-rwx
------ 1 root root 587 Oct 13 2017 logrotate
-rwx------ 1 root root 778 21. Mai 2019 mdadm-rwx
------ 1 root root 1875 Sep 1 2003 suse.de-backup-rc.config-rwx
------ 1 root root 2059 8. September 2003 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 Sep 1 2003 suse.de-cron-local
root@avamar:~/#: ls -l /etc/cron.d/
total 4.0K-rw
------- 1 root root 63 März 27 2019 novell.com-suse_register
4. Verschieben Sie alle Dateien aus beiden Verzeichnissen in ein temporäres Verzeichnis, das unter /home/admin
mkdir /home/admin/cron_files
mv /etc/cron.daily/* /home/admin/cron_files
mv /etc/cron.d/* /home/admin/cron_files
5 erstellt wurde. Verfahren abgeschlossen
Affected Products
Avamar ServerArticle 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.