Dell PowerVault MD Series Storage Replication Adapter 最佳实践指南(Web 客户端)
注、小心和警告 注: “注”表示可以帮助您更好地使用计算机的重要信息。 小心: “小心”表示可能会损坏硬件或导致数据丢失,并说明如何避免此类问题。 警告: “警告”表示可能会造成财产损失、人身伤害甚至死亡。 版权所有 © 2015 Dell Inc. 保留所有权利。 本产品受美国、国际版权和知识产权法律保护。Dell™ 和 Dell 徽标是 Dell Inc. 在美国和/或其他司 法管辖区的商标。所有此处提及的其他商标和产品名称可能是其各自所属公司的商标。 2015 - 10 Rev.
目录 1 SRA 下载......................................................................................................................... 4 2 安装过程......................................................................................................................... 5 3 受密码保护的存储阵列....................................................................................................6 4 确定快照存储库大小....................................................................................................... 7 快照组存储库..........
1 SRA 下载 Dell Modular Disk (MD) Storage Replication Adapter (SRA) 与 VMware vCenter Site Recovery Manager (SRM) 配合使用,以促进 不同 VMware vCenter Server 环境之间的 Datacenter 故障转移。要使用 SRA,请从位于 http://www.vmware.com/download 的 VMware vCenter SRM 下载页面下载最新版本的 SRA。 有关最新版本,请参阅位于 Dell.com/support 的“支持值表”。 可在安装了 md5sum 的任何 UNIX 主机上计算校验和,也可通过从 http://etree.org/md5com.html 获取 Windows 公用程序(例 如 md5sum.exe)并从命令提示符发出以下命令来计算校验和。 • md5sum SRAInstaller-05.60.3000.xxxx.
2 安装过程 在验证下载文件完整且未损坏后,执行以下步骤: 1. 将安装程序复制到 SRM 服务器。 2. 在这些 SRM 系统上运行 SRA 安装程序。 3. 要接受最终用户许可协议,请遵循提示并确定安装路径。 SRA 安装在以下位置: 安装目录: • C:\Program Files (x86)\Dell\MD SRA 脚本目录: • 4. C:\Program Files\VMware\VMware vCenter Site Recovery Manager\storage\sra\MD 安装后,从 vSphere Web 客户端内的 SRM 重新扫描 SRA。 图 2: Site Recovery Manager(重新扫描 SRA) 5
3 受密码保护的存储阵列 如果您的环境对存储阵列实施密码安全保护,则修改 SraConfigurationData.xml 文件以提示输入存储阵列密码。要修改 该文件,请完成以下任务: 1. 编辑 C:\Program Files\VMware\VMware vCenter Site Recovery Manager\storage\sra\ MD\config\SraConfigurationData.xml file 文件。 2. 找到 标记。 3. 将默认值“false”更改为“true”。 4. 保存文件更改,然后在 SRM Array Manager 内重新扫描 SRA。 注: 所有存储阵列必须使用相同的安全措施。如果某个存储阵列设置了密码,则其对等存储阵列也必须设置密码。 SRA 不支持混合验证模式。
4 确定快照存储库大小 时间点快照提供将虚拟磁盘回滚至以前的时间点存档的能力,并且可优化快照映像之间的数据更改。此功能利用两个不同的存 储库(快照组存储库和快照虚拟磁盘存储库)来促进跟踪对基本虚拟磁盘做出的更改。 快照组存储库 快照组存储库用于跟踪针对基本虚拟磁盘的数据更改;基本虚拟磁盘是用于创建快照映像的虚拟磁盘。快照组存储库可能包含 多个快照映像(基本虚拟磁盘的时间点记录)。从这些映像创建一个快照虚拟磁盘,并且可以将这些映像映射至主机以进行访 问。 图 3: MD Storage Manager 快照组视图 快照虚拟磁盘存储库 快照虚拟磁盘存储库用于跟踪快照虚拟磁盘的数据更改(如果允许读取/写入访问)。将快照虚拟磁盘映射到主机以进行访问 后,在此存储库内跟踪对该虚拟磁盘做出的所有更改。 7
图 4: MD Storage Manager 快照虚拟磁盘视图 SRA 如何使用快照 如果存储阵列上启用了时间点快照功能,则 MD SRA 使用时间点快照。在测试故障转移期间,SRA 在恢复站点的存储阵列上为 所测试的保护组中包含的所有虚拟磁盘创建快照组、快照映像和快照虚拟磁盘。此过程需要创建先前列出的两个快照存储库。 这些存储库的默认大小是每个存储库占基本虚拟磁盘的 10%,共计为基本虚拟磁盘大小的 20%,这表示恢复站点存储阵列上的 空闲磁盘空间必须达到参与测试故障转移虚拟磁盘的基本虚拟磁盘的 20%。该值受 SraConfigurationData.xml 文件控制,该文 件位于安装目录下的 config 目录中,通常位于: C:\Program Files\VMware\VMware vCenter Site Recovery Manager\storage\sra\MD\config\SraConfigurationData.
图 5: MD SRA 存储库视图 通过在下拉菜单中选择快照虚拟磁盘或快照组,可以查看更多信息,例如可用存储库空间、模式和时间戳。 9
5 NVSRAM 设置 要将 LUN 映射到多个主机或主机组,必须更改以下 NVSRAM 设置以支持测试 SRM 内的故障转移。在测试故障转移期间,在 恢复站点存储阵列上会创建快照。您可以将这些快照映射至多个主机或参与恢复的 ESX 或 ESXi 主机的主机组。 1. 在 MD Storage Manager Enterprise Management 窗口中,从下拉菜单中选择工具 → 执行脚本选项。 2. 在脚本编辑器窗口中输入以下命令: show allControllers NVSRAMByte[0x3b]; set controller [0] NVSRAMByte[0x3b]=2; set controller [1] NVSRAMByte[0x3b]=2; reset controller [0]; reset controller [1]; 3. 从菜单中选择工具 → 验证并执行选项。 4. 要对 RAID 控制器模块 1 应用更改,请重复步骤 2 和 3,并用 [1] 替换 [0]。 5.
6 MD SRA 设备管理服务 MD SRAsvc 进程监测并同步 SRA 与 MD 存储阵列之间的通信。SRA 工作负载在一台持久服务器和多个临时客户端程序之间进 行划分,该临时客户端程序仅在单个 SRM 命令期间存续。由于在执行单个 SRM 工作流(例如测试故障转移)期间通常会运行 大量 SRM 命令,因此客户端频繁进出,而运行 Windows 服务的服务器则持久存在,并管理与存储阵列之间的所有通信。 通常情况下,您不需要配置服务器,服务器以默认值运行。如果需要配置服务器以执行非标准操作,可以编辑两个文件(针对 不同的原因): SRA 配置文件 SraConfigurationData.xml,该文件位于 SRA 脚本目录下的 config 目录,通常位于:C:\Program Files \VMware\VMware vCenter Site Recovery Manager\storage\sra\MD\config \SraConfigurationData.xml。 Win32 服务初始化文件 NesSvc.ini,该文件位于 SRA 安装目录下的 win32svc 目录,通常位于:C:\Prog
注: 如果您修改此文件,请停止并重启以实施新设置。 12
7 异步远程复制 异步远程复制 (aRR) 功能支持采用时间点副本的新远程复制方法。此功能同时支持光纤信道和 iSCSI 远程阵列连接。为 SRM 考虑的主要 aRR 功能包括: • 同时支持光纤信道和 iSCSI 远程阵列复制 • 每个阵列最多四个异步远程复制组 (RRG) • 时间点副本之间的 10 分钟同步间隔 iSCSI 远程复制 aRR 支持使用 iSCSI 协议进行远程复制,对于基于阵列的复制,该协议以延迟为代价支持更大的距离。在数据存储创建过程 中,请确保要复制的虚拟磁盘中仅包含必须复制的数据。通过观察和计算所复制的值数据以及同步数据所需的时间来确定同步 期之间的预计延迟时间。如果同步数据所需的时间超过同步间隔,则 RRG 会降级并且无法正常工作。规划合适的 WAN 基础结 构规模对于实现成功的灾难恢复解决方案至关重要。 四异步远程复制的影响 在最多具有 4 个 RRG 的情况下,所有受保护的数据存储虚拟磁盘必须位于四组中的一组内。一个组被视为单个实体;因此, 在交换角色时,RRG 中包含的所有虚拟磁盘都会发生更改。如果需要交叉复制数据存储(例如,从恢复站点复制到受保护站 点),则
8 常规虚拟磁盘建议 使用 VMware vCenter SRM 和 MD 存储阵列设计灾难恢复策略时,请考虑以下事项: • 保护在数据存储级别(存储阵列虚拟磁盘)上运作。与虚拟机位于同一数据存储上的所有需要保护的虚拟机也将受到保护 和复制。 • 使用多个小型数据存储和虚拟磁盘来限制复制到恢复站点的数据大小。 • 将受保护的虚拟机置于(迁移到)同一数据存储,并迁出所有不需要保护的虚拟机。 • SRM 不提供应用程序一致的故障转移,而是提供虚拟机一致的故障转移。因此,即使虚拟机成功进行了故障转移,在虚拟 机上运行的应用程序也可能未处于一致的状态,并且可能需要采用更多的恢复方法来恢复正常操作。 • 具有 07.84.XX.
9 SRA 命令行选项 SRA 会安装一个命令行公用程序,该程序提供以下功能: • 跟踪日志记录:此选项为 SRA 运行和接受的每个命令提供详细的日志记录。日志文件放置在 \track 目录 中。启用的命令行选项为:\svrCmd track on;禁用的命令行选项为:\svrCmd track off。 15
10 SRA Java 更新脚本 在需要更新 JRE 的情况下,随 SRA 安装的命令行公用程序可用于更新 Java 运行时环境。此脚本名为 UpdateJREPath.bat,通常位于 C:\Program Files (x86)\Dell\ Storage Replication Adapter 目录中。 • 在不使用任何选项的情况下运行该批处理文件会显示 SRA 所使用的当前 JRE 路径。 • 使用指向新 JRE 路径的绝对路径运行该批处理文件可更新配置文件以指向新位置,并重启 SRA 服务。 16
11 SRM 高级设置 要访问 SRM 设置,请从 SRM 选择站点,再依次选择特定站点、管理选项卡和高级设置按钮(请参见图 6)。您可以选择设置 组以进行编辑。 图 6: SRM 高级设置 Dell 建议进行以下更改以使 SRA 正常运行: • storage.commandTimeout = 900 • storageProvider.hostRescanRepeatCnt = 2 • storageProvider.hostRescanTimeoutSec = 900 以下是针对您的环境的建议: • storageProvider.fixRecoveredDatastoreNames = true 此外,Dell 建议对 ESX/ESXi 主机设置做出以下更改: • Disk.MaxLUN - 将此值设置为略大于映射至 ESX 主机的 LUN 数量。此设置将不会扫描所有 256 个 LUN 可能性,从而使 重新扫描操作的速度更快。 • Disk.UseDeviceReset = 0 和 Disk.
12 故障排除提示 在某些环境中,您可能需要实施下列某个或全部设置来使 SRA 成功运行。请勿在未经技术支持指导的情况下更改这些设置。 这些是非标准设置,因此,仅应在您的环境遇到更改所述症状时使用这些设置。 预期自动装载的数据存储 错误:未能恢复数据存储“XYZZY”。无法找到位于所恢复设备上并且预期在 HBA 重新扫描期间自动装载的数据存储。 可能的修复方法:修改 C:\Program Files (x86)\VMware\VMware vCenter Site Recovery Manager\config \vmware-dr.
此修改需要重启 ESXi 主机系统。 可能的解决方案 3:(仅限 ESXi 5.x)修改 /etc/vmware/hostd/config.
13 获得帮助 说明文件列表 此说明文件列表提供了可供您参阅的有关设置和管理系统的说明文件信息。 Dell 说明文件 • 有关所有 PowerEdge 和 PowerVault 说明文件,请访问 Dell.com/support,然后输入系统服务标签以获取系统说明文件。 • 有关所有虚拟化说明文件,请访问 Dell.com/virtualizationsolutions。 • 有关所有操作系统说明文件,请访问 Dell.com/operatingsystemmanuals。 • 有关所有存储控制器和 PCIe SSD 说明文件,请访问 Dell.com/storagecontrollermanuals。 • 有关 Dell 支持论坛,请访问 en.community.dell.com/support-forums/default.aspx。 • 有关 Dell 高级搜索,请访问 search.dell.com/index.aspx。 VMware 说明文件 • 有关 vCenter SRM 6.0 说明文件,请访问 https://www.vmware.
4. 对于一般支持: a. 选择您的产品类别。 b. 选择您的产品分类。 c.