Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, March 19, 2019 8:51 AM
Hi All,
I have created a VMSS with Ubuntu OS image in Azure.
At the moment, I have 3 machines running with disks size of 30GB size.
How do I scale up to 64GB or 128GB disks in my Linux VMSS instances?
I tried creating a VMSS with managed disk and unmanaged disks, had an option to add data disk but no option to increase the size of existing disk.
Help me understand how do I extend or increase the default size of the disk of my existing VMSS instances which are running in Azure?
Thanks in advance. Incase you need some more information, please let me know, ill be happy to provide any additional info.
All replies (2)
Tuesday, March 19, 2019 12:47 PM
Hi,
Please try with the below command. Though i didnt try this with my cluster, It should work. You may need to restart VMSS instances for the changes to take effect.
az vmss update -n <vmss name> -g <resource group name> --set virtualMachineProfile.storageProfile.osDisk.diskSizeGb=150
Try this out in your test cluster and let me know.
Wednesday, March 20, 2019 12:31 PM
Hi,
I tried to increase my OS disk size in my VMSS. My instance disk size is 128GB. I increased it to 150GB. I ran the mmand in the above reply.
After that i scaled up the VMMS machines count from 2 to 3. The new instance disk size is 150, But the remaining space(22GB) is unallocated state. I expanded the disk to use the additional capacity. We can configure a VMSS custom script extension to do the expansion when a new machines a coming up in the VMSS.
The two old machines which were on the VMSS before resizing is not updated as expected. Restarting the VMSS wont help. After Reimaging the VMSS, all the machiens OS disk size became 150 GB, But still we need to expand the disk.
If you dont want to use a custom script extension to expand disk , Please consider using data disks.
Let me know if this helps.