About log rotation in NetBackup for OpenStack
Use log rotation to ease administration of the systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. You can handle each log file daily, weekly, monthly, or when it grows too large.
logrotate is a Linux utility, which runs as a scheduled cron job. It reads the information from the configuration files. You can configure log rotation by updating these configuration files.
On the RHOSP platform, after configuration changes for log rotation, you must update the stack for the changes to take effect.
Empty VxMS log files are cleaned up automatically after 8 days.
Table: Log rotation default options for Kolla and Ansible describes the default options that are used to configure log rotation on Kolla and Ansible.
Table: Log rotation default options for Kolla and Ansible
Component | Log rotation default options |
|---|---|
NBOSJM | Configuration file: /var/log/nbosjm/*.log {
missingok
notifempty
copytruncate
size 25M
rotate 30
compress
dateformat -%Y%m%d-%H
}
/var/NetBackupOpenStack-mounts/*/*/*.log {
su root nova
missingok
compress
delaycompress
notifempty
copytruncate
size 25M
rotate 30
dateformat -%Y%m%d-%H
}
/var/NetBackupOpenStack-mounts/*/*.log {
su root nova
missingok
compress
delaycompress
notifempty
copytruncate
size 25M
rotate 30
dateformat -%Y%m%d-%H
}
|
NBOSDMAPI | Configuration file: /var/log/kolla/nbosdmapi/nbosdmapi.log {
daily
missingok
notifempty
copytruncate
size=25M
rotate 30
maxage 30
compress
dateformat -%Y%m%d-%H
}
|
VxMS and NBOSDM | Configuration file: /var/log/kolla/nbosdm/nbosdm.log {
daily
missingok
notifempty
copytruncate
size=25M
rotate 30
maxage 30
compress
dateformat -%Y%m%d-%H
}
/usr/openv/netbackup/logs/vxms/*.log {
daily
missingok
notifempty
copytruncate
size=1M
rotate 5
postrotate
find -daystart -mtime +30 -delete
find -daystart -mtime +7 -size 0 -delete
endscript
compress
dateformat -%Y%m%d-%H
}
|
Table: Log rotation default options for RHOSP describes the default options that are used to configure log rotation on RHOSP.
Table: Log rotation default options for RHOSP
Component | Log rotation default options |
|---|---|
NBOSJM | Configuration file: /var/log/nbosjm/*.log {
missingok
notifempty
copytruncate
size 25M
rotate 30
compress
dateformat -%Y%m%d-%H
}
/var/NetBackupOpenStack-mounts/*/*/*.log {
su root nova
missingok
compress
delaycompress
notifempty
copytruncate
size 25M
rotate 30
dateformat -%Y%m%d-%H
}
/var/NetBackupOpenStack-mounts/*/*.log {
su root nova
missingok
compress
delaycompress
notifempty
copytruncate
size 25M
rotate 30
dateformat -%Y%m%d-%H
}
|
NBOSDM and NBOSDMAPI | Refer to the following file on the director node: |
VxMS | Configuration file: /etc/logrotate.d/vxms
/var/log/vxms/*.log {
daily
missingok
notifempty
copytruncate
size=1M
rotate 5
postrotate
find -daystart -mtime +30 -delete
find -daystart -mtime +7 -size 0 -delete
endscript
compress
dateformat -%Y%m%d-%H
}
|