Posts

Showing posts from May 29, 2022

Extend free space on ubuntu 20.04 disk

Extend free space on ubuntu 20.04 disk I also used the default Ubuntu 20.04 install from ISO w/ lvm option selected. I had the same problem with the OS disk not occupying what I had allocated.   Step as below: user@util:~ # sudo vgdisplay <snip> user@util:~ # sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv <snip> user@util:~ # sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv <snip> Before user@util:~ # sudo df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 795M 1.1M 793M 1% /run /dev/mapper/ubuntu--vg-ubuntu--lv 98G 6.5G 86G 8% / tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/xvda2 976M 105M 805M 12% /boot /dev/loop2