The Sandia National Laboratory computer
The Sandia National Laboratory computer by U.S. Department of Energy is licensed under CC-CC0 1.0

cfdisk and add unallocated spaces

Run this to find available free spaces sudo vgs

Extend the logical volume , see volume name by running df -h, and to extend run something like sudo lvextend -L +10G /dev/mapper/ubuntu–vg-ubuntu–1v

Extend the filesystem by running sudo lvextend -L +10G /dev/mapper/ubuntu–vg-ubuntu–1v for ext4 and for xfs run sudo xfs_growfs /dev/mapper/ubuntu–vg-ubuntu–1v