echo 1 > /sys/class/block/sda/device/rescan #maybe run under root
> sudo fdisk /dev/sda2 > d > 2 > n > p > w (delete lvm partirion, use start bytes of partition)
Before
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 1001470 587200511 586199042 279.5G 5 Extended
/dev/sda5 --> 1001472 587200511 586199040 279.5G 8e Linux LVM
After
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 --> 1001472 1048575999 1047574528 499.5G 83 Linux
sudo pvresize /dev/sda2
> sudo lvextend -l +100%FREE /dev/DB-vg/root
> sudo resize2fs /dev/DB-vg/root
> lvscan (check changes in fs)
ACTIVE '/dev/DB-vg/root' [<498.57 GiB] inherit
ACTIVE '/dev/DB-vg/swap_1' [976.00 MiB] inherit