从 Amazon Web Services (AWS) 和其他平台迁移到 Azure 中的托管磁盘Migrate from Amazon Web Services (AWS) and other platforms to Managed Disks in Azure

可将 VHD 文件从 AWS 或本地虚拟化解决方案上传到 Azure,以创建可利用托管磁盘的 VM。You can upload VHD files from AWS or on-premises virtualization solutions to Azure to create VMs that take advantage of Managed Disks. Azure 托管磁盘不需要为 Azure IaaS VM 管理存储帐户。Azure Managed Disks removes the need to manage storage accounts for Azure IaaS VMs. 必须仅指定所需类型(高级或标准)和磁盘大小,Azure 将创建和管理磁盘。You have to only specify the type (Premium or Standard) and size of disk you need, and Azure creates and manages the disk for you.

可以上传通用和专用 VHD。You can upload either generalized and specialized VHDs.

  • 通用 VHD - 已使用 Sysprep 删除所有个人帐户信息。Generalized VHD - has had all of your personal account information removed using Sysprep.
  • “专用 VHD” - 维护来自原始 VM 的用户帐户、应用程序和其他状态数据。Specialized VHD - maintains the user accounts, applications, and other state data from your original VM.

重要

将任何 VHD 上传到 Azure 之前,应该遵循准备要上传到 Azure 的 Windows VHD 或 VHDXBefore uploading any VHD to Azure, you should follow Prepare a Windows VHD or VHDX to upload to Azure

方案Scenario 文档Documentation
拥有要使用托管磁盘迁移至 Azure VM 的现有 AWS EC2 实例。You have existing AWS EC2 instances that you would like to migrate to Azure VMs using managed disks 将 VM 从 Amazon Web Services (AWS) 移到 AzureMove a VM from Amazon Web Services (AWS) to Azure
拥有要用作映像的来自其他虚拟化平台的 VM,以创建多个 Azure VM。You have a VM from another virtualization platform that you would like to use as an image to create multiple Azure VMs. 上传通用 VHD 并用其在 Azure 中新建 VMUpload a generalized VHD and use it to create a new VM in Azure
有一个唯一自定义 VM,你想要在 Azure 中重新创建它。You have a uniquely customized VM that you would like to recreate in Azure. 将专用 VHD 上传到 Azure 并创建新 VMUpload a specialized VHD to Azure and create a new VM

托管磁盘概述Overview of Managed Disks

Azure 托管磁盘无需管理存储帐户,从而简化了 VM 管理。Azure Managed Disks simplifies VM management by removing the need to manage storage accounts. 托管磁盘还受益于可用性集中 VM 的更佳可靠性。Managed Disks also benefit from better reliability of VMs in an Availability Set. 这可确保将可用性集中不同 VM 的磁盘最大限度地彼此独立,以避免单点故障。It ensures that the disks of different VMs in an Availability Set are sufficiently isolated from each other to avoid a single point of failure. 它会自动将可用性集中不同 VM 的磁盘置于不同的存储缩放单元(戳),限制由于硬件和软件故障引起的单个存储缩放单元故障影响。It automatically places disks of different VMs in an Availability Set in different Storage scale units (stamps) which limits the impact of single Storage scale unit failures caused due to hardware and software failures. 根据需求,可以从三种类型的存储选项中进行选择。Based on your needs, you can choose from three types of storage options. 若要了解可用的磁盘类型,请参阅选择磁盘类型一文。To learn about the available disk types, see our article Select a disk type.

计划迁移到托管磁盘Plan for the migration to Managed Disks

本部分可帮助你针对 VM 和磁盘类型做出最佳决策。This section helps you to make the best decision on VM and disk types.

如果打算从非托管磁盘迁移到托管磁盘,则应注意具有虚拟机参与者角色的用户不能更改 VM 大小(因为它们可以预转换)。If you are planning on migrating from unmanaged disks to managed disks, you should be aware that users with the Virtual Machine Contributor role will not be able to change the VM size (as they could pre-conversion). 这是因为包含托管磁盘的 VM 要求用户对 OS 磁盘具有 Microsoft.Compute/disks/write 权限。This is because VMs with managed disks require the user to have the Microsoft.Compute/disks/write permission on the OS disks.

位置Location

选取 Azure 托管磁盘可用位置。Pick a location where Azure Managed Disks are available. 如果要迁移到高级托管磁盘,还应确保高级存储在计划迁移到的区域中可用。If you are migrating to Premium Managed Disks, also ensure that Premium storage is available in the region where you are planning to migrate to. 有关可用位置的最新信息,请参阅 Azure 服务(按区域)See Azure Services by Region for up-to-date information on available locations.

VM 大小VM sizes

如果要迁移到高级托管磁盘,需要将 VM 的大小更新为该 VM 所在区域中支持高级存储的可用大小。If you are migrating to Premium Managed Disks, you have to update the size of the VM to Premium Storage capable size available in the region where VM is located. 查看支持高级存储的 VM 大小。Review the VM sizes that are Premium Storage capable. 虚拟机大小中列出了 Azure VM 大小规范。The Azure VM size specifications are listed in Sizes for virtual machines. 查看适用于高级存储的虚拟机的性能特征并选择最适合工作负荷的 VM 大小。Review the performance characteristics of virtual machines that work with Premium Storage and choose the most appropriate VM size that best suits your workload. 确保 VM 上有足够的带宽来驱动磁盘通信。Make sure that there is sufficient bandwidth available on your VM to drive the disk traffic.

磁盘大小Disk sizes

高级托管磁盘Premium Managed Disks

有 7 种类型的高级托管磁盘可用于 VM,每种磁盘都具有特定的 IOPS 和吞吐量限制。There are seven types of premium managed disks that can be used with your VM and each has specific IOPs and throughput limits. 根据应用程序在容量、性能、可伸缩性和峰值负载方面的需要为 VM 选择高级磁盘类型时,需要考虑这些限制。Take into consideration these limits when choosing the Premium disk type for your VM based on the needs of your application in terms of capacity, performance, scalability, and peak loads.

高级磁盘类型Premium Disks Type  P4P4   P6P6    P10P10   P15P15 P20P20   P30P30   P40P40 P50P50  
磁盘大小Disk size           32 GB32 GB 64 GB64 GB 128 GB128 GB 256 GB256 GB 512 GB512 GB  1024 GB (1 TB)1024 GB (1 TB)    2048 GB (2 TB)2048 GB (2 TB)    4095 GB (4 TB)4095 GB (4 TB)   
每个磁盘的 IOPSIOPS per disk       120120    240240   500500  11001100 23002300              50005000              75007500              75007500             
每个磁盘的吞吐量Throughput per disk 每秒 25 MB25 MB per second  每秒 50 MB50 MB per second  每秒 100 MB100 MB per second 每秒 125 MB125 MB per second 每秒 150 MB150 MB per second 每秒 200 MB200 MB per second 每秒 250 MB250 MB per second 每秒 250 MB250 MB per second

标准托管磁盘Standard Managed Disks

有 7 种类型的标准托管磁盘可用于 VM。There are seven types of standard managed disks that can be used with your VM. 其中每种磁盘都具有不同的容量,但具有相同的 IOPS 和吞吐量限制。Each of them have different capacity but have same IOPS and throughput limits. 根据应用程序的容量要求,选择标准托管磁盘的类型。Choose the type of Standard Managed disks based on the capacity needs of your application.

标准磁盘类型Standard Disk Type  S4S4               S6S6               S10S10              S15S15 S20S20              S30S30              S40S40              S50S50             
磁盘大小Disk size           30 GB30 GB            64 GB64 GB            128 GB128 GB           256 GB256 GB           512 GB512 GB           1024 GB (1 TB)1024 GB (1 TB)   2048 GB (2TB)2048 GB (2TB)    4095 GB (4 TB)4095 GB (4 TB)  
每个磁盘的 IOPSIOPS per disk       500500              500500              500500              500500              500500              500500              500500             500500             
每个磁盘的吞吐量Throughput per disk 每秒 60 MB60 MB per second 每秒 60 MB60 MB per second 每秒 60 MB60 MB per second 每秒 60 MB60 MB per second 每秒 60 MB60 MB per second 每秒 60 MB60 MB per second 每秒 60 MB60 MB per second 每秒 60 MB60 MB per second

磁盘缓存策略Disk caching policy

高级托管磁盘Premium Managed Disks

默认情况下,所有高级数据磁盘的磁盘缓存策略都是“只读”,所有附加到 VM 的高级操作系统都是“读写”。By default, disk caching policy is Read-Only for all the Premium data disks, and Read-Write for the Premium operating system disk attached to the VM. 为使应用程序的 IO 达到最佳性能,建议使用此配置设置。This configuration setting is recommended to achieve the optimal performance for your application's IOs. 对于频繁写入或只写的磁盘(例如 SQL Server 日志文件),禁用磁盘缓存可获得更佳的应用程序性能。For write-heavy or write-only data disks (such as SQL Server log files), disable disk caching so that you can achieve better application performance.

定价Pricing

查看托管磁盘定价Review the pricing for Managed Disks. 高级托管磁盘的定价与高级非托管磁盘相同。Pricing of Premium Managed Disks is same as the Premium Unmanaged Disks. 但标准托管磁盘的定价与标准非托管磁盘不同。But pricing for Standard Managed Disks is different than Standard Unmanaged Disks.

后续步骤Next Steps