Veritas NetBackup™ for Hyper-V 管理指南
- 介绍
- 注意事项和前提条件
- 配置 NetBackup 与 Hyper-V 的通信
- 为 Hyper-V 配置 NetBackup 策略
- 配置 Hyper-V 智能策略
- 适用于 SCVMM 的 NetBackup Hyper-V
- Windows Server 故障转移群集支持
- 备份和还原 Hyper-V
- 使用加速器备份 Hyper-V
- 最佳做法和更多信息
- 故障排除
- Hyper-V 的 NetBackup 日志以及如何创建日志
- 策略创建期间的错误
- 与 Hyper-V 相关的 NetBackup 状态码
- 附录 A. VSS 备份方法:Hyper-V 联机和脱机备份
- 附录 B. Hyper-V 直通磁盘
- 附录 C. 用于备份和还原 Hyper-V 虚拟机的 NetBackup 命令
还原完全 Hyper-V 虚拟机的问题
本主题与 NetBackup for Hyper-V 有关。
在下列情况下,还原完全 Hyper-V 虚拟机可能会失败:
则不会还原备份的 .vhd 文件。您必须选中
以还原,或者从目标服务器中删除当前虚拟机及 vhd 或 vhdx 文件,然后再开始还原。 如果从目标服务器中删除了虚拟机,但仍保留一个或多个 vhd 或 vhdx 文件,将不会还原备份中的 vhd 或 vhdx 文件。Hyper-V-VMMS 会将下列警告写入事件日志中:
时间 ID:10127,事件日志消息示例:
Unable to repair the network configuration for virtual machine'Virtual Machine Display Name'. The virtual machine may not have the same network connectivity as it did when the backup was taken. Inspect the network settings and modify them as necessary. (Virtual machine ID 0AD8DFCC-BDC0-4818-B6DF-7A1BA0A735BF)
时间 ID:10104,事件日志消息示例:
One or more errors occurred while restoring the virtual machine from backup. The virtual machine might not have registered or it might not start. (Virtual machine ID "0AD8DFCC-BDC0-4718-B6DF-7A3BA2A735BF ")
Hyper-V 写入器遇到网络配置错误。更改虚拟机设置中的网络适配器配置之后,可以启动还原的虚拟机。
tar 日志包含一条类似以下内容的消息:
VssNode::doRestore: Current owner of VM .[<VM name> {<VM guid>}] is [<current owner>] not this [<restore server>], To perform this restore either move VM to this host [<restore server>] or Delete VM from Cluster, or perform redirected restore at current owner.
请注意以下说明:
对于还原到原始位置:备份时,该虚拟机不具有高可用性,但现在该虚拟机具有高可用性。不过,该虚拟机所属的节点不是用来备份该虚拟机的节点。
对于重定向的还原:该虚拟机具有高可用性,但该虚拟机所属的节点不是还原服务器(即执行还原的节点)。
请参见 tar 日志消息中的推荐操作。
注意:在重定向还原中,会将虚拟机还原到原始 Hyper-V 服务器上的不同位置,或者还原到不同的 Hyper-V 服务器。不会将它还原到其在原始服务器上的原始位置。
可以在 Windows 卷 GUID 上配置虚拟机。下面是 Windows 卷 GUID 的示例:
\\?\Volume{1a2b74b1-1b2a-11df-8c23-0023acfc9192}\
如果对基于卷 GUID 的虚拟机执行重定向还原并备份已还原的虚拟机,请注意:尝试从备份执行重定向还原可能会失败。例如,假设在以下卷 GUID 上配置了一台虚拟机:
\\?\Volume{1a2b74b1-1b2a-11df-8c23-0023acfc9192}\
然后将该虚拟机还原到其他卷 GUID,例如:
\\?\Volume{2a3b70a1-3b1a-11df-8c23-0023acfc9192}\
如果备份了已还原的虚拟机,而您要从备份执行重定向还原,则还原可能会失败。
要在重定向还原中避免此问题,请将虚拟机还原到卷 GUID 的子目录,如还原到:
\\?\Volume{1a3b70a1-3b1a-11df-8c23-0023acfc9192}\REDIR_subdirectory\
NetBackup 作业的“详细状态”选项卡包含类似如下的消息:
12/11/2009 17:35:58 - started process bpdm (pid=2912) ... the restore failed to recover the requested files (5) 12/11/2009 17:47:06 - Error bpbrm (pid=1348) client restore EXIT STATUS 185: tar did not find all the files to be restored
eventvwr.msc 文件中将出现类似如下的消息:
Failed to update the configuration with the new location of virtual hard disk 'F:\REDIR_VM\f\ADD_VHD\IDE_1_DISK.vhd' for virtual machine '<virtual_machine_name>': The requested operation could not be completed due to a virtual disk system limitation. Virtual disks are only supported on NTFS volumes and must be both uncompressed and unencrypted. (0xC03A001A). Remove the disk from the virtual machine and then attach the disk from the new location. (Virtual machine ID <virtual_machine_ID.)
此问题是因为 Microsoft 限制。有关更多信息,请参见以下 Microsoft 链接:
http://technet.microsoft.com/en-us/library/dd440865.aspx
如果目标文件共享上设置足够权限,则还原完成,状态为 1:“请求的操作部分成功”。NetBackup 作业详细信息日志中将出现类似以下内容的消息:
Unable to set VHD/VHDX metadata which includes alternate data streams and permissions. If VM does not boot, check the permissions of the VM's virtual disk files.
注意:
VM 的文件已还原,但 NetBackup 无法还原 vhd 或 vhdx 文件的所有者。
要使还原完全成功,请执行以下操作:
向共享和数据所在的基础文件系统添加权限。该权限必须对 Hyper-V 服务器和 Hyper-V 群集提供“完全控制”。
在要将 VM 还原到的 Hyper-V 服务器上:确保 NetBackup 客户端服务作为
Domain\Administrator
(而不是作为LocalSystem
用户帐户)运行。
完成这些更改后,重新运行还原。还原作业应返回状态 0:“请求的操作成功完成”。