NetBackup

xuming on September 3rd, 2007

今天一上班,就发现有一台服务的每周备份报 156 号错误,形式如下: STATUS CODE: 156 “snapshot error encountered” occurs when utilizing VSP or VSS for open file backups. ——————————————————————————– Exact Error Message snapshot error encountered (156) Details: Overview: STATUS CODE: 156 “snapshot error encountered” occurs when utilizing VERITAS Volume Snapshot Provider (VSP) or Microsoft Volume Shadow Copy Service (VSS) for a client backup. 查看了一下官方的解释:Windows [...]

Continue reading about NetBackup 156 号错误,以及 VSP 和 VSS 方法

xuming on August 30th, 2007

20070830 发现一台 NetBackup 备份服务器在进行 Catalog 备份时,最后总是报 status 84 错误。同时其 Catalog 备份目录 E:\catalog 有最近生成的 catalog 文件 IMAGE1_2,大小约 550 M。 84 号错误是硬件读写方面的错误,查看了一下,最近的 Catalog 总是备份到硬盘 E:\catalog 目录上,而不是按照设置的“备份到磁带”和“备份到磁盘”依次间隔的方式。 分析过程: 在 Catalog 备份方式的设置中,临时去掉备份到 Disk 的方式,只保留备份到 Tape 的方式,手工发起 Catalog 备份,备份成功; 再在 Catalog 备份方式的设置中,临时去掉备份到 Tape 的方式,只保留备份到 Disk 的方式,手工发起 Catalog 备份,可以看到 E:\catalog 目录中先是生成了一个 2GB 大小的文件后,在生成第二个文件时删掉了第一个文件,最终的保留的文件大小约 550M。考虑到此时 E 盘所剩空间不足 1.9G,可以判断是硬盘空间不足问题造成了 catalog 备份到 Disk 时报 [...]

Continue reading about NetBackup Catalog Backup status 84 的处理

NetBackup 版本:NetBackup 5.1 所涉及的工具:Process Explorer (微软免费工具) 由于 NetBackup 的问题,有时会发现备份所产生的临时文件(文件格式为 _vxfiVspCacheFile_0.tmp)在备份完成后并没有被清理掉,造成磁盘空间满的故障。而且这个临时不能直接删除,因为有系统进程此时正在打开这个文件。 解决办法如下: 运行 Process Explorer, 然后用快捷键 CTRL+F 打开 “find handle or dll” 对话框; 键入关键字,例如 “vxfiVsp” , 然后单击 “Search” 找到当前打开这个文件的进程; 右键选中当前打开这个文件的进程,选择 “close handle”; 再次尝试删除临时文件,一般都是可以解决问题的。

Continue reading about 关于无法删除 NetBackup 备份产生的 temp 文件的解决方法

xuming on August 14th, 2007

服务器端:NetBackup 5.1 MP6 客户端:NetBackup 5.1 “Start\Programs\Veristas NetBackup\Backup, Archive, and Restore”,打开“Backup, Archive, and Restore”窗口,选择“File\Select Files and Folders to Backup”,如图: 在安装了 Oracle 的客户端上,会出现 Oracle 节点,如下图: 选中一个要备份的数据库实例,这时会弹出“Oracle Database Logon Credentials”窗口,输入相应用户名、密码以及 Net Service Name: 之后,选择“Actions\Start Backup of Marked Files…” 出现“NetBackup for Oracle RMAN Template Generation Wizard” 之后根据提示,输入登陆帐号、备份策略等等,最后输入一个模版的名称,如下: 如果想修改已经创建的模版,可以选择“Actions\Administrator Database Templates…\Oracle…”来查看或修改模版。如下: 在客户端上新建好模版之后,可以通过在服务器端的策略上添加“Backup Selections”,手工输入模版的名称的方式来使用改模版。如下:

Continue reading about 利用 NetBackup 备份 Oracle (Win)

xuming on June 4th, 2007

NetBackup 脚本里面所说的 NB_MAIL_SCRIPT,在 Windows 平台上对应的就是 NetBackup\Bin\nbmail.cmd。 如果 nbmail.cmd 存在的话,NetBackup 会传递三个参数给这个 CMD 文件: %1 is the recipient's address %2 is the subject line %3 is the message file name NetBackup 推荐使用 BLAT 这个免费工具发送邮件通知。这个工具的安装很简单,将 blat.exe 放在 system32 目录下即可。设定方法: blat -install <smtp server address> <sender's address> 完整语法如下: -install <server addr> <sender's addr> [<try n times> [<port> [<profile> [<username> [...]

Continue reading about 关于 NetBackup 邮件提醒脚本的补充

xuming on May 30th, 2007

原文网址: http://www.samag.com/documents/s=9053/sam0403a/0403a.htm 大概的流程图 +———–+ collector +———–+ +———–+ | NetBackup | script | MySQL | Perl | Chart or | | Catalog |————->| Database |———->| Graph | +———–+ query +———–+ +———–+ The main concept is to run a collector script that queries the NetBackup catalog for backup statistics and stores that information in a MySQL database. [...]

Continue reading about NetBackup Performance Reports with MySQL/Perl

xuming on May 28th, 2007

Troubleshooting email notification can be difficult, due to the fact that no output is displayed. The best way to determine if the nbmail.cmd script and Blat are working correctly is to remove the -q from the end of the Blat command and redirect the output of the command to a text file. For example, Original [...]

Continue reading about Troubleshooting email notification

xuming on May 28th, 2007

Top ten reasons why nbmail can fail: BLAT is commented out in the nbmail.cmd script — remove the ‘@rem’ from in front of the BLAT command. No email address configured or email address incorrectly configured on Universal Settings tab. The BLAT line in nbmail.cmd is not correctly configured; syntax has changed in the later versions [...]

Continue reading about nbmail.cmd troubleshooting

xuming on May 28th, 2007

看了一下 这篇文章,似乎意思是 Catalog 本身属于数据文件,如果单纯就查看 catalog 内容来看,可以还原到其他机器上查看 catalog 内容,如果要在其他机器上使用这个 catalog,那就必须设定 hostname 和 IP 与原机器一致了。 Master server 上包含以下 NetBackup catalog 文件: install_path\NetBackup\db 【 ntbbkp03 上大概 13.4 G 】 install_path\NetBackup\var 【 ntbbkp03 上大概 23.6 K 】 install_path\Volmgr\database 【 ntbbkp03 上大概 664 K 】 Media server 上包含以下 NetBackup catalog 文件: install_path\netbackup\db\media install_path\netbackup\var install_path\volmgr\database 我查看了一下, install_path\NetBackup\db 这个目录下的 images 文件夹最大,包含了所有 clent [...]

Continue reading about 关于 NetBackup Catalog 的还原