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:07 GMT 1 錯誤 avamar 2 月 8 日出現類似警告 04 avamar logrotate: error: destination /var/log/wtmp-20220208.xz already the
warning by by the serverlogs 掃描er 也正在挑選,並顯示在 GUI 中。
2022/02/08-18:15:07 GMT 1 ERROR avamar Feb 8 18:15:07 GMT 1 錯誤 avamar 2 月 8 日出現類似警告 04 avamar logrotate: error: destination /var/log/wtmp-20220208.xz already the
warning by by the serverlogs 掃描er 也正在挑選,並顯示在 GUI 中。
Cause
此問題是由在 Avamar 升級至較新版本期間未刪除的檔案所造成。
Avamar 版本 19.1 及以下是以 SLES 11.x 為基礎,SySV Init 型作業系統,並利用 cron 的記錄程式來旋轉記錄檔。
Avamar 19.2 和更新版本是以 SLES 12.x 為基礎,SLES 12.x 是以系統為基礎的作業系統,記錄輪替的運作方式不同。
Avamar 版本 19.1 及以下是以 SLES 11.x 為基礎,SySV Init 型作業系統,並利用 cron 的記錄程式來旋轉記錄檔。
Avamar 19.2 和更新版本是以 SLES 12.x 為基礎,SLES 12.x 是以系統為基礎的作業系統,記錄輪替的運作方式不同。
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 2017 logrotate-13
rwx------1 root 778 May 2019 mdadm-rwx
------ 1 root 1875 sep 2003 年 9 月 1 日 suse.de-backup-rc.config-rwx
------1 root 2059 Sep 8 2003 suse.de-backup-rpmdb-rwx
------ 1 root root 1 2004 年 7 月 23 日 suse.de-check-battery-rwx
------ 1 root 1314 七月 27 日 2005 suse.de-clean-tmp
-rwx------ 1 root root 371 sep 2003 年 9 月 1 日 suse.de-cron-local
root@avamar:~/#: ls -l /etc/cron.d/
total 4.0K-rw
------- 1 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 下建立的臨時目錄。程式完成
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 2017 logrotate-13
rwx------1 root 778 May 2019 mdadm-rwx
------ 1 root 1875 sep 2003 年 9 月 1 日 suse.de-backup-rc.config-rwx
------1 root 2059 Sep 8 2003 suse.de-backup-rpmdb-rwx
------ 1 root root 1 2004 年 7 月 23 日 suse.de-check-battery-rwx
------ 1 root 1314 七月 27 日 2005 suse.de-clean-tmp
-rwx------ 1 root root 371 sep 2003 年 9 月 1 日 suse.de-cron-local
root@avamar:~/#: ls -l /etc/cron.d/
total 4.0K-rw
------- 1 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 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.