How to extend disk space in lvm on Ubuntu
Before, I allocated 64G of my 128 SSD to lvm when installing Ubuntu server, now I need more disk space. So I learn and extend my lvm space on Ubuntu today. Now let me share with you how to do it.
Log in your Ubuntu server as root.
1 | lvdisplay |
1 | --- Logical volume --- |
There you will find your LV path, which is needed in next step.
1 | lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv # you need to use your own LV path. |