启动和停止 Azure Stack HubStart and stop Azure Stack Hub

请遵循本文中的过程正确关闭并重启 Azure Stack Hub 服务。Follow the procedures in this article to properly shut down and restart Azure Stack Hub services. 停止会以物理方式关闭整个 Azure Stack Hub 环境并将其断电。Stop will physically shut down and power off the entire Azure Stack Hub environment. 启动会打开所有基础结构角色的电源,并使租户资源回到关闭前的电源状态。 Start powers on all infrastructure roles and returns tenant resources to the power state they were in before shutdown.

停止 Azure Stack HubStop Azure Stack Hub

使用以下步骤停止或关闭 Azure Stack Hub:Stop or shut down Azure Stack Hub with the following steps:

  1. 针对即将进行的关闭准备在 Azure Stack Hub 环境的租户资源上运行的所有工作负荷。Prepare all workloads running on your Azure Stack Hub environment's tenant resources for the upcoming shutdown.

  2. 从可以通过网络访问 Azure Stack Hub ERCS VM 的计算机打开特权终结点会话 (PEP)。Open a privileged endpoint session (PEP) from a machine with network access to the Azure Stack Hub ERCS VMs. 有关说明,请参阅使用 Azure Stack Hub 中的特权终结点For instructions, see Using the privileged endpoint in Azure Stack Hub.

  3. 从 PEP 运行:From the PEP, run:

      Stop-AzureStack
    
  4. 等待所有物理 Azure Stack Hub 节点关闭电源。Wait for all physical Azure Stack Hub nodes to power off.

备注

可以按照提供 Azure Stack Hub 硬件的原始设备制造商 (OEM) 的指示,确认物理节点的电源状态。You can verify the power status of a physical node by following the instructions from the original equipment manufacturer (OEM) who supplied your Azure Stack Hub hardware.

启动 Azure Stack HubStart Azure Stack Hub

使用以下步骤启动 Azure Stack Hub。Start Azure Stack Hub with the following steps. 请按照下列步骤操作,而不论 Azure Stack Hub 是如何停止的。Follow these steps regardless of how Azure Stack Hub stopped.

  1. 将 Azure Stack Hub 环境中每个物理节点的电源打开。Power on each of the physical nodes in your Azure Stack Hub environment. 按照提供 Azure Stack Hub 硬件的 OEM 的指示,确认物理节点的电源开启指示。Verify the power on instructions for the physical nodes by following the instructions from the OEM who supplied the hardware for your Azure Stack Hub.

  2. 等待直到 Azure Stack Hub 基础结构服务启动。Wait until the Azure Stack Hub infrastructure services starts. Azure Stack Hub 基础结构服务完成启动过程可能需要两个小时。Azure Stack Hub infrastructure services can require two hours to finish the start process. 可以使用 Get-ActionStatus cmdlet 确认 Azure Stack Hub 的启动状态。You can verify the start status of Azure Stack Hub with the Get-ActionStatus cmdlet.

  3. 确保所有租户资源都已恢复到关闭之前的状态。Ensure that all of your tenant resources have returned to the state they were in before shutdown. 在工作负荷管理器启动后,可能需要重新配置在租户资源上运行的工作负荷。Workloads running on tenant resources may need to be reconfigured after startup by the workload manager.

获取 Azure Stack Hub 的启动状态Get the startup status for Azure Stack Hub

使用以下步骤获取 Azure Stack Hub 启动例程的启动状态:Get the startup for the Azure Stack Hub startup routine with the following steps:

  1. 从可以通过网络访问 Azure Stack Hub ERCS VM 的计算机打开特权终结点会话。Open a privileged endpoint session from a machine with network access to the Azure Stack Hub ERCS VMs.

  2. 从 PEP 运行:From the PEP, run:

      Get-ActionStatus Start-AzureStack
    

针对 Azure Stack Hub 的启动和关闭进行故障排除Troubleshoot startup and shutdown of Azure Stack Hub

如果打开 Azure Stack Hub 环境的电源两小时后基础结构和租户服务未成功启动,请执行以下步骤。Take the following steps if the infrastructure and tenant services don't successfully start two hours after you power on your Azure Stack Hub environment.

  1. 从可以通过网络访问 Azure Stack Hub ERCS VM 的计算机打开特权终结点会话。Open a privileged endpoint session from a machine with network access to the Azure Stack Hub ERCS VMs.

  2. 运行:Run:

      Test-AzureStack
    
  3. 查看输出并解决任何运行状况错误。Review the output and resolve any health errors. 有关详细信息,请参阅运行 Azure Stack Hub 的验证测试For more information, see Run a validation test of Azure Stack Hub.

  4. 运行:Run:

      Start-AzureStack
    
  5. 如果运行 test-azurestack 导致失败,请联系 Microsoft 支持部门。If running Start-AzureStack results in a failure, contact Microsoft Support.

后续步骤Next steps

详细了解 Azure Stack Hub 诊断工具Learn more about Azure Stack Hub diagnostic tools