Let’s learn how to Resize Azure VM Disk Storage Without Downtime. Resizing a disk on Azure can provide more storage capacity and better performance for your applications and meet the user’s needs. Resizing is important for users that need more powerful VMs to run CPU intensive applications and more disk space for file storing. Show
When you create a new virtual machine (VM) in a resource group by deploying an image from Azure Marketplace, the default operating system (OS) disk is usually 127 GB. However, you can add data disks to your VM. You can use the live resize feature in preview to dynamically increase the size of your disks without any downtime to your application. You can start with smaller disks to keep costs down and increase the size of your disks without any downtime as your data footprint grows. You may need to expand the OS disk if you’re supporting a legacy application that installs components on the OS disk or if you’re migrating a physical PC or VM from on-premises with a larger OS disk. This article covers expanding either OS disks or data disks. You can also check how to Improve VM Network Performance Using Azure Proximity Placement Groups, and This is useful for workloads where low latency is a requirement. Once you have configured this Azure proximity solution, you can decrease the inter-VM network latency associated with your applications.
Requirements to Expand Disk Without DowntimeYou can now expand your data disks without deallocating your VM. After expanding the disks, you need to expand the volume in the operating system to take advantage of the larger disk. The preview has the following limitations –
Let’s follow the steps to register the LiveResize feature – To validate your registration, use the following command to check the status. Here you can see the RegistrationState column showing Not Registered. Resize Azure VM Disk Storage without DowntimeTo register for the feature, Copy and paste the following command and Press Enter. Resize Azure VM Disk Storage without Downtime 2It may take a few minutes for registration to complete. Here you can see the RegistrationState column showing Registered. To confirm that you’ve registered, use the following command: Resize Azure VM Disk Storage without Downtime 3Resize Managed Disk for VM in Azure PortalIf you have enabled LiveResize and your disk meets the requirements, you can skip the deallocation or stopping of VMs.
Under Disk Settings, select Size + performance to select the disk size you want. Click on the Size + Performance tab – Resize Azure VM Disk Storage without Downtime 5Select disk size based on your requirements from the list and click on Resize. The new size should be greater than the existing disk size. The maximum allowed is 4,095 GB for OS disks. (It’s possible to expand the VHD blob beyond that size, but the OS works only with the first 4,095 GB of space.) Note – You may experience the message “Changes to the disk size can be made only when the disk is unattached, or the managing virtual machine(s) are deallocated (Stopped)” Select Disk SKU – Resize Azure VM Disk Storage without Downtime 6A notification will appear automatically in the top right-hand corner with a message. You can see that the Successfully updated disk. Successfully Updated Disk – Resize Azure VM Disk Storage without Downtime 7Under Settings, select Disks. Under the Disk name, You can see the updated disk Size changed to 256 GB. Updated Disk Size – Resize Azure VM Disk Storage without Downtime 8Expand Volume in the Operating SystemWhen you have expanded the disk for the VM, you need to go into the OS and expand the volume to encompass the new space. There are several methods for expanding a partition. You can connect to the VM using an RDP connection to expand the partition using Diskpart or Disk Manager. In Disk Management, you can see the unallocated space. Right-click on existing C: drive partition -> Extend Volume and complete the steps. You can also create a separate drive if you want. What is the maximum limit of disk size in Azure?Each data disk has a maximum capacity of 32,767 gibibytes (GiB). The size of the virtual machine determines how many data disks you can attach to it and the type of storage you can use to host the disks.
What type of storage can only be used with Azure virtual machine disks and is best for?What type of storage can only be used with Azure virtual machine disks and is best for I/O intensive applications? Premium storage. Premium storage can only be used with Azure virtual machine disks and is best for read and write intensive. The maximum size for a file share is 5 TBs.
What disk types are available in Azure?Choose from four types of disks for the cloud—Ultra Azure Disk Storage, Premium SSD, Standard SSD and Standard HDD—and use multiple disks with each virtual machine.
Can we reduce disk size in Azure?Change disk size
Once the VM is stopped, you can click on Disks in the left menu of the VM. Then click on the disk you want to change. In the disk blade, select size & performance. In this view, you can change the disk type: either Premium SSD, Standard SSD or Standard HDD.
|