使用 Commvault 在 Azure Stack Hub 上备份 VMBack up your VM on Azure Stack Hub with Commvault

有关使用 Commvault 备份 VM 的概述Overview of backing up a VM with Commvault

本文逐步讲解如何配置 Commvault Live Sync,以更新位于独立 Azure Stack Hub 缩放单元上的恢复 VM。This article walks through the configuration of Commvault Live Sync to update a recovery VM located on a separate Azure Stack Hub scale unit. 本文将会详述如何配置常见的合作伙伴解决方案,以保护和恢复 Azure Stack Hub 上部署的虚拟机的数据与系统状态。This article details how to configure a common partner solution to protect and recover the data and system state of Virtual Machines deployed on Azure Stack Hub.

下图显示了使用 Commvault 备份 VM 时的总体解决方案。The following diagram shows you the overall solution when using Commvault to back up your VMs.

此图显示了如何使用 Commvault 将数据从一个 Azure Stack 复制到另一个 Azure Stack 或复制到 Azure 云。

本文内容:In this article you will:

  1. 在源 Azure Stack Hub 实例上创建运行 Commvault 软件的 VM。Create a VM running the Commvault software on your source Azure Stack Hub Instance.

  2. 在辅助位置中创建一个存储帐户。Create a storage account in a secondary location. 本文假设在独立 Azure Stack Hub 实例(目标)上的存储帐户中创建 Blob 容器,并且源 Azure Stack Hub 可以访问目标 Azure Stack Hub。The article assumes you will create a Blob container in a storage account in an Azure Stack Hub instance separate (the target), and that the target Azure Stack Hub is reachable from the source Azure Stack Hub.

  3. 在源 Azure Stack Hub 实例上配置 Commvault,并将源 Azure Stack Hub 中的 VM 添加到 VM 组。Configure Commvault on your source Azure Stack Hub Instance and add VMs in the source Azure Stack Hub to the VM group.

  4. 配置 Commvault 的 Live Sync。Configure Commvault's Live Sync.

也可以下载并提供兼容的合作伙伴 VM 映像,以通过 Azure 云或另一个 Azure Stack Hub 保护 Azure Stack Hub VM。You can also download and offer compatible partner VM images to protect your Azure Stack Hub VMs to an Azure Cloud or another Azure Stack Hub. 本文将会演示如何使用 Commvault Live Sync 来保护 VM。This article will illustrate VM protection with Commvault Live Sync.

此方法的拓扑如下图所示:The topology of this approach will look like the following diagram:

此图显示了从 Azure Stack Hub 1 上的 COMMVAULT VSA 代理到 Azure Stack Hub 2 的数据路径。Azure Stack Hub 2 有一个可在需要备份 Hub 1 时联机的恢复 VM。

从 Commvault 市场项创建 Commvault VMCreate the Commvault VM from the Commvault Marketplace Item

  1. 打开 Azure Stack Hub 用户门户。Open the Azure Stack Hub user portal.

  2. 选择“创建资源” > “计算” > “Commvault”。 Select Create a resource > Compute > Commvault.

    备注

    如果 Commvault 不可用,请与云操作员联系。If Commvault is not available to you, contact your cloud operator.

    创建 VM

  3. 在“创建虚拟机,1 基本信息”中配置基本设置:Configure the basic settings in Create virtual machine, 1 Basics:

    a.a. 输入“名称”。Enter a Name.

    b.b. 选择“标准 HDD”。Select Standard HDD.

    c.c. 输入用户名Enter a Username.

    d.d. 输入密码Enter a Password.

    e.e. 确认密码。Confirm your password.

    f.f. 选择用于备份的订阅Select a Subscription for the backup.

    g.g. 选择一个资源组Select a Resource group.

    h.如果该值不存在,请单击“添加行”。h. 选择 Azure Stack Hub 的位置Select the Location of the Azure Stack Hub. 如果使用的是 ASDK,请选择“本地”。If you are using an ASDK, select local.

    i.i. 选择“确定” 。Select OK.

    “仪表板 > 新建 > 创建虚拟机 > 选择大小”对话框显示了可为该虚拟机选择的大小的列表。

  4. 选择 Commvault VM 的大小。Choose the size of the Commvault VM. 用于备份的 VM 大小应至少有 10 GB 的 RAM,以及 100 GB 的存储。The VM size for backup should be at least 10 GB of RAM and 100 GB of storage.

    “仪表板 > 新建 > 创建虚拟机 > 设置”对话框显示要用于创建虚拟机的设置。..

  5. 选择 Commvault VM 的设置。Choose the settings for the Commvault VM.

    a.a. 将可用性设置为“无”。Set the availability to None.

    b.b. 对于“使用托管磁盘”,请选择“是”。Select Yes for use managed disks.

    c.c. 在“虚拟网络”中选择默认的 VNet。Select the default VNet for the Virtual network.

    d.d. 选择默认的“子网”。Select the default Subnet.

    e.e. 选择默认的“公共 IP 地址”。Select the default Public IP address.

    f.f. 将 VM 保留在“基本”网络安全组中。Leave the VM in the Basic Network Security Group.

    g.g. 打开 HTTP (80)、HTTPS (443)、SSH (22) 和 RDP (3389) 端口。Open the HTTP (80), HTTPS (443), SSH (22), and RDP (3389) ports.

    h.如果该值不存在,请单击“添加行”。h. 选择“无扩展”。Select No extensions.

    i.i. 对于“启动诊断”,请选择“已启用”。 Select Enabled for the Boot diagnostics.

    j.j. 将“来宾 OS 诊断”保持设置为“已禁用”。 Leave the Guest OS diagnostics set to Disabled.

    k.k. 保留默认的“诊断存储帐户”。Leave the default Diagnostics storage account.

    l.l. 选择“确定” 。Select OK.

  6. 在 Commvault VM 通过验证后,查看其摘要。Review the summary of your Commvault VM after it has passed validation. 选择“确定” 。Select OK.

获取服务主体Get your service principal

需要知道标识管理器是 Azure AD 还是 ADFS。You will need to know if your identity manager is Azure AD or ADFS. 下表包含在 Azure Stack Hub 中设置 Commvault 时所需的信息。The following table contains the information you will need to set up the Commvault in your Azure Stack Hub.

元素Element 说明Description SourceSource
Azure 资源管理器 URLAzure Resource Manager URL Azure Stack Hub 资源管理器终结点。The Azure Stack Hub Resource Manager endpoint. https://docs.azure.cn/azure-stack/user/azure-stack-version-profiles-ruby?view=azs-1908#the-azure-stack-hub-resource-manager-endpoint
应用程序名称Application name
应用程序 IDApplication ID 在本文上一部分创建服务主体时保存的服务主体应用 ID。The service principal app ID saved when the service principal was created in the previous section of this article. https://docs.azure.cn/azure-stack/operator/azure-stack-create-service-principals?view=azs-1908
订阅 IDSubscription ID 使用订阅 ID 访问 Azure Stack Hub 中的套餐。You use the subscription ID to access offers in Azure Stack Hub. https://docs.azure.cn/azure-stack/operator/service-plan-offer-subscription-overview?view=azs-1908#subscriptions
租户 ID(目录 ID)Tenant ID (Directory ID) Azure Stack Hub 租户 ID。Your Azure Stack Hub tenant ID. https://docs.azure.cn/azure-stack/operator/azure-stack-identity-overview?view=azs-1908
应用程序密码Application password 创建服务主体时保存的服务主体应用机密。The service principal app secret saved when the service principal was created. https://docs.azure.cn/azure-stack/operator/azure-stack-create-service-principals?view=azs-1908

使用 Commvault 控制台配置备份Configure backup using the Commvault Console

  1. 打开 RDP 客户端,并连接到 Azure Stack Hub 中的 Commavult VM。Open your RDP client and connect to the Commavult VM in your Azure Stack Hub. 输入凭据。Enter your credentials.

  2. 在 Commvault VM 上安装 Azure Stack Hub PowerShell 和 Azure Stack Hub 工具。Install Azure Stack Hub PowerShell and Azure Stack Hub Tools on the Commvault VM.

    a.a. 有关安装 Azure Stack Hub PowerShell 的说明,请参阅安装适用于 Azure Stack Hub 的 PowerShellFor instructions on installing Azure Stack Hub PowerShell, see Install PowerShell for Azure Stack Hub.
    b.b. 有关安装 Azure Stack Hub 工具的说明,请参阅从 GitHub 下载 Azure Stack Hub 工具For instructions on installing Azure Stack Hub Tools, see Download Azure Stack Hub tools from GitHub.

  3. 在 Commvault 安装到 Commvault VM 后,打开 Commcell 控制台。After Commvault installs on in your Commvault VM, open the Commcell Console. 在“开始”中,选择“Commvault” > “Commvault Commcell 控制台”。 From Start, select Commvault > Commvault Commcell Console.

    Commcell 控制台中的左侧有一个导航窗格,其标题为“Commcell 浏览器”。

  4. 在 Commvault Commcell 控制台中,将备份存储库配置为使用 Azure Stack Hub 外部的存储。Configure your backup repositories to use storage external to the Azure Stack Hub in the Commvault Commcell Console. 在 CommCell 浏览器中,选择“存储资源”>“存储池”。In the CommCell Browser, select Storage Resources > Storage Pools. 单击右键并选择“添加存储池”。Right-click and select Add Storage Pool. 选择“云”。Select Cloud.

  5. 添加存储池的名称。Add the name of the Storage Pool. 选择“下一步”。Select Next.

  6. 选择“创建” > “云存储”。 Select Create > Cloud Storage.

    StorageDevice# 对话框显示“常规”选项卡式页面,其中包含用于指定要创建的存储设备的各种列表和文本框。

  7. 选择云服务提供商。Select your cloud service provider. 在此过程中,我们将使用位于不同位置的另一个 Azure Stack Hub。In this procedure, we will use a second Azure Stack Hub in a different location. 选择“Microsoft Azure 存储”。Select Microsoft Azure Storage.

  8. 选择你的 Commvault VM 作为 MediaAgent。Select your Commvault VM as your MediaAgent.

  9. 输入存储帐户的访问信息。Enter your access information for your storage account. 可在此处找到有关设置 Azure 存储帐户的说明。You can find instruction on setting up an Azure Storage account here. 访问信息:Access information:

    • 服务宿主:从资源中的 Blob 容器属性获取 URL 的名称。Service host: Get the name of the URL from the Blob container properties in your resource. 例如,我的 URL 是 https://backuptest.blob.chinaeast.stackpoc.com/mybackups,我在服务主机中使用的是 blob.chinaeast.stackpoc.com。For example, my URL was https://backuptest.blob.chinaeast.stackpoc.com/mybackups and I used, blob.chinaeast.stackpoc.com in Service host.

    • 帐户名称:使用存储帐户名称。Account Name: Use the Storage account name. 可以在存储资源的“访问密钥”边栏选项卡中找到此信息。You can find this in the Access Keys blade in the storage resource.

    • 访问密钥:从存储资源的“访问密钥”边栏选项卡中获取访问密钥。Access Key: Get the access key from the Access Keys blade in the storage resource.

    • 容器:容器的名称。Container: The name of the container. 在本例中为 mybackups。In this case, mybackups.

    • 存储类:保留为用户容器的默认存储类。Storage Class: Leave as User container's default storage class.

  10. 根据创建 Azure Stack Hub 客户端中的说明创建 Azure Stack Hub 客户端Create an Azure Stack Hub Client by following the instructions at Creating an Azure Stack Hub Client

    “创建 Azure Stack 客户端”对话框中包含用于指定客户端特征的列表和文本框。

  11. 选择要保护的 VM 或资源组并附加备份策略。Select the VMs or Resource Groups to protect and attach a backup policy.

  12. 根据恢复 RPO 要求配置备份计划。Configure your backup schedule to match your RPO requirements for Recovery.

  13. 执行首次完整备份。Perform the first full backup.

配置 Commvault Live SyncConfigure Commvault Live Sync

有两个选项可用。Two options are available. 可以选择将主要备份副本中的更改复制到恢复 VM,或者将次要副本中的更改复制到恢复 VM。You can choose to replicate changes from the primary copy of backups or replicate changes from a secondary copy to the recovery VM. 从备份集复制可避免对源计算机造成读取 IO 影响。Replicating from a Backup Set eliminates the Read IO impact on the source machine.

  1. 在配置 Live Sync 期间,需要提供源 Azure Stack Hub(虚拟服务器代理)和目标 Azure Stack Hub 的详细信息。During the configuration of Live Sync, you will need to provide the source Azure Stack Hub (Virtual Server Agent) and the target Azure Stack Hub details.

  2. 有关 Commvault Live Sync 的配置步骤,请参阅 Azure Stack Hub 的 Live Sync 复制For the steps to configure Commvault Live Sync, see Live Sync Replication for Azure Stack Hub.

    Commcell 控制台显示了选项卡式页面“vm-cvlt > 客户端计算机 > ASIC Azure Stack > 虚拟服务器 > Azure Stack > defaultBackupSet”。

  3. 在配置 Live Sync 期间,需要提供目标 Azure Stack Hub 和虚拟服务器代理的详细信息。During the configuration of Live Sync, you will need to provide the target Azure Stack Hub and Virtual Server Agent details.

    子客户端“Off Stack Protection”的“实时同步选项”向导的“目标”步骤提供用于指定虚拟化客户端和代理客户端的列表框。

  4. 继续配置,并添加目标存储帐户(用于托管副本磁盘)、资源组(用于放置副本 VM),以及要附加到副本 VM 的名称。Continue the configuration and add the target storage account where the replica disks will be hosted, the resource group(s) where the replica VMs will be placed, and the name you would like attached to the replica VMs.

    子客户端“Off Stack Protection”的“实时同步选项”向导的“虚拟机”步骤允许你添加和删除 VM。

  5. 还可以选择每个 VM 旁边的“配置”,来更改 VM 大小和配置网络设置。You can also change the VM size and configure network settings by selecting Configure next to each VM.

  6. 设置复制到目标 Azure Stack Hub 的频率Set the frequency of replication to the target Azure Stack Hub

    子客户端“Off Stack Protection”的“实时同步选项”向导的“作业选项”步骤用于指定备份计划。

  7. 检查设置并保存配置。Review your settings to save the configuration. 然后,系统将创建恢复环境,复制将按所选的间隔开始进行。The recovery environment will then be created and replication will begin at the chosen interval.

使用 Live Sync 设置故障转移行为Set up failover behavior using Live Sync

使用 Commvault Live Sync 可将计算机从一个 Azure Stack Hub 故障转移到另一个 Azure Stack Hub,并可以进行故障回复,以恢复原始 Azure Stack Hub 上的操作。Commvault Live Sync allows you to failover machines from one Azure Stack Hub to another and failback to resume operations on the original Azure Stack Hub. 该工作流会自动完成,并会记录日志。The workflow is automated and logged.

管理控制台的“复制监视器”页面显示“复制 RPO”窗格的各种子窗格没有可用的数据。

选择要故障转移到恢复 Azure Stack Hub 的 VM,然后选择计划性或非计划故障转移。Select the VMs you wish to failover to your Recovery Azure Stack Hub and choose a planned or unplanned failover. 计划性故障转移适用于有时间正常关闭生产环境,然后在恢复站点中恢复操作的情况。A planned failover is appropriate when there is time to gracefully shut down the production environment before resuming operations in the recovery site. 计划性故障转移会关闭生产 VM,将最终更改复制到恢复站点,使包含最新数据的恢复 VM 联机,并应用配置 Live Sync 期间指定的 VM 大小和网络配置。Planned failover shuts down the production VMs, replicates final changes to the recovery site, and brings the recovery VMs online with the latest data and applies the VM size and network configuration specified during the Live Sync configuration. 非计划性故障转移会尝试关闭生产 VM,但如果生产环境不可用,则故障转移会继续进行。它只会使恢复 VM 联机,并对 VM 应用最后收到的复制数据集以及所选的大小和网络配置。An unplanned failover will attempt to shut down the production VMs, but will proceed if the production environment is unavailable and simply bring the recovery VMs online with the last received replication data set applied to the VM and the size and network configuration previously chosen. 下图演示了非计划性故障转移,其中,Commvault Live Sync 已使恢复 VM 联机。The images below illustrate an unplanned failover where the recovery VMs have been brought online by Commvault Live Sync.

“作业摘要”显示有关灾难恢复事件的信息,包括“类型”、“优先级”、“开始时间”和“结束时间”。

标题为“事件”的列表显示单个事件(已描述为“DR 业务流程作业已完成”)。

标题为“阶段详细信息”的列表显示四台计算机的六个事件。

后续步骤Next steps

Azure Stack Hub 网络的差异和注意事项Differences and considerations for Azure Stack Hub networking