I did run out of disc space for the root partition in Ubunut 20.04. This is a guest system on Virtualbox.
Therefore I did:
- Resized disk in virtualbox
- Attached it to another linux box
- Booted the other box
- Resized pv
Now it looks like this:
sde 8:64 0 25G 0 disk
├─sde1 8:65 0 1M 0 part
├─sde2 8:66 0 1G 0 part
└─sde3 8:67 0 14G 0 part
└─ubuntu--vg-ubuntu--lv 252:2 0 14G 0 lvm
sr0 11:0 1 1024M 0 rom
user@rex:~$ sudo vgdisplay ubuntu-vg
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 14.00 GiB
PE Size 4.00 MiB
Total PE 3583
Alloc PE / Size 3583 / 14.00 GiB
Free PE / Size 0 / 0
VG UUID KVTTtl-f56L-SG26-iIVK-Wquq-5ZsL-LpDafi
sudo pvresize /dev/sde3
Physical volume "/dev/sde3" changed
1 physical volume(s) resized / 0 physical volume(s) not resized
sudo pvs
PV VG Fmt Attr PSize PFree
/dev/sde3 ubuntu-vg lvm2 a-- 14.00g 0
The 25G apear to be there, but the PE still shows 14G. How can the volume be increased from here?