[SOLVED] Help with extending LVM after disk resize

Nov 21, 2022
8
3
8
VM started with 32GB disk.
sda 8:0 0 32G 0 disk
├─sda1 8:1 0 1G 0 part /boot/efi
├─sda2 8:2 0 2G 0 part /boot
└─sda3 8:3 0 28.9G 0 part
└─ubuntu--vg-ubuntu--lv 252:0 0 28.9G 0 lvm /

I resized the disk of the VM to 128GB
sda 8:0 0 128G 0 disk
├─sda1 8:1 0 1G 0 part /boot/efi
├─sda2 8:2 0 2G 0 part /boot
└─sda3 8:3 0 28.9G 0 part
└─ubuntu--vg-ubuntu--lv 252:0 0 28.9G 0 lvm /


How would I go about getting ubuntu--vg-ubuntu--lv to use the new disk space


Thank you for any help, Zite
 
Last edited:
Don't forget to resize the file system too. You could have used the -r argument or for doing it afterwards use resize2fs.
 
Last edited: