Dell PowerVault MD 存储阵列的 VMware Storage Replication Adapter (SRA) 5.
注、小心和警告 注: “注”表示可以帮助您更好地使用计算机的重要信息。 小心: “小心”表示可能会损坏硬件或导致数据丢失,并说明如何避免此类问题。 警告: “警告”表示可能会造成财产损失、人身伤害甚至死亡。 © 2013 Dell Inc. 本文中使用的商标:Dell™、Dell 徽标、Dell Boomi™、Dell Precision ™、OptiPlex™、Latitude™、PowerEdge™、PowerVault™、 PowerConnect™、OpenManage™、EqualLogic™、Compellent™、KACE™、FlexAddress™、Force10™ 和 Vostro™ 是 Dell Inc.的商标。 Intel®、Pentium®、Xeon®、Core® 和 Celeron® 是 Intel Corporation 在美国和其他国家/地区的注册商标。AMD® 是 Advanced Micro Devices Inc.的注册商标,AMD Opteron™、AMD Phenom™ 和 AMD Sempron™ 是 Advanced Micro Devices, Inc.
目录 1 使用 VMware 和 Dell MD 存储阵列进行数据恢复........................................................... 5 SRM 概览................................................................................................................................................................. 5 SRA 概览.................................................................................................................................................................. 6 2 设置您的环境.................................................................
5 测试和运行恢复计划............................................................................................................. 29 测试恢复计划........................................................................................................................................................29 运行恢复计划................................................................................................................................................. 31 6 故障回复流程...............................................................
1 使用 VMware 和 Dell MD 存储阵列进行数据恢 复 为了整合并更有效地利用服务器资源,以前运行在专用物理服务器环境中的许多应用程序,正在迁移至虚拟机 (VM)或运行在基于 VMware ESX 的虚拟基础架构的虚拟服务器上。从这种单独的专用服务器平台,特别是要 求高性能、块级存储的生产环境,迁移走的优势包括: • 更高的可用性 • 增强的灵活性 • 可扩展性 VMware 的 vCenter Site Recovery Manager(SRM)提供采用 Dell PowerVault MD 存储阵列的远程复制功能的灾 难恢复解决方案 (DRS),来提供服务器和虚拟机的自动故障转移,以及它们所用的基本存储和数据存储。这种 自动恢复解决方案旨在实现以下两个目标: 1. 提供低成本的第 2 层和第 3 层应用程序。 2.
图 1: SRM 体系结构 SRA 概览 MD 特定 Storage Array Managers(SRA)与 SRM 交互,以查找、复制、并在需要时故障转移至恢复站点之间的 存储阵列。 此外,SRA 与存储阵列交互,以提供对 SRM 故障转移功能的测试。 6
设置您的环境 2 本部分详述使用 VMware vCenter Site Recovery Manager (SRM) 和基于 Dell MD 存储阵列的 Storage Replication Adapter (SRA) 5.1 的初始设置要求。 安装前提条件 使用 VMware 和 Dell MD 存储阵列的远程复制功能成功实施恢复解决方案,要求在 VMware 应用平台和 MD 存 储阵列上执行特定的安装和配置任务。 下列 VMware 平台是必需的: • ESX 主机服务器(连接到 MD 存储阵列) • vSphere Client 5.0 或更高版本 • vCenter Server 5.0 或更高版本 • Site Recovery Manager (SRM) 5.0 或更高版本 • Storage Replication Adapter (SRA) 5.1(从 dell.com 下载) 兼容性要求 注: 有关支持的最新软件和固件更新,请参阅 dell.
• 快照虚拟磁盘 有关获取和激活 MD 高级功能的更多信息,请参阅《Dell PowerVault MD3600f 系列存储阵列用户指南》、《Dell PowerVault MD3200 系列》和《Dell PowerVault MD3600i 系列》或转至 dell.com/support,在产品选择器上选择您 的阵列型号。 受保护和恢复站点安装要求 作为本指南中说明的配置恢复解决方案的一部分,受保护(主站点)和恢复(次站点)主机站点都必须安装 VMware 平台。有关更多信息,请参阅 安装恢复解决方案组件。 Dell MD 存储阵列安装要求 SRM 5.0 依赖 MD 存储阵列上的远程复制高级功能来保持受保护站点和恢复站点之间的数据复制。在配置 SRM 之前,必须在 MD 存储阵列上将复制配置好。请参阅 Setting Up Remote Replication on the MD3600f Series Storage Array(在 MD3600f 系列存储阵列上设置远程复制),网址:dell.
图 3: 多虚拟磁盘复制 设置 MD 存储阵列上的远程复制 注: 您必须先激活远程复制高级功能,然后再执行下面的步骤。如果您需要 MD Storage Manager (MDSM)的分步说明以设置远程复制,请参阅 Dell PowerVault MD3600f 和 MD3620f 存储阵列用户手册, 网址: dell.com/support/manuals。 安装和配置 SRM 5.0 之前,您必须在恢复解决方案中用到的每一个 MD 存储阵列上设置远程复制。 注: 在基于 iSCSI 的 PowerVault 存储 MD Series 阵列上的远程复制的设置,由 dell.com/support/manuals 上提 供的 iSCSI 阵列说明文件予以说明。 要设置存储阵列上的远程复制: 1. 在管理主机上启动 MD Storage Manager(MDSM)。 2. 打开 企业管理窗口(EMW),查找受保护站点和恢复站点的存储阵列。 3. 打开受保护站点的存储阵列的阵列管理窗口(AMW) ,标识恢复解决方案中将要用到的虚拟磁盘。 4.
图 4: 光纤/iSCSI 信道多路径配置 交换机分区要求 在光纤信道和 iSCSI 配置中使用的交换机必须采用分区。这些交换机分区要求必须遵守: • 主机服务器上的每个主机总线适配器(HBA)必须连接到单独的交换机分区;连接到一个逻辑交换机分 区的 HBA 不能超过一个。 • 每个 MD 存储阵列控制器的端口 3 预留用于远程复制。这仅适用于光纤信道。iSCSI 不需要任何专用端 口。 对于光纤信道,必须为每个远程复制端口创建单独的分区。 • • 从一个单独的物理主机服务器到一个单独的 RAID 控制器最多只能建立四条数据路径(端口到端口分 段)。 有关附加的 MD 存储阵列分区信息,请参阅 配置光纤信道和 Dell MD3600f 系列存储阵列,网址:dell.com/ support。 有关附加的 VMware 相关分区信息,请参阅 VMware 光纤信道 SAN 配置指南,位于 vmware.
安装恢复解决方案组件 3 本指南中所述的恢复解决方案是基于这样一个概念,受保护的主站点连接到具有相同配置的恢复站点,如果受 保护站点不可用,该恢复站点可随时用于接管。 要使得此类故障转移成为可能,这两个站点都必须独立安装 所需的恢复解决方案组件。本节中的步骤指导您在受保护站点和恢复站点上完成这些解决方案组件的安装: • 通过 32 位连接至 vCenter Server 和 SRM Server 的独立数据库 • vCenter Server 5.0 • vSphere Client 5.0 • vCenter Site Recovery Manager (SRM) 5.0 • Storage Replication Adapter (SRA) 5.
安装支持的独立数据库 vCenter Server 和 SRM Server 都需要一个独立的数据库以保持特定环境的信息。对于较小的环境,vCenter Server 可以安装 Microsoft SQL Runtime Server,它无需使用外部数据库服务器。但对于大型环境,强烈建议使 用外部数据库。支持的数据库服务器和配置要求列表可从《Site Recovery Manager 5.0 管理指南》中获得。 独立数据库安装后,必须建立到 SRM 的 32 位连接。有关更多信息,请参阅安装 Site Recovery Manager。 有关如何在 vCenter Server 和 SRM 上安装和设置支持的数据库的详细信息,请参阅 vmware.com/support/pubs 上 的 VMware Site Recovery Manager 5.0 管理指南。 安装 vCenter Server 在受保护站点和恢复站点上安装 vCenter Server。有关安装的信息,请参阅 vmware.com/support/pubs 上的 VMware vSphere 5.
图 5: vSphere Site Recovery Manager 下载和安装 MD Storage Replication Adapter SRA 是自提取、自安装型文件,可从 驱动程序和下载页面获得,网址: dell.com/support。 要下载 SRA: 1. 转到 dell.com/support 并选择 驱动程序和下载。 2. 使用 Dell 产品选择器以查找您的 MD 存储阵列的型号。您可以选择 选择型号 → 服务器、存储和网络 → PowerVault 存储器。 3. 在选择产品型号下,选择您的 MD 存储阵列型号。 4. 单击确认以显示您的 MD 存储阵列型号可用的驱动程序和下载。 5. 在应用程序下,选择 SRA 5.1 下载链接。 6. 执行下载的软件包中包含的安装程序来安装 SRA 5.1。 注: 在受保护站点和恢复站点的 SRM 服务器上重复执行步骤 1 至步骤 6。 更改存储阵列上的 RAID 控制器密码 默认 SRA 配置假定未配置存储阵列密码。如果您需要在存储阵列上使用口令,请按如下所述修改 SraConfigurationData.
5. 从 services.msc 控制台重新启动 vCenter SRM Server 服务。这将允许 SRM 检测新安装的 SRA,并注册对 SraConfigurationData.xml 文件所做的任何更改。 图 6: 查看 Services.
配置恢复解决方案 4 配置恢复解决方案之前,请确保已成功在受保护站点和恢复站点安装以下组件: • 正确配置了 32 位 ODBC 的受支持的数据库服务器 • vCenter Server 5.0/vSphere Client 5.0 • Site Recovery Manager (SRM) 5.0(在物理机上或虚拟机上) • SRM vSphere Plug-in • Storage Replication Adapter (SRA) 5.1 启动 Site Recovery Manager 要开始配置恢复解决方案: 1. 启动 vSphere 5.0 Client。 2. 单击 vSphere 主屏幕上的 站点恢复图标,启动 Site Recovery Manager。 3. 单击 使用入门 选项卡,以显示 Site Recovery Manager 使用入门屏幕。 图 7: vSphere 5.
注: 在上面的示例屏幕中,站点窗格显示了之前安装 vCenter 时建立的受保护的站点(190.160.120.15)和恢 复站点(190.160.120.16)。 直至安装完成并在 vSphere 视图中显示,再继续执行下一节中显示的步骤。 使用 vSphere 与 Site Recovery Manager Site Recovery Manager 使用入门 屏幕显示了在受保护站点和恢复站点之间配置 SRM 所需要的基本步骤,以及 至特定 VMware 说明文件和联机帮助的有用的链接。 当您执行以下各节中的所述步骤时,您可以返回到此使用 入门页面,使用活动页面链接启动特定的配置步骤,或使用位于页面顶部的标准菜单栏中的下拉菜单。 根据 您正在执行的任务,命令链接也会显示在屏幕的左上方。 图 8: 选择配置任务 有关更多信息,请参阅 VMware vSphere Basics(VMware vSphere 基础),网址:vmware.
连接恢复站点和受保护站点 要连接受保护站点和恢复站点: 1. 启动 vSphere Client,并连接到受保护站点上的 vCenter Server。 2. 单击 vSphere 主屏幕上的站点恢复图标启动 Site Recovery Manager。 3. 从使用入门选项卡或左上角的命令菜单栏选择配置连接。 4. 输入远程 vCenter Server 的 IP 地址或 DNS 名称和端口号,然后单击下一步。 5. 输入恢复站点上的 vCenter Server 的管理员凭据,然后单击下一步。 6. 验证 SRM 证书,然后单击确定。 7. 仔细审核 SSL 安全警告并安装证书。单击忽略继续。 注: 连接建立后,向导中每个已完成的任务旁会显示绿色复选标记。 如果任何任务被标记为未完成或 失败,请在继续之前解决该错误状态。 8.
图 9: 资源映射视图 此时将显示映射选择窗口。展开资源清册项并导航到您想要映射到受保护站点资源的恢复站点资源。 18
图 10: 映射选择窗口 4. 单击确定完成映射。 5. 如果需要,可在文件夹映射选项卡和网络映射选项卡重复执行这些步骤。 完成后,您将在受保护站点的资源和恢复站点的资源之间建立一对一的映射。 分配占位数据存储 对于保护组中的每台虚拟机,SRM 在恢复站点上建立占位符,以支持故障转移和重新保护。 作为配置恢复解 决方案的一部分,您必须确定 SRM 将用于存储占位数据的数据存储。 1.
图 11: 占位数据存储选项卡 2. 单击配置占位数据存储。 3.
图 12: 占位数据存储 4. 单击确定完成选择。 配置存储阵列管理器 受保护站点和恢复站点连接之后(有关更多信息,请参阅“连接恢复站点和受保护站点”主题),在两个站点 上,必须对存储阵列管理器进行配置,以便 SRM 可以查找远程复制数据和设备、管理数据存储组和执行存储 操作。 在此步骤中,您需要为存储阵列管理器提供以下详细信息: • SRA 类型和显示名称 • 存储阵列连接信息和受保护站点及恢复站点的密码(如果使用) 注: 通常情况下,存储阵列管理器不需要重新配置,除非连接信息、密码或存储阵列组件发生更改。 要在两个站点配置存储阵列管理器: 1.
图 13: 添加阵列管理器 2. 为受保护站点的存储阵列输入显示名称。然后单击下一步。 3. 在存储阵列连接参数部分: a) 在 IP 地址 1 输入 MD 存储阵列 RAID 控制器 0 的 IP 地址。 b) 在 IP 地址 2 输入 MD 存储阵列 RAID 控制器 1 的 IP 地址。 4. 在对等存储阵列连接参数部分: a) 在 IP 地址 1 输入复制的 MD 存储阵列 RAID 控制器 0 的 IP 地址。 b) 在 IP 地址 2 输入复制的 MD 存储阵列 RAID 控制器 1 的 IP 地址。 5.
图 14: 阵列管理器参数 6. 单击下一步以验证信息,并查找存储阵列。 7. 单击确定完成在受保护站点上的阵列管理器配置。 8. 在恢复站点上重复以上步骤。 重新扫描并启用 SRA 受保护站点和恢复站点上的存储阵列都被查找到以后: 1.
图 15: 阵列管理器视图 2. 选择受保护站点,然后单击重新扫描 SRA。 3. 选择恢复站点,然后单击重新扫描 SRA。 4. 在阵列管理器视图中选择受保护或恢复轴。 5. 选择阵列对选项卡。 6. 单击启用以在受保护站点和恢复站点上都激活 SRA 。 SRA 应已载入到 SRM。请检查摘要选项卡以确保其显示正确。 创建保护组 在受保护站点上的最后配置步骤,是为虚拟机创建将包含到恢复解决方案中的保护组。 SRM 将数据存储组与 保护组关联起来,以收集所有与虚拟机故障转移相关的文件。 1. 在保护组视图,选择创建保护组。 2.
图 16: 创建保护组 3. 在保护组类型,选择基于阵列的复制(SAN)选项。 4. 从列表中选择一个或多个数据存储组,然后单击下一步。 5. 输入保护组的名称和可选说明,然后单击下一步。 6. 单击完成 以创建保护组。 创建恢复计划 解决方案配置过程的最后一步是在恢复站点创建恢复计划。 1. 在恢复计划视图中,选择创建恢复计划。 2.
图 17: 创建恢复计划 图 18: 选择保护组 26
3. 在选择保护组,选择恢复计划的保护组。 4. 单击下一步。 5. 在测试网络,选择在恢复计划测试期间,虚拟机将连接的恢复站点网络。 6. 单击下一步。 7. 输入恢复计划的名称和可选说明,然后单击下一步。 8. 单击完成以创建恢复计划。 9.
测试和运行恢复计划 5 测试恢复计划 创建恢复计划后,对其进行测试以验证其功能与预期一致。 1. 从恢复计划视图中,选择摘要选项卡。 2. 在左侧窗格中选择恢复计划的,单击测试。 3. 4. 选择将最近的更改复制到恢复站点以确保恢复站点有受保护的虚拟机的最新备份。如果选择该选项,将导 致同步需要更长的时间才能完成。 仔细查看确认窗口,然后单击完成。 5.
图 21: 恢复计划进度 一旦虚拟机开机并且检测到操作系统检测信号,测试故障转移计划将停止并显示一个黄色继续横幅。 要验证 故障转移虚拟机的功能性,通过键入 Ctrl-Shift-H 选择主机和群集视图。 您将会在恢复站点资源树下看到已开 机的虚拟机。 您可以打开其中一个虚拟机的控制台并登录,以验证来宾功能。 注: 由于这是一个测试故障转移,网络资源配置未被应用至虚拟机。因此,您无法从这些虚拟机访问任何 其他网络资源。 一旦您对虚拟机的操作感到满意,返回到站点恢复视图,然后单击清除链接以清除测试故障转移。单击此链接 关闭测试虚拟机并移除虚拟磁盘快照,然后将恢复计划返回到就绪状态。 测试故障转移完成后,单击历史选项卡查看恢复计划所执行的任务列表。单击测试运行旁边的查看链接,打开 测试故障转移期间执行的恢复步骤的 HTML 页面视图。 30
图 22: 恢复计划历史视图 运行恢复计划 运行恢复计划的操作类似于测试恢复计划。然而,它在以下方面有所不同: • 恢复阵列上的远程复制虚拟磁盘升级到主状态 • 源虚拟磁盘对于映射主机的是只读的 • 主站点上的虚拟机已关闭 • 网络资源配置已应用至恢复站点的虚拟机 如果在恢复站点和受保护站点之间的通信不可用的情况下执行恢复计划,会出现以下情况: • 受影响的虚拟磁盘的远程复制关系中断,当通信重新建立后,需要进行完整的同步 • 受保护站点的虚拟机没有关闭,当网络连接重建后,可能会导致网络问题 要运行恢复计划 1. 从恢复计划视图中,选择 摘要选项卡。 2.
图 23: 运行恢复计划警告 3. 在恢复类型中,选择计划迁移或灾难恢复。 4. 注: 选择“灾难恢复”选项将会强制恢复,只应在站点完全丢失的情况下使用。“计划迁移”选项将 导致恢复在遇到问题时停止。 仔细审核警告信息,然后选择选项,确认您了解运行恢复计划的结果。然后,单击下一步。 5. 单击开始以运行恢复计划。 6.
故障回复流程 6 为了将虚拟机从恢复站点故障回复到原始受保护站点,必须在相对的 vCenter Server 站点上,同样执行配置阵 列管理器、资源清册映射、创建恢复计划和保护组这些步骤。 1. 如果虚拟磁盘远程复制关系已损坏,则必须重新创建从恢复站点存储阵列至原始受保护站点存储阵列的复 制,然后等待执行完全同步,再执行故障回复恢复计划。 2. 在配置阵列管理器时,受保护阵列的信息将成为恢复站点存储阵列的信息,并且恢复阵列的信息将成为原 始受保护站点存储阵列的信息。 创建故障回复保护组之前,必须登录到原始受保护站点的 vCenter Server,移除已从资源清册中故障转移 的虚拟机。 故障回复恢复计划已在原始受保护站点 vCenter Server 创建并执行。 3. 4.
故障排除和杂项问题 7 本节包含了一般故障排除信息并说明了安装期间可能会遇到的杂项问题。 在故障转移期间的重新扫描不检测虚拟磁盘的映射 根据 ESX 主机中使用的光纤信道卡的类型和 iSCSI 配置,在测试故障转移状态期间,可能会遇到无法定位数据 存储卷的错误。如果要从“配置”选项卡下的“存储适配器”视图发出 rescan all 命令,以使 ESX 主机检测虚 拟磁盘的映射,请修改 C:\Program Files (x86)\VMware\VMware vCenter Site Recovery Manager\config\vmwaredr.xml 文件,在 部分添加 2 ,以 使得每次执行恢复计划时,执行两次重新扫描。 图 24: 重复重新扫描语法 在故障转移数据存储中移除 Snap-XXX要在故障转移后将数据存储的名称恢复为其原始名称,请在 vmware-dr.
此错误表示虚拟磁盘丢失一个 LUN 号码。进一步调查到 MDSM 中,显示如下信息: 图 27: MDSM 映射视图 映射视图显示有虚拟磁盘映射到它的已定义的主机组,但没有任何主机分配给主机组——这是一条无效的 SRA 配置。您必须从主机组移除虚拟磁盘映射,或将主机分配给主机组。 其他错误均能使用类似的方法调试。对于无法解决的问题,请在 dell.com/support 联系 Dell 技术支持,或在 VMware 社区站点 http://communities.vmware.com/index.
8 参考信息 联系 Dell 注: Dell 提供多种联机和基于电话的支持和服务选项。如果您不能连接至 Internet,您可以在您的购买发 票、装箱单、账单或 Dell 产品目录中找到联系信息。具体的服务随您所在国家/地区以及产品的不同而不 同,某些服务在您所在的地区可能不提供。 有关销售、技术支持或客户服务问题,请联系 Dell: 1. 访问 dell.com/contactdell。 2. 从交互式世界地图中选择您所在的国家或地区。 当您选择了一个地区时,随即显示该选定地区的相应国家。 3. 在所选国家/地区下选择相应的语言。 4. 选择您的业务部门。 将显示所选业务部门的支持主页。 5. 根据您的要求选择相应的选项。 注: 如果您购买了 Dell 系统,可能会要求您提供服务标签。 相关说明文件(您可能需要的其他信息) 注: 有关所有 PowerEdge 和 PowerVault 文档,请访问 dell.com/support/manuals,然后输入系统服务标签以 获取您的系统文档。 注: 有关所有虚拟化的说明文件,请访问 dell.
vmware.com/support/pubs/srm_pubs.html • vSphere 5.0 说明文件(ESXi、ESX 和 vCenter Server) vmware.com/support/pubs/srm_pubs.html • VMware 知识库(可搜索的支持问题) kb.vmware.com/selfservice/microsites/microsite.do • VMware 社区(帮助论坛) communities.vmware.com/index.jspa • VMware 兼容性指南 vmware.com/resources/compatibility/search.php 找到您的系统服务标签 您的系统通过唯一的快速服务代码和服务标签号来标识。快速服务代码和服务标签位于系统的正面,可通过拉 出信息标签找到。Dell 采用此信息将支持电话转接至正确的服务人员。 说明文件反馈 如果您对此文档有任何意见和建议,请将其发送至 documentation_feedback@dell.