How to extend partitions in proxmox with ubuntu

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