ITPub博客

首页 > Linux操作系统 > Linux操作系统 > How to delete Unified Log files to reclaim disk space on the file system(ZT)

How to delete Unified Log files to reclaim disk space on the file system(ZT)

原创 Linux操作系统 作者:cqubityj 时间:2008-12-30 10:18:28 0 删除 编辑

DOCUMENTATION: How to delete Unified Log files to reclaim disk space on the file system.

Details:
Manual:  VERITAS NetBackup (tm) 6.0 Troubleshooting Guide for UNIX and Windows
Page(s):  84 - 86
Modification Type:  Supplement

Modification:
NetBackup 6.0 introduces a new style. of logging called Unified logging.  This new style. of logging is used by NetBackup 6.0 NetBackup Intelligent Resource Manager (IRM), Enterprise Media Manager (EMM) services as well as other Symantec 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 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 -o -e

The options for vxlogmgr are described below.
  • The --del option will delete any matching log files.
  • The -p is optional.  This should be used to limit the deleting of logs to specific products, such as 51216 (NetBackup).
  • The -o is optional.  This should be used to limit the deleting of logs to specific originators, such as 116 (nbpem).
  • The -e is optional.  This will delete any log files created before the date specified.  The format for the date is 'MM/DD/YYYY hh:mm:ss AM|PM' surrounded by single quotes.

Additional command line options for vxlogmgr can be found on page 525 of the NetBackup 6.0 Commands for UNIX (refer below to the Related Documents section).

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 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.


Products Applied:
 NetBackup Enterprise Server 6.0
 NetBackup Server 6.0

Last Updated: December 31 2007 10:51 PM GMT
Expires on: 12-30-2008
Subscribe Via E-Mail IconSubscribe to receive critical updates about this document

Subjects:
 NetBackup Enterprise Server
   Application: Informational
   Best Practice: Error Logs
NetBackup Server
   Application: Informational
   Best Practice: Error Logs

Languages:
 English (US)

Operating Systems:
AIX

5.1, 5.2, 5.3

HP-UX

11.0, 11.11

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/228190/viewspace-524632/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-19

  • 博文量
    133
  • 访问量
    427178