Azure disk size is too small. Linux basic A0 total 29 GB

I just created a linux virtual machine (Ubuntu 14.4) in Azure (SE Asia)

Problem: I only have 29GB not 127GB

This is the base level, A0 (smallest size)

The declared drive size is 127 GB (+ 20 GB tmp)

http://msdn.microsoft.com/en-us/library/azure/dn197896.aspx

I found (after the end of disk space) that I only have 29 GB .

Filesystem Size Used Avail Use% Mounted on /dev/sda1 29G 24G 4.1G 86% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 323M 12K 323M 1% /dev tmpfs 68M 388K 67M 1% /run none 5.0M 0 5.0M 0% /run/lock none 336M 0 336M 0% /run/shm none 100M 0 100M 0% /run/user /dev/sdb1 20G 4.3G 15G 23% /mnt 

Running cfdisk shows that there is no other free space on the disk.

I cannot find any documentation to suggest why only 29 GB.

Is this the problem / problem / problem of my VM?

Or is it somehow related to linux / ubuntu 14.4 / basic tier A0?

+6
source share
5 answers

The VM virtual machine drive is supported by blob in your Azure storage account. Blob is a VHD file. When you created the virtual machine, the corresponding VHD was copied from the gallery to your storage account.

The VHD file presented in the gallery has a logical capacity of 30 GB by design. The documentation states that the maximum allowed size is 127 GB, but this is by accident - 30 GB gallery images.

The solution is two steps, resizing VHD itself (and the corresponding blob), and then using Linux tools to resize the partition. This can help:

Resizing a Windows Azure Virtual Disk

+4
source

You can now resize using the Azure interface.

Moreover, after resizing, Ubuntu VM will not see the new default size, you will see that cfdisk sees unallocated space, and for this I would use fdisk , as described in this answer.

+2
source

You need to run the Azure PowerShell command:

 Update-AzureDisk –DiskName "<Disk name>" -Label "ResiZedOS" -ResizedSizeInGB <Size in GB> 

Example:

 Update-AzureDisk –DiskName "dimitar-linux-dimitar-linux-os" -Label "ResiZedOS" -ResizedSizeInGB 524 

Note The maximum size is 1023 GB.

Note 2 The virtual machine must be shut down.

Documentation:

Question : how to get a disk name?

The answer . You can use azure cli or azure portal.

azure-cli command:

 azure vm disk list <virtual machine name> # In my case: azure vm disk list dimitar-centos 

Azure cli output example

+1
source

@Danailov answer works brilliantly for me (Azure Linux VM changed correctly)

Just add this bit that might help someone; This is how I found out the name of my drive through Azure Powershell;

 Get-AzureDisk | Get-AzureDisk | Format-list DiskName, AttachedTo, DiskSizeInGB, OS > c:\files\disks.txt 

The above command will output a text file at the specified location on your local computer with the following data for each disk / virtual machine in your Azure account - DiskName, AttachedTo, DiskSizeInGB and the operating system on which the VM is running.

+1
source

As mentioned in the Eron Wright answer , disk size is determined from the gallery image.

To change disk size through the Azure Portal web interface:

  • Turn off (free) the virtual machine.
  • Open the VM drive and click Disks
  • Select an OS drive. For me, the disk size was empty.
  • Enter a new size and click "Save."

I tested this with an Ubuntu virtual machine of size Standard_D2_V2 . As soon as I resized the disk and started the virtual machine, I was able to access the full size of the disk.

+1
source

All Articles