You’ll need the GParted ISO before you start.
- Delete any snapshots (this allows you to increase the disk size).
- Edit virtual machine settings, then increase the disk size.
- Create a snapshot in case anything goes wrong.
- Boot GParted ISO.
- Resize the partition related to the LVM volume.
- Save your changes and then boot into the VM.
- Type the following command in the terminal:
sudo lvdisplay
- Note the LV Name (logical volume name).
- Type the following command in the terminal:
sudo pvdisplay
- Note the number of Free PE (free physical extents).
- Run the following command (if you want to use all available PE):
sudo lvextend --resizefs --extents <free_pe> <lv_name>
Don’t forget to delete the snapshot when you’re done!