Please enter search query.
Search <product_name> all support & community content...
Article: 100017232
Last Published: 2025-02-14
Ratings: 0 0
Product(s): NetBackup & Alta Data Protection
Problem
How to delete Unified Log files to reclaim disk space on the file system.
Solution
NetBackup had introduced a new style of logging called Unified logging. This new style of logging is used by NetBackup Intelligent Resource Manager (IRM), Enterprise Media Manager (EMM) services as well as other Veritas products. The previous style of NetBackup logging is now referred to as Legacy logging and is still used by other NetBackup daemons.
Unified logs are stored in /usr/openv/logs on the server. The vxlogmgr
Unified logs are stored in /usr/openv/logs on the server. The vxlogmgr
command should be used to properly remove Unified logs from a NetBackup server to reclaim space on the file system:
#
cd /usr/openv/netbackup/bin
#
./vxlogmgr --del -p <ProductID> -o <OriginatorID> -e <enddate>
The options for vxlogmgr
are described below.
- The --del option will delete any matching log files.
- The -p <ProductID> is optional. This should be used to limit the deleting of logs to specific products, such as 51216 (NetBackup).
- The -o <OriginatorID> is optional. This should be used to limit the deleting of logs to specific originators, such as 116 (nbpem).
- The -e <enddate> is optional. This will delete any log files created before the date specified.
- For Linux the format for the date is 'MM/DD/YYYY hh:mm:ss AM|PM'
- For Windows the format for the date is "MM/DD/YYYY, 00:00:00 AM/PM" and the double quotes are required.
- For Linux the format for the date is 'MM/DD/YYYY hh:mm:ss AM|PM'
Examples:
The following command will delete all Unified log files created before midnight on 9/20/2005:
#
vxlogmgr --del -e '09/20/2005 00:00:00 AM'
The following command will delete all Unified log files for the NetBackup product created on and before 9/22/2005.
#
vxlogmgr --del -p 51216 -e '09/22/2005 23:59:59 PM'
The following command will delete all Unified log files for the NetBackup
nbpem daemon created before noon on 9/24/2005.
#
vxlogmgr --del -p 51216 -o 116 -e '09/24/2005 12:00:00 AM'
Once the
vxlogmgr
Note: The above examples are for running vxlogmgr on Unix servers. If running vxlogmgr on Windows servers, the format for the date is "MM/DD/YYYY hh:mm:ss AM|PM" - surrounded by double quotes.
command is run, a listing of matching files will be displayed along with a prompt asking to delete the files. Once the expected listing of file names has been displayed, select "
y" to delete the Unified log files.
Note: The above examples are for running vxlogmgr on Unix servers. If running vxlogmgr on Windows servers, the format for the date is "MM/DD/YYYY hh:mm:ss AM|PM" - surrounded by double quotes.