Resizing a attached data disk on linux

Vishesh 40 Reputation points
2025-04-23T12:15:44.48+00:00

I resized my data disk premium ssd from 64gb to 128gb on ubuntu while the VM was ON.

On running this command "lsblk", it returned:
sdb 8:16 0 64G 0 disk

└─sdb1 8:17 0 64G 0 part /mnt

sdc 8:32 0 128G 0 disk

I don't know how it created a new 128 gb virtual disk. What is happening here, can someone help ?

PS. I have restarted the VM as well.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Sudheer Reddy 2,075 Reputation points Moderator
    2025-04-23T14:05:39.1166667+00:00

    Hi Vishesh,

    I was able to replicate the scenario in my lab environment.

    OS Disk: Initially I had only OS disk for my ubuntu vmUser's image

    and the partition inside vm looks like belowUser's image

    Data Disk: Later i attached a data disk to my vm with 64gb. You can check the data disk sdc inside a vm 64gb.

    User's image

    User's image

    Later, i increased the size of data disk in Azure portal from 64gb to 128gb. You can observe the increase of data disk sdc from 64gb to 128gb inside vm.

    User's image

    User's image

    The sdb is a temporary disk provided by Azure (commonly /dev/sdb on Linux) as it is not shown in the Azure portal's Disks blade and cannot be managed through the portal.

    Please check below documentation for more information,

    https://techcommunity.microsoft.com/discussions/azurestorage/disk-attached-but-not-showing-in-portal/3625466

    https://learn.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal

    If the information is helpful, please click on "Accept Answer" and "Upvote"

    If you have any queries, please do let us know, we will help you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.