NetBackup™ for OpenStack Administrator's Guide
- Introduction
- Deploying NetBackup for OpenStack
- Requirements
- NetBackup for OpenStack network considerations
- Preparing the installation
- Spinning up the NetBackup for OpenStack virtual machine
- Installing NetBackup for OpenStack Components
- Installing on RHOSP
- Prepare for deployment
- Updating the overcloud roles data file to include NetBackup for OpenStack services
- Additional Steps on NetBackup for OpenStack Appliance
- Installing on Ansible OpenStack Ussuri
- Installing on Kolla
- Pushing NetBackup for OpenStack images to the local registry
- Installing on RHOSP
- Configuring NetBackup for OpenStack
- Post Installation Health-Check
- Uninstalling NetBackup for OpenStack
- Uninstalling from RHOSP
- Uninstalling from Ansible OpenStack
- Uninstalling from Kolla Openstack
- Uninstalling from RHOSP
- Upgrading NetBackup for OpenStack
- Configuring NetBackup OpenStack Appliance
- Configuring NetBackup primary server
- NetBackup for OpenStack protections
- Performing snapshots, backups, and restores of OpenStack
- About restores
- Required restore.json file for CLI
- About schedules
- Performing Backup Administration tasks
- Disaster recovery
- Troubleshooting
- General Troubleshooting Tips
- Health check of NetBackup for OpenStack
- Important log files
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 } |