Avamar:由于缺少配置文件,ddrmaint.log未旋转。

Summary: 由于缺少 /etc/logrotate.d/ddrmaint 配置文件,ddrmaint.log文件未轮换。

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

ddrmaint.log的大小(在 /usr/local/avamar/var/ddrmaintlogs directory) 大于 25MB 的预期大小:

ls -al /usr/local/avamar/var/ddrmaintlogs 
total 1.7G
drwxr-x---  2 admin admin 4.0K Dec  5  2018 .
drwxr-xr-t 20 admin admin 4.0K Jul 20 06:00 ..
-rw-r-----  1 root  admin 1.7G Jul 20 14:26 ddrmaint.log
 

/etc/logrotate.d/ddrmaint 文件不存在:

ls -al /etc/logrotate.d/ddrmaint
ls: cannot access '/etc/logrotate.d/ddrmaint': No such file or directory
 

以下命令确认 dpnddrmaint 已安装:

rpm -qa | grep dpnddrmaint
dpnddrmaint-<Avamar_version>

Cause

此问题是由于作系统 (OS) 汇总包中的 sec_install_os_errata_sles.pl 脚本中的条件所致。
  • 它删除了多个 logrotate 然后,配置文件会根据节点类型替换它们。
  • 它通过是否存在 /usr/local/avamar/var/probe.xml 文件来确定这一点,该文件仅应存在于 Avamar Utility Node 上。

但是,由于在为站点配置 Avamar 软件之前不会创建 probe.xml 文件,因此仅当在已配置的网格上部署汇总包时,脚本才起作用。如果在配置之前进行安装时部署,则无法重新安装 logrotate Avamar Utility Node 的文件。

Resolution

要解决此问题,请 /etc/logrotate.d/ddrmaint 必须重新创建文件。
 
提醒:这特定于已安装的 SUSE 版本。
 
 

1.以管理员身份登录到 Avamar 应用工具节点。

2.提升到 root 权限。

3.确定正在运行的 SUSE 版本:

cat /etc/*release* |grep VERSION
 

如果版本为 11,请转至步骤 4。

如果版本为 12,请转至步骤 5。

4.创建并填充文件:

一个。创建文件:

vi /etc/logrotate.d/ddrmaint 
 

b.将内容粘贴到新创建的文件中:

/usr/local/avamar/var/ddrmaintlogs/ddrmaint.log {
    nodateext
    daily
    missingok
    notifempty
    nocompress
    noolddir
    nomail
    su root root
    create 0664 admin admin
    start 1
    rotate 40
    size 25M
    postrotate
        /usr/bin/killall -HUP syslog-ng
    endscript
}
 

c. 退出并保存文件。

d.d. 转到步骤 6。

5.创建并填充文件:

一个。创建文件:

vi /etc/logrotate.d/ddrmaint 
 

b.将内容粘贴到新创建的文件中:

/usr/local/avamar/var/ddrmaintlogs/ddrmaint.log {
    nodateext
    daily
    missingok
    notifempty
    nocompress
    noolddir
    nomail
    su root root
    create 0664 admin admin
    start 1
    rotate 40
    size 25M
    postrotate
        /usr/bin/systemctl reload syslog.service
    endscript
} 
 

c. 退出并保存文件。

d.d. 转到步骤 6。

6.通过运行以下命令来轮换ddrmaint.log:

logrotate -v -f /etc/logrotate.d/ddrmaint 

Affected Products

Avamar, Avamar Server
Article Properties
Article Number: 000080665
Article Type: Solution
Last Modified: 15 Jul 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.