question

osuolaleemmanuel-4617 avatar image
osuolaleemmanuel-4617 asked ·

I tried attached a managed disk to my Linux VM but it is not reflecting

Yesterday i tried creating a Linux VM and Attaching a disk to it by following the instruction on MIcrosoft Learn, I was able to do everything successful and the disk actually showed when i used lsblk command
When i then tried to resize it that worked great too and when i used lsblk it showed
But when i tried to verify it using
ssh azureuser@$ipaddress df -h
The disk i tried to resize still maintained it previous size
Can anybody helo me

azure-virtual-machinesazure-migrateazure-managed-disks
1 comment
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Is the new size mounted?

My guess is that you still mount only part of the disk (the old partition). You might need to expand the partition or add another one on the free space

0 Votes 0 · ·
deherman-MSFT avatar image
deherman-MSFT answered ·

@osuolaleemmanuel-4617 Please see the document Expand virtual hard disks on a Linux VM with the Azure CLI. From your description it sounds like you still need to resize the filesystem. You can find details in the provided document.






Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.



Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

osuolaleemmanuel-4617 avatar image
osuolaleemmanuel-4617 answered ·

I have already resized it and that worked perfectly, but after mounting it, It didn't reflect

2 comments Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you please let me know which OS commands you used after resizing the disk? Please also provide the current output of "df -hT" and "lsblk". Also please provide the Learn Tutorial you were working on.

0 Votes 0 · ·

@osuolaleemmanuel-4617 Just checking in to see if the above answer helped. If this answers your query, please don’t forget to "Accept the answer" and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.

0 Votes 0 · ·