Solved Battling to expand partition

Solved issue

Zululander

New Member
Joined
Apr 24, 2024
Messages
17
Reaction score
5
Credits
137
I have the following partitions

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sr0 11:0 1 1024M 0 rom
xvda 202:0 0 20G 0 disk
├─xvda1 202:1 0 1M 0 part
├─xvda2 202:2 0 1.8G 0 part /boot
└─xvda3 202:3 0 8.2G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 8.2G 0 lvm /

The is for my VM which initially was only 10GB. I have increased the disk to 20GB

I am wanting to from xvda3 to use all the extra space.

I have tried
Bash:
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv

but can't get it to work
 


Yes, it's 2 commands in pair:

lvextend
resize2fs

first check how much free space you got:
vgdisplay -v | grep -i free

run commands like

vgs, pvs, lvs to get an idea what you got
 


Latest posts

Top