I followed this post to extend my (LVM) Ubuntu partition. It doesn't work and my disk is still 50GB (while it should be 200GB).
$ sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
Size of logical volume ubuntu-vg/ubuntu-lv changed from 24,50 GiB (6272 extents) to <49,00 GiB (12543 extents).
Logical volume ubuntu-vg/ubuntu-lv successfully resized.
Then
$ sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs 1.45.5 (07-Jan-2020) Filesystem at /dev/mapper/ubuntu--vg-ubuntu--lv is mounted on
/; on-line resizing required old_desc_blocks = 4, new_desc_blocks = 7 The filesystem on
/dev/mapper/ubuntu--vg-ubuntu--lv is now 12844032 (4k) blocks long.
Oddly enough, I don't get the expected output (my disk should be 200GB):
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
loop0 7:0 0 55,7M 1 loop /snap/core18/2823
loop1 7:1 0 91,9M 1 loop /snap/lxd/24061
loop2 7:2 0 91,9M 1 loop /snap/lxd/29619
loop3 7:3 0 63,7M 1 loop /snap/core20/2434
loop4 7:4 0 55,4M 1 loop /snap/core18/2846
loop5 7:5 0 64M 1 loop /snap/core20/2379
loop6 7:6 0 38,8M 1 loop /snap/snapd/21759
loop7 7:7 0 44,4M 1 loop /snap/snapd/23545
sda 8:0 0 200G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 199G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 49G 0 lvm /
sr0 11:0 1 1024M 0 rom
What have I missed? How can I expand my partition properly to have 200GB instead of 50GB total space?
sudo fdisk -l /dev/mapper/ubuntu--vg-ubuntu--lv
Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 48,102 GiB, 52609155072 bytes, 102752256 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes