Key concepts
Now that you have an initial understanding of the Azure Managed Disks service, let’s spend some time going through all the different components and features in detail.
Disk roles
In Azure, disks play three primary roles:
Operating system (OS) disk An OS disk is created by default for every VM you create in Azure. This disk contains the OS running on the VM as well as the boot volume. The OS disk supports partitioning with a master boot record (MBR) and GUID partition table (GPT) depending on the OS requirement. By default, most operating systems use partitioning with MBR, which limits the OS disk capacity to 2 TB. However, you can increase this to 4 TB by converting the disk from MBR to GPT.
Temporary disk Microsoft provides a temporary disk as a non-persistent disk for specific VM models in Azure. When selecting the VM size in Azure, you can see the size of the temporary disk provided with that VM type. Any data you store on the temporary disk should be data that you are willing to lose, such as page files, swap files, or temporary logs. Each time a VM undergoes a forced restart, maintenance, or a redeployment, data on the temporary disk is erased. The VM can retain data stored on these disks only during standard reboot operations. Temporary disks are not encrypted by default, although you can enable encryption if needed. These disks are mapped as D: in Windows VMs and /dev/sdb in Linux-based VMs.
Data disk Data disks are optional, and you can use them based on your workload requirements—for example, separating database installation files from data and log files, which can be stored on their own or individual data disks. As mentioned, OS disks have a maximum capacity of 4 TB, so any data-storage requirements that exceed that would require you to use data disks. The maximum disk capacity for a single data disk is currently 32,767 gigabytes (GB) for Standard HDD, Standard SSD, and Premium SSD disks. However, Ultra disks can be scaled up to 65,536 GB. The number and type of data disks that you can use with a VM depends on the size and type of the VM. Be sure to consider this when selecting the size for your VM.
Disk types
Azure offers four types of disks:
Standard HDD disks
Standard SSD disks
Premium SSD disks
Ultra disks
Standard HDD disks
Standard HDD disks are suitable for workloads that are less critical and are not latency sensitive and for dev/test environments. These disks provide write latencies of less than 10 milliseconds (ms) and read latencies of less than 20 ms. Their performance varies depending on numerous factors, including IO size and workload pattern. Standard HDD disks are the least expensive (per gigabyte) disk option in Azure.
Standard SSD disks
Standard SSD disks are a great alternative for customers that want better performance, scalability, availability, and reliability than is possible with Standard HDD disks. Standard SSD disks are a great choice for low-intensity workloads that require consistent performance, such as web servers, low-usage business applications, and low IOPS applications. Standard SSD disks of 512 GB or more support credit-based bursting, making them ideal for applications that require a burst of performance only on rare occasions. All Azure VMs support Standard SSD disks.
Premium SSD disks
Premium SSD disks offer the second highest level of disk performance, with single-digit millisecond latencies, targeted IOPS, and defined throughput 99.9% of the time. They are suitable for high-intensity workloads, such as production applications and databases.
Premium SSD disks come in different sizes, and the level of IOPS support differs depending on the size of the Premium SSD disk. For example, P1 4 GB to P4 32 GB disks provide 120 IOPS, P10 128 GB disks provide 500 IOPS, while P80 32 TB disks provide 20,000 IOPS. Disk throughput and burst performance also increase as the capacity of the Premium SSD disks go up.
A few more features of Premium SSD disks are as follows:
Premium SSD disks support one-year reservations to help you save on costs. You can set reservations for disks 1 TB and larger.
Premium SSD disks support on-demand and credit-based bursting models. Bursting enables the Premium SSD to increase its performance in the short term to meet workload requirements.
Only specific Azure VM types support Premium SSD disks. When you select a VM type, Azure shows you which types of disks that VM type supports. Because Microsoft adds and removes VM SKUs on an ongoing basis, I have not listed the VM types here, because they may change by the time you read this.
Ultra disks
Ultra disks currently provide the highest level of performance in terms of IOPS and disk throughput, with sub-millisecond latency 99.99% of the time. This makes Ultra disks suitable for critical high-performance workloads such as SAP HANA, mission-critical databases, and transaction-heavy applications.
By default, each Ultra disk can be scaled up to 32 TB. However, you can contact Azure support to request an increase of up to 64 TB. In terms of IOPS, each Ultra disk supports a minimum of 300 IOPS per gibibyte (GiB) and currently maxes out at 160,000 IOPS per disk.
Ultra disks allow you to adjust IOPS and throughput performance during runtime. You are permitted four adjustments every 24 hours. Each adjustment can take up to one hour to take effect and requires sufficient performance bandwidth capacity to prevent failures.
At present, Ultra disks have numerous limitations. These include lack of support for the following:
Availability sets
Azure Dedicated Host
Disk snapshots
Azure Backup
Azure Site Recovery
Disk exports
VM image creation
In addition, Ultra disks cannot be used as OS disks. They can only be set up as data disks. For high-performance workloads that call for the use of an Ultra disk, you will want to set up the OS disk as a Premium SSD disk and leverage Ultra disks for all your workload data.
Managed disk creation walkthrough
The following sections step you through the process of creating a managed disk using the Azure portal, Azure PowerShell, and the Azure CLI.
Using Azure portal
To create a managed disk using the Azure portal, follow these steps:
Log in to the Azure portal, type disks in the search box, and select the Disks option in the list that appears. (See Figure 3-1.)
FIGURE 3-1 Searching for the Disks service in the Azure portal.
On the Disks page (see Figure 3-2), click Create.
FIGURE 3-2 Creating a new disk.
In the Basics tab of the Create a Managed Disk wizard (see Figure 3-3), enter the following information:
Subscription Select the subscription in which you want to create the new managed disk.
Resource Group Select an existing resource group in which to create the new managed disk or create a new one.
Disk Name Enter a unique name for the managed disk.
Region Select the Azure region where you want to host the managed disk.
Availability Zone Select the availability zone you want to use or leave this option set to None (the default).
Source Type If the disk will be created from source data, such as a snapshot, storage blob, another disk, etc., select the source type.
FIGURE 3.3 The Basics tab of the Create a Managed Disk wizard.
To create a disk that is a different redundancy level, type, size, or performance tier from the default (1,024 GiB Premium SSD LRS), click the Change Size link in the Size section of the wizard’s Basics tab.
In the Select a Disk Size dialog box, open the Disk SKU drop-down list and choose a disk type/redundancy level pairing. (See Figure 3-4.)
FIGURE 3-4 Choose a disk type and redundancy level.
Click a size option in the list to select it. Alternatively, use the Custom Disk Size (GiB) and Performance Tier drop-down lists to choose a custom size/tier pairing. Then click OK. (See Figure 3-5.)
FIGURE 3.5 Selecting a different disk size and performance tier.
Back in the Basics tab of the Create a Managed Disk wizard, click Next.
In the Encryption tab of the Create a Managed Disk wizard (see Figure 3-6), open the Key Management drop-down list and choose Platform-Managed Key, Customer-Managed Key, or Platform-Managed and Customer-Managed Keys. Then click Next.
FIGURE 3.6 The Encryption tab of the Create a Managed Disk wizard.
In the Networking tab of the Create a Managed Disk wizard (see Figure 3-7), in the Network Access section, leave the Enable Public Access from All Networks option button selected and click Next.
FIGURE 3.7 The Networking tab of the Create a Managed Disk wizard.
In the Advanced tab of the Create a Managed Disk wizard (see Figure 3-8), enter the following information and click Next:
Enable Shared Disk If you want to use this managed disk as a shared disk, select the Yes Option button. Then use the Max Shares drop-down list to specify how many VMs will share the disk.
FIGURE 3.8 The Advanced tab of the Create a Managed Disk wizard.
On-Demand Bursting If you want this managed disk to be capable of on-demand bursting, select the Enable On-Demand Bursting check box.
Enable Data Access Authentication Mode Optionally, select this check box to enable data access authentication. When you enable data access authentication, you can limit who can download the disk to admins who are authorized using Azure AD and authenticated using an approved account.
In the Tags tab (see Figure 3-9), enter any tags you want to associate with the managed disk and click Next.
FIGURE 3.9 The Tags tab of the Create a Managed Disk wizard.
In the Review + Create tab (see Figure 3-10), review your settings, and click Create to create the managed disk.
FIGURE 3-10 The Review + Create tab of the Create a Managed Disk wizard.
After the managed disk is created, click Go to Resource to access its page. (See Figure 3-11.)
No comments:
Post a Comment