Resize ubuntu vm disk

  

in here i have 32gb disk and i have expanded another 30gb so i need to extend the disk



✅ Step-by-Step to Expand Disk to Use Full 62 GB

1. 📦 Resize Partition sda3

Use growpart:

bash

sudo apt install cloud-guest-utils sudo growpart /dev/sda 3

Then check:

bash

lsblk

/dev/sda3 should now show ~60GB.


2. 🧱 Resize the Physical Volume

bash

sudo pvresize /dev/sda3

Check:

bash

sudo pvs

3. 📈 Expand the Logical Volume and Filesystem

bash

sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv sudo resize2fs /dev/ubuntu-vg/ubuntu-lv

✅ Confirm

bash

df -h

Now / should show nearly the full ~60 GB usable.

1 Comments

දිරියක් වෙන්න අදහස් පෙළක් දාන්න

  1. Helpful guide! Resizing a virtual disk can save a lot of trouble when an Ubuntu VM starts running out of space. I also like tools that make everyday tasks easier, whether it’s managing a system or exploring something about yourself. For example, an online self-discovery quiz like the Rice innocence test gives friends a simple way to compare experiences and start interesting conversations.

    ReplyDelete
Post a Comment
Previous Post Next Post