-
This commit is contained in:
14
Linux/expand_lvm_partition.md
Normal file
14
Linux/expand_lvm_partition.md
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
# 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.
|
||||
Reference in New Issue
Block a user