How to configure Veritas NetBackup (tm) to write Unified and Legacy log files to a different directory
Problem
DOCUMENTATION: How to configure Veritas NetBackup (tm) to write Unified and Legacy log files to a different directory
Solution
Veritas NetBackup (tm) 6.0 Troubleshooting Guide for UNIX and Windows, Page: 75-76
Veritas NetBackup (tm) 6.5 Troubleshooting Guide for UNIX, Linux, and Windows, Page: 82-83
Veritas NetBackup (tm) 7.0 Troubleshooting Guide for UNIX, Linux, and Windows, Page: 85-86
Modification Type: Addition
Modification:
NetBackup 6.x introduced a new type of logging, referred to as unified logging. This style of logging is used by new NetBackup daemons, such as the Intelligent Resource Manager (IRM) and the Enterprise Media Manager (EMM) daemons. Unified logs are written to the /usr/openv/logs directory on UNIX systems or the <install_path>\NetBackup\logs directory on Windows systems. An example of a log file that would be generated would be: 51216-111-990921226-060318-0000000000.log
By default, the maximum log file size in unified logging is 5120 KB. After a log file reaches 5120 KB, the file is closed and a new log file is opened. NetBackup will also keep 28 days of logging, by default. As such, the logs folder can quickly fill up and absorb all available drive space. In this condition it may be necessary to change the default log location to a volume or drive with more available disk space.
Note: This process does not affect legacy log files stored in the /usr/openv/netbackup/logs on UNIX systems or the<install_path>\NetBackup\logs\<process> directories on Windows systems. In legacy debug logging, each logging directory must be manually created for each process. For example, the bpsched process is logged in /usr/openv/netbackup/logs/bprd on UNIX or <install_path>\NetBackup\logs\bprd on Windows.
Procedure to change the location where unified log files are written:
1. On a volume or drive with sufficient free space to store unified logging, it will be necessary to create a new directory in which to store the new log files.
# mkdir <new_log_dir>
% mkdir <new_log_dir>
# /usr/openv/netbackup/bin/goodies/netbackup stop
% <install_path>\NetBackup\bin\bpdown.exe
# mv /usr/openv/logs/*.log <new_log_dir>
% move <install_path>\NetBackup\logs\*.log <new_log_dir>
On Unix systems:
# ls <new_log_dir>
# /usr/openv/netbackup/bin/vxlogcfg -a -p 51216 -o Default -s "LogDirectory=<new_log_dir>"
% <install_path>\NetBackup\bin\vxlogcfg -a -p 51216 -o Default -s "LogDirectory=<new_log_dir>"
# ./vxlogview -p 51216 -t 00:05:00
Procedure to change the location where the legacy log files are written:
NOTE: for either Unix or Windows systems, this procedure should be followed after stopping NetBackup daemons/services. Also, previously written log files will reside in their original location following this procedure. The logs may remain in this location, deleted, or moved to the new log location.
For Unix systems: The standard hard coded logs path Netbackup writes the logs to is /usr/openv/netbackup/logs, and it cannot be changed.
If /usr/openv is filling up, it is often desirable to change the log directory to a different file system.
# mdkir -p /new_filesystem/netbackup/logs
2) Give the directory 755 permissions
# chmod 755 /new_filesystem/netbackup/logs
3) Navigate to /usr/openv/netbackup/ and rename the existing logs directory
# mv logs logs_old
4) Create the symbolic link to the new legacy log location
# ln -s /new_filesystem/netbackup/logs logs
5) Verify the link was created successfuly
# ls -l /usr/openv/netbackup/logs
lrwxrwxrwx 1 root root 25 Apr 6 14:31 logs -> /new_filesystem/netbackup/logs
6) Verify that legacy logs are being written to the new location. This can be done by creating commonly used log directories (such as bpcd, vnetd, bpbkar) under /new_filesystem/netbackup/logs, starting NetBackup, and running a test backup. Then inspect the log directories to ensure a new log file is created.
- On the right pane double click on "Log Directory" and specify the path to the new log directory, e.g. E:\NBU\Logs. The folder must already exist.
2. Add the following value within the registry to make sure all the (master and media process) log directories, as made by the batch file, are correctly written Within the VERITAS\NetBackup\CurrentVersion\Paths key, add a string value called "BP_LOGS". The value does not exist by default, so it will have to be created. Its value will be a string directory path. The following format must be deployed when entering this type of string value:
Actual path to the logs directory:
D:\Logs
Path to enter into the string value:
D:${_PS.EN_US}Logs
Once the Log Directory key is modified and NetBackup is restarted, legacy logs will be written to this location.
How to configure Veritas NetBackup (tm) to write Unified and Legacy log files to a different directory的更多相关文章
- NBU7.0.1迁移C:\Veritas\Netbackup\db到其他盘
原来NBU MASTER安装在C盘了,导致C盘空间剩余很少,在官网找了一个解决方案如下: - before any operation, of course backup your catalog a ...
- Veritas NetBackup™ 状态码"十大"常见报错状态码
我在刚开始学习Netbackup的时候,没少走弯路.经常会遇到各种稀奇古怪的 error 信息,遇到报错会很慌张,急需一个解决问题的办法.跟无头苍蝇一样,会不加思索地把错误粘到百度上,希望赶紧查找一下 ...
- VERITAS NETBACKUP运维手册(自制)
ps:本文为目录.详情请点如下目录超链接 1 VERITAS NETBACKUP介绍 1.1 NBU基本概念 1.2 配置存储单元 1.3 配置备份策略(Policy) 1.4 配置NetBackup ...
- 安装RabbitMQ编译erlang时,checking for c compiler default output file name... configure:error:C compiler cannot create executables See 'config.log' for more details.
checking for c compiler default output file name... configure:error:C compiler cannot create executa ...
- Veritas NetBackup 8.1.2 升级的主要理由--附升级兼容性检查网址
管理更简单 NetBackup™ 8.1.2 基于 Web 的全新直观用户界面让操作变得极度简单化,最常用操作现在只需单击几次或触摸几下即可完 成.通过台式机或移动设备可为不同角色的其他用户授予访问权 ...
- NBU expired Media,Media ID not found in EMM database
Subject:When attempting to expire a media in Veritas NetBackup (tm) 6.0 with the bpexpdate command, ...
- (转)单机上配置hadoop
哈哈,几天连续收到百度两次电话,均是利好消息,于是乎不知不觉的自己的工作效率也提高了,几天折腾了好久终于在单机上配置好了hadoop,然后也成功的运行了一个用例,耶耶耶耶耶耶. 转自:http://w ...
- Atomikos 中文说明文档【转】
Atomikos 翻译文档(英文文档来源:下载安装包中START_HERE.html) ----译者:周枫 请尊重劳动成果,转载请标明 ...
- Atomikos实现多数据源的事物管理
之前试过使用Spring动态切换数据库,通过继承AbstractRoutingDataSource重写determineCurrentLookupKey()方法,来决定使用那个数据库.在开启事务之前, ...
随机推荐
- iOS开发UI篇—Quartz2D使用(矩阵操作)
iOS开发UI篇—Quartz2D使用(矩阵操作) 一.关于矩阵操作 1.画一个四边形 通过设置两个端点(长和宽)来完成一个四边形的绘制. 代码: - (void)drawRect:(CGRect)r ...
- You Only Live Once
从做 PreAngel 以来,每年我都会抽空去美国一两次,主要是在硅谷(湾区)一带见见当地的朋友,他们主要有 VC.创业者.斯坦福和伯克利的学生创业组织负责人.无线科技领域的各种组织机构负责人等,我一 ...
- IIS调试技巧
VS2010如何调试IIS上的网站 通常,我们在Visual Studio里调试ASP.NET网站,都是加个断点,然后按F5,在VS自带的虚拟服务器下调试的.但有时候,VS自带的服务器弱爆了,无法满足 ...
- MVC乱码可能的原因
1.数据传输不对,或者根本没有进控制器 2.分部视图建立时一定要选择
- FlashBuilder使用
打开调用层次视图,显示当前类.变量被谁调用,右侧显示调用位置. ctrl+alt+H 快捷键 导航即浏览菜单中,单击. 右键单击打开. 为组件生成事件处理函数 组件==控件,按钮等.右侧属性,又叫属性 ...
- join()、implode()函数
join() 函数 join() 函数把数组元素组合为一个字符串. join() 函数是 implode() 函数的别名. 语法 join(separator,array) 参数 描述 separat ...
- 【转】Lua coroutine 不一样的多线程编程思路
Lua coroutine 不一样的多线程编程思路 Sunday, Apr 26th, 2009 by Tim | Tags: coroutine, Lua 上周末开始看<Lua程序设计> ...
- Why one-norm is an agreeable alternative for zero-norm?
[转载请注明出处]http://www.cnblogs.com/mashiqi Today I try to give a brief inspection on why we always choo ...
- 关于wcf异常异常信息:由于内部错误,服务器无法处理该请求。有关该错误的详细信息,请打开服务器上的 IncludeExceptionDetailInFaults (从 ServiceBehaviorAttribut
异常信息:由于内部错误,服务器无法处理该请求.有关该错误的详细信息,请打开服务器上的 IncludeExceptionDetailInFaults (从 ServiceBehaviorAttribut ...
- 快速开发CSS的利器-LESS
快速开发CSS的利器-LESS? 天下功夫,唯快不破!效率,在项目开发上,这是极其重要的.要做到快.精.准,在人任何时候都不是一件轻松容易的事.但是如果借助一些相应的工具,那就另当别论了!那么要想快速 ...