15 lines
380 B
Markdown
15 lines
380 B
Markdown
|
|
# Ubuntu Server
|
|
## Expand partition using LVM
|
|
|
|
To expand a partition using LVM on Ubuntu Server, first check for free space in your volume group with
|
|
|
|
`` sudo vgdisplay ``
|
|
|
|
Then, extend the logical volume with
|
|
`` sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv ``
|
|
|
|
and resize the filesystem using
|
|
`` sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv ``
|
|
to apply the changes.
|