NetBackup™ 故障排除指南
- 介绍
- 故障排除过程
- 对 NetBackup 问题进行故障排除
- vnetd 代理连接故障排除
- 安全证书吊销故障排除
- 验证 NetBackup 中的主机名和服务条目
- 冻结的介质故障排除注意事项
- 对 NetBackup Web 服务问题进行故障排除
- 解决 PBX 问题
- 远程主机验证问题故障排除
- 自动映像复制故障排除
- 使用 NetBackup 实用程序
- 灾难恢复
- 关于适用于 UNIX 和 Linux 的磁盘恢复过程
- 关于 UNIX 和 Linux 上的群集 NetBackup 服务器恢复
- 关于适用于 Windows 的磁盘恢复过程
- 关于 Windows 上的群集 NetBackup 服务器恢复
- 关于恢复 NetBackup 目录库
- 关于 NetBackup 目录库恢复
- 关于恢复整个 NetBackup 目录库
- 关于恢复 NetBackup 目录库映像文件
- 关于恢复 NetBackup 数据库
使用 bprecover -wizard 恢复 NetBackup 目录库映像文件
bprecover -wizard 命令是使用 NetBackup 目录库恢复向导的替代方法。
警告:
恢复 NetBackup 目录库之前不要运行任何客户端备份。
使用 bprecover -wizard 恢复目录库映像文件
- 运行 nbgetconfig 命令并保存输出。在目录库恢复之后,可以使用此输出来恢复目录库恢复过程中重写的特定于主机的信息。
例如:
./nbgetconfig > sample.txt
- 在开始目录库恢复之前,请查看前提条件。
如果将目录库恢复到新 NetBackup 安装,例如灾难恢复站点,请执行以下操作:
安装 NetBackup。
配置执行恢复所需的设备。
将执行恢复所需的介质添加到设备。
创建符号链接以与原始环境中的符号链接相匹配。
通过输入以下命令在主服务器上启动 NetBackup 服务:
在 Windows 上:
install_path\NetBackup\bin\bpup
在 UNIX 和 Linux 上:
/usr/openv/netbackup/bin/bp.start_all
- 通过输入以下命令来启动 bprecover 向导:
bprecover -wizard
将显示以下内容:
Welcome to the NetBackup Catalog Recovery Wizard! Please make sure the devices and media that contain catalog disaster recovery data are available Are you ready to continue?(Y/N)
- 输入 Y 以继续操作。系统将提示您输入灾难恢复文件的完整路径名,如下所示:
Please specify the full pathname to the catalog disaster recovery file:
- 输入要还原的备份的灾难恢复文件的完全限定路径名。例如:
/mnt/hdd2/netbackup/dr-file/Backup-Catalog_1318222845_FULL
如果最新的目录库备份是增量式备份,则使用增量式备份中的灾难恢复文件。(不需要先还原完全备份,再还原增量式备份。)或者,可以从较早版本的目录库进行恢复。
如果为完全备份指定了 DR 文件,则将显示一条类似于以下内容的消息:
vm2._1318222845 All media resources were located Do you want to recover the entire NetBackup catalog? (Y/N)
如果为增量式备份指定了 DR 文件,则将显示一条类似于以下内容的消息:
vm2.example.com_1318309224 All media resources were located The last catalog backup in the catalog disaster recovery file is an incremental. If no catalog backup images exist in the catalog, a PARTIAL catalog recovery will only restore the NetBackup catalog files backed up in that incremental backup. However, all of the catalog backup images up to the last full catalog backup are restored. Then you can restore the remaining NetBackup catalog files from the Backup, Archive, and Restore user interface. If catalog backup images already exist, all files that were included in the related set of catalog backups are restored. Do you want to recover the entire NetBackup catalog? (Y/N)
- 输入 N 以继续操作。将显示以下内容:
A PARTIAL catalog recovery includes the images directory containing the dotf files and staging of the NetBackup relational database (NBDB) for further processing. Do you also want to include policy data?(Y/N)
- 输入 Y 或 N 继续操作。将显示以下内容:
Do you also want to include licensing data?(Y/N)
- 输入 Y 或 N 以继续操作。将显示以下内容:
Catalog recovery is in progress. Please wait... Gathering configuration information. Waiting for the security services to start operation. Generating identity for host 'vm2.example.com_1318309224' Setting up security on target host: vm2.example.com_1318309224 nbatd is successfully configured on NetBackup Primary Server. Operation completed successfully. Completed successful recovery of NBDB in staging directory on vm2. This portion of the catalog recovery has completed. Because this was a PARTIAL recovery of the NetBackup catalog, any remaining files included in the catalog backup can be restored using the Backup, Archive, and Restore user interface. The "nbdb_restore -recover -staging" command can be used to replace NBDB in the data directory with the contents from the staging directory. WRN - NetBackup will not run scheduled backup jobs until NetBackup is restarted. WRN - Local or global-level settings that you have configured on the master server before catalog recovery are overwritten. It is recommended that you re-configure the required settings after the services are restarted. For more information, please review the log file: /usr/openv/netbackup/logs/user_ops/root/logs/Recover1318357550.log
- 完成恢复作业后,每个映像文件都将还原到正确的映像目录中,并且将还原配置文件。如果选择恢复策略数据或授权数据,则也会将其还原。
- 如果要在不恢复整个 NetBackup 数据库的情况下恢复映像头信息,请执行以下步骤:
步骤 a - 备份目标数据库。运行以下命令。
nbdb_backup -online directory
请确保不要将暂存文件夹指定为输出目录。(暂存文件夹包含目录库备份中 NetBackup 数据库的架构数据和配置数据。映像
.f
文件和配置文件将恢复到其最终目标。)步骤 b - 从暂存目录中恢复 NetBackup 数据库。
nbdb_restore -recover -staging
步骤 c - 导出要从备份导入的映像头数据。
例如,以下命令导出所有映像头数据。数据将导出到
netbackup/db.export
目录。cat_export -all
步骤 d - 使用以下命令恢复 NetBackup 数据库。
nbdb_restore -recover directory
确保指定的目录与步骤 a 中的目录相同。
步骤 e - 运行 cat_import 命令以导入在步骤 c 中提取的映像头数据。
cat_import -all -replace_destination -delete_source
该命令将执行以下操作:
导入
netbackup/db.export
目录中的所有映像头数据。替换已导出且已存在于目标数据库中的任何映像头数据。
删除驻留在
netbackup/db.export
目录中的映像头数据。
步骤 f - 如果从磁盘设备恢复该目录库,可能必须修复磁盘介质 ID 引用。运行以下命令:
nbcatsync -sync_dr_file DR file path -dryrun
将 DR file path 替换为目录库 DR 文件的路径。
步骤 g - 如果试运行的结果令人满意,请运行以下命令:
nbcatsync -sync_dr_file DR file path
在继续之前,请注意以下几点:
如果从可移动介质恢复目录库,NetBackup 将冻结目录库介质。
在重新启动 NetBackup之前,Veritas 建议您冻结其中备份日期晚于恢复时使用的目录库的日期的介质。
在停止并重新启动 NetBackup 之前,NetBackup 不会运行预定的备份作业。
您可以在停止并重新启动 NetBackup 之前手动提交备份作业。但是,如果没有冻结其中备份日期晚于恢复时使用的目录库的日期的介质,则 NetBackup 可能会重写该介质。
由于此操作是部分恢复,因此必须恢复该目录库的数据库部分。
- 清理所有主机的允许列表缓存。
- 恢复在步骤 1 中备份的主机设置。运行以下命令。
./nbsetconfig sample.txt
在主服务器和其他主机上停止并重新启动 NetBackup 服务,如下所示:
在 Windows 上:
install_path\NetBackup\bin\bpdown install_path\NetBackup\bin\bpup
在 UNIX 上:
/usr/openv/netbackup/bin/bp.kill_all /usr/openv/netbackup/bin/bp.start_all
- 重新启动服务后,运行以下命令:
如果在您的 NetBackup 域中使用 NetBackup(或基于主机 ID)证书,请执行以下操作:
在非群集设置中:
对于 Windows:
install_path\netbackup\bin\nbcertcmd -renewcertificate
对于 UNIX:
/usr/openv/netbackup/bin/nbcertcmd -renewcertificate
在群集设置中:
对于 Windows:
install_path\netbackup\bin\nbcertcmd -renewcertificate -cluster
对于 UNIX:
/usr/openv/netbackup/bin/nbcertcmd -renewcertificate -cluster
如果在 NetBackup 域中使用外部 CA 签名证书,请执行以下步骤。
非群集设置:
UNIX:
/usr/openv/netbackup/bin/nbcertcmd -enrollCertificate
对于 Windows:
install_path\netbackup\bin\nbcertcmd -enrollCertificate
群集设置:
UNIX:
/usr/openv/netbackup/bin/nbcertcmd -enrollCertificate -cluster
对于 Windows:
install_path\netbackup\bin\nbcertcmd -enrollCertificate -cluster
如果该命令运行成功,请继续执行下一步。
如果该命令失败并显示退出状态 5988,请参考以下主题:
请参见在目录库恢复期间出现退出状态 5988 时要执行的步骤。
继续执行下一步。
- 如果目录库恢复是服务器恢复过程的一部分,请完成相应恢复过程中的剩余步骤。
此过程可能包括下列任务:
将备份从备份介质导入目录库
对介质进行写保护
弹出介质并妥善保存
冻结介质