简体   繁体   中英

Is it possible to reduce the size of a VM disk on Azure

Is it possible to reduce the size of a VM disk?

I have a 500 GB disk with 20 GB of occupation. I want to reduce the size to 100GB. The Azure Portal only allows you to increase. How can I reduce the size?

The VM has the UBUNTU operating system.

Yes you can shrink you VM size

  1. First, create a new Data disk from the Azure portal. Select 'Create disk' and follow the wizard to create a managed disk.
  2. Next, RDP to the VM in order to initialize the new disk. Go to Disk Management and assign a size and Drive letter for the new volume.
  3. Once the new volume is initialized, move the files from the source disk to the new volume. This can be done using the robocopy.

If you are looking for other option you can refer below link as well https://devblogs.microsoft.com/premier-developer/how-to-shrink-a-managed-disk/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM